summaryrefslogtreecommitdiff
path: root/src/state.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-06-27 03:31:33 -0500
committertom barrett <spalf0@gmail.com>2019-06-27 03:31:33 -0500
commitee8d055be8326eb1561900bcca6acd9e38071f4a (patch)
treeadc6da1976866de4b3bf436f99e6eac673af2df3 /src/state.rs
parentf7bbf5646c8220bca2fbd9451d5c234049cf9225 (diff)
tiles can now animate
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
index b06d535..a981924 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -36,6 +36,7 @@ impl State {
impl EventHandler for State {
fn update(&mut self, context: &mut Context) -> GameResult {
+ self.map.update();
self.player.update(context);
self.camera.give_center(self.player.position);
Ok(())