diff options
Diffstat (limited to 'src/entity.rs')
| -rw-r--r-- | src/entity.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/entity.rs b/src/entity.rs index f3ca328..ffe32b5 100644 --- a/src/entity.rs +++ b/src/entity.rs @@ -1,5 +1,5 @@  use ggez::graphics::spritebatch::SpriteBatch; -use ggez::nalgebra::Point2; +use glam;  use crate::constants; @@ -10,14 +10,14 @@ pub trait Operable {  #[derive(Debug, Clone)]  pub struct Entity { -    pub position: Point2<f32>, -    pub spawn: Point2<f32>, +    pub position: glam::Vec2, +    pub spawn: glam::Vec2,      pub action: Action,      map_dimensions: (f32, f32),  }  impl Entity { -    pub fn new(spawn: Point2<f32>, map_dimensions: (f32, f32)) -> Entity { +    pub fn new(spawn: glam::Vec2, map_dimensions: (f32, f32)) -> Entity {          Entity {              spawn,              action: Action::IdleLeft, | 
