diff options
Diffstat (limited to 'src/map.rs')
-rw-r--r-- | src/map.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ use ggez::filesystem::File; use ggez::graphics::spritebatch::SpriteBatch; -use ggez::nalgebra::Point2; +use glam; use std::collections::HashMap; use xml::reader::XmlEvent::Characters; @@ -16,7 +16,7 @@ use crate::xmlelements::XMLElements; pub struct Map { dimensions: (usize, usize), layers: Vec<Layer>, - spawns: Vec<(String, Point2<f32>)>, + spawns: Vec<(String, glam::Vec2)>, } impl Operable for Map { @@ -74,7 +74,7 @@ impl Map { fn find_spawn_points( layers: &[Layer], spawn_tiles: HashMap<usize, Tile>, - ) -> Vec<(String, Point2<f32>)> { + ) -> Vec<(String, glam::Vec2)> { let mut spawn_points = Vec::new(); for layer in layers.iter() { @@ -91,7 +91,7 @@ impl Map { spawn_points } - pub fn get_spawn_points(&self, character: Character) -> Vec<Point2<f32>> { + pub fn get_spawn_points(&self, character: Character) -> Vec<glam::Vec2> { self.spawns .clone() .into_iter() |