aboutsummaryrefslogtreecommitdiff
path: root/music/soundeffects.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-08-12 13:17:58 +0200
committerAstatin <[email protected]>2025-08-12 13:17:58 +0200
commitc70b3cb2cab64d550a585dcfbc166bf30c0ea955 (patch)
treeef41d8f22129ab84e112bc7e78a6ce3ceb97dc83 /music/soundeffects.gbasm
parent41b5858e855c68e01bf388e54abd82661e846585 (diff)
Add jump, damage, earcoptr and hop sound effects
Diffstat (limited to 'music/soundeffects.gbasm')
-rw-r--r--music/soundeffects.gbasm12
1 files changed, 12 insertions, 0 deletions
diff --git a/music/soundeffects.gbasm b/music/soundeffects.gbasm
index f320aaf..c164492 100644
--- a/music/soundeffects.gbasm
+++ b/music/soundeffects.gbasm
@@ -12,6 +12,18 @@ Wait_Next_Frame:
CALL =Wait_Next_Frame
.END
+.MACRODEF RET_WAIT_NEXT_FRAME_SAVE_HL
+ LD A, H
+ LD ($mem_sound_effect_hl), A
+ LD A, L
+ LD ($mem_sound_effect_hl+1), A
+ CALL =Wait_Next_Frame
+ LD A, ($mem_sound_effect_hl)
+ LD H, A
+ LD A, ($mem_sound_effect_hl+1)
+ LD L, A
+.END
+
Play_Sound_Effect:
LD A, ($mem_sound_effect_pc)
CP $ff