From 05856461f35caa0cebf8ba69cbf36132485d5488 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Thu, 20 Jun 2019 04:48:32 -0500 Subject: now goes through animation vectors --- 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 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, -- cgit v1.2.3