aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-08-22 17:49:29 +0200
committerAstatin <[email protected]>2025-08-22 17:49:29 +0200
commit76be4685a3270ba15a14439ef8265aa82efd8218 (patch)
treec4e39c20715afe0acaecc46a79ff906c2176267b
parent2695e4c42c4bd8007803cf674384a8a34bcd78ef (diff)
Fix bug sound effect & bug health underflow
-rw-r--r--entity/bunny.gbasm2
-rw-r--r--init.gbasm1
-rw-r--r--music/soundeffects/bite.gbasm4
3 files changed, 5 insertions, 2 deletions
diff --git a/entity/bunny.gbasm b/entity/bunny.gbasm
index af586e1..8870dcc 100644
--- a/entity/bunny.gbasm
+++ b/entity/bunny.gbasm
@@ -245,7 +245,7 @@ Move_Bunny:
LD L, A
LD H, high($mem_entities_list)
LD A, (HL)
- DEC A
+ SUB $01
DAA
JR C, =.skip_update_health
LD (HL), A
diff --git a/init.gbasm b/init.gbasm
index af4616f..075eed6 100644
--- a/init.gbasm
+++ b/init.gbasm
@@ -22,6 +22,7 @@ Header:
.PADTO 0x0134
.Title:
+ .DB $50, $79, $6f, $6e, $20, $41, $64, $76
.PADTO 0x13f
.Manufacturer_code:
diff --git a/music/soundeffects/bite.gbasm b/music/soundeffects/bite.gbasm
index 3ac67a3..46e49c5 100644
--- a/music/soundeffects/bite.gbasm
+++ b/music/soundeffects/bite.gbasm
@@ -52,6 +52,8 @@ _sound_effect_Bite:
.RET_WAIT_NEXT_FRAME
+ LD A, $80
+ LD ($19), A
LD A, $3f
LD ($16), A
LD A, $a2
@@ -59,7 +61,7 @@ _sound_effect_Bite:
.CHANNEL_2_SOUND_EFFECT_LOOP =_sound_effect_Bite_slide_data, =_sound_effect_Bite_slide_data.end
- LD A, $08
+ LD A, $00
LD ($17), A
LD A, $mem_sound_flags