ootw: c2: add audio file

This commit is contained in:
Vince Weaver 2019-07-20 12:37:54 -04:00
parent 2dbd9b7537
commit 9db582b9af
3 changed files with 10 additions and 2 deletions

View File

@ -56,7 +56,8 @@ OOTW_C2: ootw_c2.o
ootw_c2.o: ootw_c2.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s alien.s friend.s \
keyboard.s gr_run_sequence.s audio.s \
physicist.s alien.s friend.s \
ootw_c2_miners.s \
ootw_graphics/sprites/sprites_physicist.inc \
ootw_graphics/sprites/sprites_alien.inc \

View File

@ -143,3 +143,5 @@ end_message:
; laser movie
.include "ootw_graphics/l2laser/ootw_c2_laser.inc"
.include "audio.s"

View File

@ -1094,6 +1094,12 @@ ce_friend_tap:
ce_friend_point:
cmp #115
bne no_audio
jsr playaud
no_audio:
lda FRAMEL
sec
sbc #110
and #$fe
@ -1108,7 +1114,6 @@ ce_friend_point:
lda #25 ; one off
sta XPOS
jmp ce_draw_friend_right