aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-01 20:58:39 +1000
committerquou <quou@disroot.org>2024-10-01 20:58:39 +1000
commitea8e7aad4e033ed31f2672b57da40ba5255d4b1c (patch)
tree088774c40d187752ae70a7af201597bf47af6990
parent13b1c6fdcbab5587cf38ee7c97a1d29cfc7c2d7d (diff)
flash the player sprite when he is immune to damage after taking it.
-rw-r--r--player.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player.c b/player.c
index 6d8f938..b1aaaee 100644
--- a/player.c
+++ b/player.c
@@ -191,5 +191,6 @@ void update_player(
void ren_player(const Player* p, struct Renderer* r) {
const Bitmap* b = get_bitmap(asset_id_guy_img);
+ if (p->inv & 5) return;
ren_map(r, p->x >> fbits, p->y >> fbits, &p->rect, b);
}