diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2022-02-02 19:08:44 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2022-02-02 19:08:44 +0100 |
commit | ceb3eff116f9ddf8dcb71a0a77efb63531f75ab2 (patch) | |
tree | c818ad7241797fa72e0cb802f09c9a1b296e1fb0 /src/animations.rs | |
parent | 8cdbe7352c4846eb339358bcca6083f747e27721 (diff) |
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) } } |