2021-01-17 18:54:29 +00:00
|
|
|
;======================
|
|
|
|
; noise when move menu
|
2021-01-17 19:11:38 +00:00
|
|
|
menu_move_noise:
|
2021-01-17 18:54:29 +00:00
|
|
|
|
|
|
|
lda SOUND_STATUS
|
2021-01-17 19:11:38 +00:00
|
|
|
bmi done_menu_move_noise
|
2021-01-17 18:54:29 +00:00
|
|
|
|
|
|
|
lda #NOTE_C4
|
|
|
|
sta speaker_frequency
|
2021-01-17 19:11:38 +00:00
|
|
|
lda #10
|
2021-01-17 18:54:29 +00:00
|
|
|
sta speaker_duration
|
|
|
|
jsr speaker_tone
|
|
|
|
|
2021-01-17 19:11:38 +00:00
|
|
|
done_menu_move_noise:
|
2021-01-17 18:54:29 +00:00
|
|
|
rts
|
|
|
|
|
2021-01-17 19:11:38 +00:00
|
|
|
;======================
|
|
|
|
; noise when hit escape in menu
|
|
|
|
menu_escape_noise:
|
|
|
|
|
|
|
|
lda SOUND_STATUS
|
|
|
|
bmi done_menu_escape_noise
|
|
|
|
|
|
|
|
lda #NOTE_C5
|
|
|
|
sta speaker_frequency
|
|
|
|
lda #10
|
|
|
|
sta speaker_duration
|
|
|
|
jsr speaker_tone
|
|
|
|
|
|
|
|
done_menu_escape_noise:
|
|
|
|
rts
|
|
|
|
|
|
|
|
;======================
|
|
|
|
; noise when error in menu
|
|
|
|
menu_error_noise:
|
|
|
|
|
|
|
|
lda SOUND_STATUS
|
|
|
|
bmi done_menu_error_noise
|
|
|
|
|
|
|
|
lda #NOTE_D3
|
|
|
|
sta speaker_frequency
|
|
|
|
lda #10
|
|
|
|
sta speaker_duration
|
|
|
|
jsr speaker_tone
|
|
|
|
|
|
|
|
done_menu_error_noise:
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
2021-01-17 21:12:06 +00:00
|
|
|
;======================
|
|
|
|
; noise when battle counter ready
|
|
|
|
menu_ready_noise:
|
|
|
|
|
|
|
|
lda SOUND_STATUS
|
|
|
|
bmi done_menu_ready_noise
|
|
|
|
|
|
|
|
lda #NOTE_A4
|
|
|
|
sta speaker_frequency
|
|
|
|
lda #5
|
|
|
|
sta speaker_duration
|
|
|
|
jsr speaker_tone
|
|
|
|
|
|
|
|
lda #NOTE_A5
|
|
|
|
sta speaker_frequency
|
|
|
|
lda #5
|
|
|
|
sta speaker_duration
|
|
|
|
jsr speaker_tone
|
|
|
|
|
|
|
|
done_menu_ready_noise:
|
|
|
|
rts
|
2021-01-17 19:11:38 +00:00
|
|
|
|
2021-01-17 18:54:29 +00:00
|
|
|
|
|
|
|
;======================
|
|
|
|
; noise when cast heal
|
|
|
|
heal_noise:
|
|
|
|
|
|
|
|
lda SOUND_STATUS
|
|
|
|
bmi done_heal_noise
|
|
|
|
|
|
|
|
lda #NOTE_D3
|
|
|
|
sta speaker_frequency
|
|
|
|
lda #5
|
|
|
|
sta speaker_duration
|
|
|
|
jsr speaker_tone
|
|
|
|
|
|
|
|
done_heal_noise:
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;======================
|
|
|
|
; rumble noise
|
|
|
|
rumble_noise:
|
|
|
|
|
|
|
|
lda SOUND_STATUS
|
|
|
|
bmi done_rumble_noise
|
|
|
|
|
|
|
|
ldx #50
|
|
|
|
rumble_red:
|
|
|
|
bit $C030
|
|
|
|
lda #100
|
|
|
|
jsr WAIT
|
|
|
|
dex
|
|
|
|
bne rumble_red
|
|
|
|
|
|
|
|
done_rumble_noise:
|
|
|
|
rts
|