From: Lukas Krickl Date: Fri, 10 Oct 2025 07:16:57 +0000 (+0200) Subject: projectile: Added shoot and hit noise X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=860edf33f4cb7c097de8bef7cb54c59f9caf3e9c;p=gbrg%2F.git projectile: Added shoot and hit noise --- diff --git a/src/audio.s b/src/audio.s index 3ebfa83..182bbdb 100644 --- a/src/audio.s +++ b/src/audio.s @@ -20,7 +20,7 @@ play_walk_noise: ret -play_door_open_noise: +play_hit_noise: ld a, 0b11111111 ld [CH4_VOLUME_ENV], a diff --git a/src/projectile.s b/src/projectile.s index 52d0db8..a0d8d87 100644 --- a/src/projectile.s +++ b/src/projectile.s @@ -32,6 +32,8 @@ act_spawn_projectile_pistol_player: ld a, PROJECTILE_F_PLAYER ld [hl], a + call play_attack_noise + ret ; updates a simple pistol projectile @@ -90,6 +92,7 @@ act_projectile_pistol_update: push de call actor_col_res pop de + call play_hit_noise @despawn: jp actor_despawn