diff options
Diffstat (limited to 'src/animations.rs')
-rw-r--r-- | src/animations.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/animations.rs b/src/animations.rs index cbaad41..21e05c7 100644 --- a/src/animations.rs +++ b/src/animations.rs @@ -1,5 +1,4 @@ use ggez::graphics::spritebatch::SpriteBatch; -use ggez::nalgebra::Point2; use rand::Rng; use std::collections::HashMap; use std::time::Instant; @@ -48,7 +47,7 @@ impl Animation { } } - pub fn draw(&self, spritebatch: &mut SpriteBatch, position: Point2<f32>) { + pub fn draw(&self, spritebatch: &mut SpriteBatch, position: glam::Vec2) { self.current.draw(spritebatch, position); } } @@ -101,7 +100,7 @@ impl Animations { self.current.update(); } - pub fn draw(&self, spritebatch: &mut SpriteBatch, position: Point2<f32>) { + pub fn draw(&self, spritebatch: &mut SpriteBatch, position: glam::Vec2) { self.current.draw(spritebatch, position) } } |