duke: adjust sound effects a bit

This commit is contained in:
Vince Weaver 2020-12-17 19:34:02 -05:00
parent e48ce18f4e
commit dccc1b3a23
2 changed files with 19 additions and 6 deletions

View File

@ -62,7 +62,7 @@ duke_start:
jsr update_status_bar
;====================================
; load level1 background
; load level2 background
;====================================
lda #<level2_bg_lzsa
@ -99,9 +99,13 @@ duke_start:
;====================================
;====================================
jsr setup_music
jsr setup_music
lda SOUND_STATUS
bmi skip_music
cli ; start music
skip_music:
duke_loop:
@ -181,6 +185,8 @@ done_with_duke:
lda #LOAD_TITLE
sta WHICH_LOAD
sei ; stop music
rts ; exit back

View File

@ -5,7 +5,7 @@ jump_noise:
lda SOUND_STATUS
bmi done_jump_noise
bit $C030
; bit $C030
done_jump_noise:
rts
@ -18,8 +18,15 @@ head_noise:
lda SOUND_STATUS
bmi done_head_noise
bit $C030
bit $C030
lda #NOTE_D3
sta speaker_frequency
lda #5
sta speaker_duration
jsr speaker_tone
; bit $C030
; bit $C030
done_head_noise:
rts
@ -32,7 +39,7 @@ land_noise:
lda SOUND_STATUS
bmi done_land_noise
bit $C030
; bit $C030
done_land_noise:
rts