diff options
Diffstat (limited to 'src/state.rs')
-rw-r--r-- | src/state.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state.rs b/src/state.rs index 299ecc9..4962c39 100644 --- a/src/state.rs +++ b/src/state.rs @@ -34,8 +34,8 @@ impl State { } impl EventHandler for State { - fn update(&mut self, _: &mut Context) -> GameResult { - self.player.update(); + fn update(&mut self, context: &mut Context) -> GameResult { + self.player.update(context); self.camera.give_center(self.player.position); Ok(()) } @@ -44,7 +44,7 @@ impl EventHandler for State { graphics::clear(context, graphics::BLACK); self.map.draw(&mut self.spritebatch, &self.tileset); - self.player.draw(&mut self.spritebatch, &self.tileset); + self.player.draw(&mut self.spritebatch); graphics::draw( context, |