diff options
author | Astatin <[email protected]> | 2025-02-04 16:11:08 +0900 |
---|---|---|
committer | Astatin <[email protected]> | 2025-02-04 16:11:08 +0900 |
commit | 3b67c86b61b5d8640860dd5e8b016790ee4814c3 (patch) | |
tree | ff32913f93af19bd3a86e0ec2f129a2f3de065ad /entity/bunny.gbasm | |
parent | aa7b1f0505f8b0e9cebe7d1444075abb8d756d9e (diff) |
Add penguins that can freeze the bunny and run away when it's already frozen
Diffstat (limited to 'entity/bunny.gbasm')
-rw-r--r-- | entity/bunny.gbasm | 8 |
1 files changed, 8 insertions, 0 deletions
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 |