aboutsummaryrefslogtreecommitdiff
path: root/music/soundeffects/laser.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-08-19 15:57:51 +0200
committerAstatin <[email protected]>2025-08-19 15:57:51 +0200
commitbbc5ab6ad02dbabcb79e1e83195288c0fb8cf1d1 (patch)
tree619cda5870860164fd8bddcb4e0ed741cf63ca49 /music/soundeffects/laser.gbasm
parentc70b3cb2cab64d550a585dcfbc166bf30c0ea955 (diff)
Add insect bite & frog grab sound effects + disallow 2 sound effects at once
Diffstat (limited to 'music/soundeffects/laser.gbasm')
-rw-r--r--music/soundeffects/laser.gbasm19
1 files changed, 1 insertions, 18 deletions
diff --git a/music/soundeffects/laser.gbasm b/music/soundeffects/laser.gbasm
index e73396b..b3c02a7 100644
--- a/music/soundeffects/laser.gbasm
+++ b/music/soundeffects/laser.gbasm
@@ -12,8 +12,6 @@ _sound_effect_Laser:
SET 2, A
LD $mem_sound_flags, A
- LD HL, =_sound_effect_Laser_slide_data
-
LD A, $80
LD ($19), A
LD A, $3f
@@ -21,22 +19,7 @@ _sound_effect_Laser:
LD A, $a2
LD ($17), A
- .loop:
- LD A, (HL+)
- LD ($18), A
-
- LD A, (HL+)
- LD ($19), A
-
- .RET_WAIT_NEXT_FRAME_SAVE_HL
-
- LD A, H
- CP high(=_sound_effect_Laser_slide_data.end)
- JR NZ, =.loop
- LD A, L
- CP low(=_sound_effect_Laser_slide_data.end)
- JR NZ, =.loop
- .end:
+ .CHANNEL_2_SOUND_EFFECT_LOOP =_sound_effect_Laser_slide_data, =_sound_effect_Laser_slide_data.end
LD A, $mem_sound_flags
AND 0b11000001