diff options
Diffstat (limited to 'src/state.rs')
-rw-r--r-- | src/state.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs index 1eb5e17..a541a02 100644 --- a/src/state.rs +++ b/src/state.rs @@ -41,6 +41,9 @@ impl EventHandler for State { fn update(&mut self, _context: &mut Context) -> GameResult { self.map.update(); self.player.update(); + for entity in self.entities.iter_mut() { + entity.update(); + } self.camera.give_center(self.player.position); Ok(()) } |