From: Lukas Krickl Date: Mon, 18 Nov 2024 15:17:52 +0000 (+0100) Subject: Fixed take damage debug buttons X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=28bde6ae0a66c4826cc23eb7a5eae2290143f675;p=gbrg%2F.git Fixed take damage debug buttons --- diff --git a/src/player.s b/src/player.s index 78bba70..d53bf2f 100644 --- a/src/player.s +++ b/src/player.s @@ -173,8 +173,7 @@ player_update: ld a, 1 ; make sure we do not mess with hl push hl - ; hl = player_x right now - dec hl ; hl = player_y == player_base + ; hl = player_y right now push de ; de will get used in take damage call player_take_damage ; call for UI redraw @@ -191,7 +190,8 @@ player_update: ld a, 1 ; make sure we do not mess with hl push hl - ; hl = player_x right now + ; hl = player_y right now + inc hl inc hl inc hl ; hl = player_hp call player_gain_resource