From 4a8127146eafd4fef5b478c1bf9f5a152c8c4cd5 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 22 Jun 2023 22:10:28 +0100 Subject: Import entities from the map and spawn them --- src/player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/player.c') 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; -- cgit v1.2.3