aboutsummaryrefslogtreecommitdiff
path: root/entity/bunny.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-05-15 15:42:26 +0200
committerAstatin <[email protected]>2025-05-15 15:42:26 +0200
commita1dad7db479d8203df30a649a688f7351b667d8e (patch)
tree66c878c78365d87f7b37a2ea506c1e1979e0d536 /entity/bunny.gbasm
parentef9de76cd0bc313385b7edac3659e03ab36d3c1e (diff)
Fix some bugs owl found
Diffstat (limited to 'entity/bunny.gbasm')
-rw-r--r--entity/bunny.gbasm12
1 files changed, 9 insertions, 3 deletions
diff --git a/entity/bunny.gbasm b/entity/bunny.gbasm
index 3806df4..7520720 100644
--- a/entity/bunny.gbasm
+++ b/entity/bunny.gbasm
@@ -191,6 +191,8 @@ Move_Bunny:
LD A, D
LD $mem_bunny_direction, A
+ LD A, $00
+ LD $mem_bunny_animation, A
BIT 3, D
JR Z, =.Start_action_or_movement.end
@@ -240,7 +242,11 @@ Move_Bunny:
LD A, (HL)
DEC A
DAA
- LD (HL+), A
+ JR C, =.skip_update_health
+ LD (HL), A
+
+ .skip_update_health:
+ INC HL
SET 3, (HL)
LD A, $24
@@ -451,7 +457,7 @@ Center_viewport_around_entity: ; Entity pointer in HL
LD B, A
LD A, (HL)
- SUB $04
+ SUB $05
LD $mem_viewport_y, A
LD A, (HL+)
@@ -480,7 +486,7 @@ Center_viewport_around_entity: ; Entity pointer in HL
LD A, C
SWAP A
AND $f0
- SUB $38
+ SUB $48
LD C, A
LD A, E