From: Lukas Krickl Date: Mon, 18 Nov 2024 17:48:26 +0000 (+0100) Subject: The player's turn is now ended after a move X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=e3dd76fb2937bac6f84fd321a7846bf00f67b641;p=gbrg%2F.git The player's turn is now ended after a move for now now other actor is handling turns so the player can only move once --- diff --git a/src/player.s b/src/player.s index e9fc1fd..e5f8d71 100644 --- a/src/player.s +++ b/src/player.s @@ -80,9 +80,16 @@ player_update: ; play move animation ; and skip inputs if it is still ; ongoing + ld a, [end_turn] + cp a, 0 + jr z, @no_anim REL ; do not play anim if turn is not ended + call anim_move cp a, 0 jp nz, @skip_input + call who_next ; next actor's turn + jp nz, @skip_input +@no_anim: ; set collision mask ld a, RF_WALL