From 3b67c86b61b5d8640860dd5e8b016790ee4814c3 Mon Sep 17 00:00:00 2001 From: Astatin Date: Tue, 4 Feb 2025 16:11:08 +0900 Subject: Add penguins that can freeze the bunny and run away when it's already frozen --- entity/bunny.gbasm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'entity/bunny.gbasm') diff --git a/entity/bunny.gbasm b/entity/bunny.gbasm index 3804b6a..40cd047 100644 --- a/entity/bunny.gbasm +++ b/entity/bunny.gbasm @@ -16,6 +16,13 @@ Move_Bunny: LD A, $mem_bunny_direction AND $07 LD $mem_bunny_direction, A + + LD A, $mem_bunny_status_clear_turn_counter + DEC A + CP $00 + LD $mem_bunny_status_clear_turn_counter, A + JR Z, =.Unfreeze + CALL =RNG_Step CP $55 JP NC, =.Skip_turn @@ -27,6 +34,7 @@ Move_Bunny: CP $55 JP NC, =.Skip_turn + .Unfreeze: LD A, $00 LD $mem_bunny_status, A LD A, $mem_bunny_flags -- cgit v1.2.3-70-g09d2