aboutsummaryrefslogtreecommitdiff
path: root/src/items.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/items.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/items.s')
-rw-r--r--src/items.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/items.s b/src/items.s
index d8d1391..1e8a111 100644
--- a/src/items.s
+++ b/src/items.s
@@ -591,6 +591,9 @@
;; Increase the number of collected items.
inc Items::zp_collected
+ ;; Make the "item drop" sound
+ SOUND_ITEM_DROP
+
;; Now we unset the 'S' bit, which is unconditionally true regardless of
;; the collection state. That being said, if we still need to collect
;; more fuel tanks (the rocket has all its parts and we have not filled
@@ -679,6 +682,9 @@
@set_modes:
sta Items::zp_pool_base, x
+ ;; Make the sound for grabbing an item.
+ SOUND_ITEM_PICKUP
+
;; Mark the player's to be already grabbing an item.
lda Items::zp_state
ora #$80
@@ -988,6 +994,9 @@
ADD_ITEM_SCORE
ldx Globals::zp_tmp2
+ ;; Make the sound for item pickup.
+ SOUND_ITEM_PICKUP
+
rts
.endproc