aboutsummaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-22 22:10:28 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-22 22:10:28 +0100
commit4a8127146eafd4fef5b478c1bf9f5a152c8c4cd5 (patch)
tree05b820a74bcaffa340eede419b3e1fe24059c477 /src/player.c
parent7723c5f8a9f0ea5345ebefecd31fe22f3601b32e (diff)
downloadgold-mine-run-4a8127146eafd4fef5b478c1bf9f5a152c8c4cd5.tar.gz
gold-mine-run-4a8127146eafd4fef5b478c1bf9f5a152c8c4cd5.zip
Import entities from the map and spawn them
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.c b/src/player.c
index 52595f4..a0b840f 100644
--- a/src/player.c
+++ b/src/player.c
@@ -69,9 +69,9 @@ static const Rect frames[2][6] =
},
};
-void player_init(uint16_t start_x, uint8_t start_y)
+void player_init(uint16_t start_x, uint8_t start_y, uint8_t start_dir)
{
- dir = DIR_RIGHT;
+ dir = start_dir;
frame = FRAME_STANDING;
delay = 0;
jump = 0;