summaryrefslogtreecommitdiff
path: root/src/entity.rs
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2022-02-02 19:08:44 +0100
committerTom Barrett <tom@tombarrett.xyz>2022-02-02 19:08:44 +0100
commitceb3eff116f9ddf8dcb71a0a77efb63531f75ab2 (patch)
treec818ad7241797fa72e0cb802f09c9a1b296e1fb0 /src/entity.rs
parent8cdbe7352c4846eb339358bcca6083f747e27721 (diff)
2022 updateHEADmaster
Diffstat (limited to 'src/entity.rs')
-rw-r--r--src/entity.rs8
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,