summaryrefslogtreecommitdiff
path: root/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs6
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(())
}