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/player.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/player.rs') diff --git a/src/player.rs b/src/player.rs index 7df0922..722c98e 100644 --- a/src/player.rs +++ b/src/player.rs @@ -1,6 +1,6 @@ use ggez::event::KeyCode; use ggez::graphics::spritebatch::SpriteBatch; -use ggez::nalgebra::Point2; +use glam; use crate::animations::Animations; use crate::entity::{Action, Entity, Operable}; @@ -24,14 +24,14 @@ impl Operable for Player { } impl Player { - pub fn new(tileset: &Tileset, spawn: Point2, map_dimensions: (f32, f32)) -> Player { + pub fn new(tileset: &Tileset, spawn: glam::Vec2, map_dimensions: (f32, f32)) -> Player { Player { entity: Entity::new(spawn, map_dimensions), animations: Animations::new(tileset), } } - pub fn get_position(&self) -> Point2 { + pub fn get_position(&self) -> glam::Vec2 { self.entity.position } -- cgit v1.2.3