diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-16 22:01:47 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-16 22:02:01 +0100 |
commit | c65f26c530432519b576f8347926a8c94f03ad66 (patch) | |
tree | 9affc6a0f779cd8e07172a3f2708328f459329fd | |
parent | 3b751d86e5250df530cb694c6bbe44829006c013 (diff) | |
download | gold-mine-run-c65f26c530432519b576f8347926a8c94f03ad66.tar.gz gold-mine-run-c65f26c530432519b576f8347926a8c94f03ad66.zip |
Ensure the player is drawn on stageclear
Even if invuln!
-rw-r--r-- | src/player.c | 6 | ||||
-rw-r--r-- | src/player.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c index 15e7c8e..a64f5d0 100644 --- a/src/player.c +++ b/src/player.c @@ -353,3 +353,9 @@ uint16_t player_y() { return y; } + +void player_stageclear() +{ + invuln = 0; + player_draw(); +} diff --git a/src/player.h b/src/player.h index 95bc14a..9fdaab0 100644 --- a/src/player.h +++ b/src/player.h @@ -11,6 +11,7 @@ uint8_t player_collision(Entity *e); uint8_t player_collision_pickup(Entity *e); void player_hit(); +void player_stageclear(); uint16_t player_x(); uint16_t player_y(); |