From 39ea81bea4a61baf8c95a33bcc979b0e65ce660e Mon Sep 17 00:00:00 2001 From: tom barrett Date: Fri, 28 Jun 2019 08:37:07 -0500 Subject: unified interfaces --- src/state.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index a981924..077917b 100644 --- a/src/state.rs +++ b/src/state.rs @@ -29,15 +29,15 @@ impl State { map, spritebatch: SpriteBatch::new(image), camera: Camera::new(context, map_dimensions), - player: Player::new(map_dimensions), + player: Player::new(&tileset, map_dimensions), }) } } impl EventHandler for State { - fn update(&mut self, context: &mut Context) -> GameResult { + fn update(&mut self, _context: &mut Context) -> GameResult { self.map.update(); - self.player.update(context); + self.player.update(); self.camera.give_center(self.player.position); Ok(()) } -- cgit v1.2.3