aboutsummaryrefslogtreecommitdiff
path: root/entity/bunny.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-10-29 17:06:53 +0900
committerAstatin <[email protected]>2024-10-29 17:06:53 +0900
commit0a2fe23ecc1f24043aad7ff7de9f56f2091acbe9 (patch)
tree4a1b049b9180ce1d58e4e4f6246672d2b9b45fae /entity/bunny.gbasm
parent96df60d319238dc7df53fe948e8a2593f1857be7 (diff)
Bunny can be attacked and deadge
Diffstat (limited to 'entity/bunny.gbasm')
-rw-r--r--entity/bunny.gbasm10
1 files changed, 10 insertions, 0 deletions
diff --git a/entity/bunny.gbasm b/entity/bunny.gbasm
index abffd43..8601d79 100644
--- a/entity/bunny.gbasm
+++ b/entity/bunny.gbasm
@@ -1,4 +1,14 @@
Move_Bunny:
+ LD A, $mem_bunny_health
+ CP $00
+ JR NZ, =Move_Bunny.not_dead
+
+ LD A, $20
+ LD $mem_bunny_direction, A
+ RET
+
+ Move_Bunny.not_dead:
+
Start_action_or_movement:
LD A, $mem_map_loading_flags
BIT 3, A