diff options
author | tom barrett <spalf0@gmail.com> | 2019-06-28 08:37:07 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2019-06-28 08:37:07 -0500 |
commit | 39ea81bea4a61baf8c95a33bcc979b0e65ce660e (patch) | |
tree | e1a535ba04c72c3db630548966ba854388f7848f /src/state.rs | |
parent | a76efb8444af9d4a0ee558e72903c67bc2cff5d3 (diff) |
unified interfaces
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 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(()) } |