diff options
author | tom barrett <spalf0@gmail.com> | 2019-07-10 09:43:48 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2019-07-10 09:43:48 -0500 |
commit | ced37025a37051db896443d310f5f613f1281882 (patch) | |
tree | 6faa646addcd2cfa1c49154a06846321a6e2e423 /src/player.rs | |
parent | 503361ce70615d7c4b66bd7e49d56c61259dab32 (diff) |
animation now always works, added player spawn
Diffstat (limited to 'src/player.rs')
-rw-r--r-- | src/player.rs | 4 |
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), } } |