diff options
author | quou <quou@disroot.org> | 2024-10-01 20:58:39 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-10-01 20:58:39 +1000 |
commit | ea8e7aad4e033ed31f2672b57da40ba5255d4b1c (patch) | |
tree | 088774c40d187752ae70a7af201597bf47af6990 | |
parent | 13b1c6fdcbab5587cf38ee7c97a1d29cfc7c2d7d (diff) |
flash the player sprite when he is immune to damage after taking it.
-rw-r--r-- | player.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |