From e3dd76fb2937bac6f84fd321a7846bf00f67b641 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 18 Nov 2024 18:48:26 +0100 Subject: [PATCH] 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 --- src/player.s | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.30.2