aboutsummaryrefslogtreecommitdiff
path: root/src/bullets.s
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-04-13 16:34:11 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-04-13 16:34:11 +0200
commitaef156ac6216ed157b06a2872ba051af43317e93 (patch)
treea6daca2bc0353e6b59823bc6bf019362ecb02507 /src/bullets.s
parentc3c6f3b4469bf9eadff5763fa16dbbbf15637e57 (diff)
downloadjetpac.nes-aef156ac6216ed157b06a2872ba051af43317e93.tar.gz
jetpac.nes-aef156ac6216ed157b06a2872ba051af43317e93.zip
Add sound effects
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src/bullets.s')
-rw-r--r--src/bullets.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bullets.s b/src/bullets.s
index 1072a8f..9e40546 100644
--- a/src/bullets.s
+++ b/src/bullets.s
@@ -133,6 +133,9 @@
beq @find_free_bullet_bucket
@initialize_bucket:
+ ;; Play the bullet sound if appropiate.
+ jsr Sound::play_bullet_maybe
+
;; We found a free bucket. Initialize the first byte to 0 since it has
;; not moved yet. The heading is taken from the player's state.
lda Player::zp_state