summaryrefslogtreecommitdiff
path: root/src/map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.rs')
-rw-r--r--src/map.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map.rs b/src/map.rs
index 9bb3b47..7f1e3d7 100644
--- a/src/map.rs
+++ b/src/map.rs
@@ -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()