From ceb3eff116f9ddf8dcb71a0a77efb63531f75ab2 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Wed, 2 Feb 2022 19:08:44 +0100 Subject: 2022 update --- src/animations.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/animations.rs') 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) { + 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) { + pub fn draw(&self, spritebatch: &mut SpriteBatch, position: glam::Vec2) { self.current.draw(spritebatch, position) } } -- cgit v1.2.3