From c70b3cb2cab64d550a585dcfbc166bf30c0ea955 Mon Sep 17 00:00:00 2001 From: Astatin Date: Tue, 12 Aug 2025 13:17:58 +0200 Subject: Add jump, damage, earcoptr and hop sound effects --- playerattacks/earcoptr.gbasm | 8 +++++++- playerattacks/hop.gbasm | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'playerattacks') diff --git a/playerattacks/earcoptr.gbasm b/playerattacks/earcoptr.gbasm index 721692e..818471b 100644 --- a/playerattacks/earcoptr.gbasm +++ b/playerattacks/earcoptr.gbasm @@ -17,9 +17,12 @@ Earcoptr_Attack_Loading_Regular: SLA A SLA A SLA A - INC A LD L, A + LD A, (HL+) + CP $00 + RET Z + LD A, (HL+) LD E, A @@ -57,6 +60,7 @@ Earcoptr_Attack_Loading_Regular: LD A, $1f SUB B LD $mem_blinking_animation_counter, A + .SET_SOUND_EFFECT =_sound_effect_Damage LD A, (HL) SUB $01 @@ -91,6 +95,8 @@ Earcoptr_Attack: POP DE POP BC + .SET_SOUND_EFFECT =_sound_effect_Earcoptr + LD BC, =Earcoptr_Attack_Loading_VBlank LD A, B LD $mem_loading_mode_vblank_func_pointer_high, A diff --git a/playerattacks/hop.gbasm b/playerattacks/hop.gbasm index 30c673f..7549774 100644 --- a/playerattacks/hop.gbasm +++ b/playerattacks/hop.gbasm @@ -97,6 +97,7 @@ Hop_Attack_Loading_Regular: LD $mem_current_mode, A LD $mem_requested_mode, A CALL =Update_VBlank_Handler + .SET_SOUND_EFFECT =_sound_effect_Jump LD A, $mem_bunny_direction OR $08 LD $mem_bunny_direction, A -- cgit v1.2.3-70-g09d2