From ced37025a37051db896443d310f5f613f1281882 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Wed, 10 Jul 2019 09:43:48 -0500 Subject: animation now always works, added player spawn --- src/player.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/player.rs') 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, 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), } } -- cgit v1.2.3