aboutsummaryrefslogtreecommitdiff
path: root/entity/bunny.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-03-11 18:46:42 +0900
committerAstatin <[email protected]>2025-03-11 18:46:42 +0900
commitab45947d3fdc9885c497d9fc3dd124c7986f6ea4 (patch)
tree6800a9c3ebaebb5f35d54fd5ed1e0e8214953544 /entity/bunny.gbasm
parent957834ffafd4c82700e27fd9d69b695bb2247d97 (diff)
Add invincible friendly bunny you can talk to
Diffstat (limited to 'entity/bunny.gbasm')
-rw-r--r--entity/bunny.gbasm8
1 files changed, 5 insertions, 3 deletions
diff --git a/entity/bunny.gbasm b/entity/bunny.gbasm
index d2b9148..8438d3e 100644
--- a/entity/bunny.gbasm
+++ b/entity/bunny.gbasm
@@ -106,10 +106,12 @@ Move_Bunny:
JR =.Start_action_or_movement.end
.Start_action_or_movement.test_action:
- LD A, $mem_last_button_action
- LD B, A
LD A, $mem_button_action
- CP B
+ LD B, A
+ LD A, $mem_last_button_action
+ XOR B
+ AND B
+ CP $00
JR Z, =.Start_action_or_movement.end
BIT 0, A
JR Z, =.Start_action_or_movement.end