aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorGuillaume Pasquet <dev@etenil.net>2019-11-21 19:54:38 +0000
committerGuillaume Pasquet <dev@etenil.net>2019-11-21 19:54:38 +0000
commit538008cbdc8ec8a873e62a8b991201fda5762d63 (patch)
treed9dab5a34ac13d4393ca4531807e455cf5af828a /src/main.rs
parentb53947f191ad6ffc9b72890abb916a44f581c0c3 (diff)
Fog of war! Inneficient and buggy but works
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 5acbbef..e45701a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -42,15 +42,13 @@ fn main() {
let _raw = RawScreen::into_raw_mode();
- state.render_level();
-
let input = input();
let mut reader = input.read_sync();
loop {
- // update
+ state.render_player();
+ state.render_level();
state.render_entities();
-
state.render_player();
state.render_ui();