summaryrefslogtreecommitdiff
path: root/src/player.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.rs')
-rw-r--r--src/player.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.rs b/src/player.rs
index 5993d21..025056c 100644
--- a/src/player.rs
+++ b/src/player.rs
@@ -23,9 +23,9 @@ impl Operable for Player {
}
impl Player {
- pub fn new(tileset: &Tileset, dimensions: (f32, f32)) -> Player {
+ pub fn new(tileset: &Tileset, spawn: Point2<f32>, map_dimensions: (f32, f32)) -> Player {
Player {
- entity: Entity::new(Point2::new(0.0, 0.0), dimensions),
+ entity: Entity::new(spawn, map_dimensions),
animations: Animations::new(tileset),
}
}