mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-06-04 03:29:29 +00:00
sb: fix sound up
This commit is contained in:
parent
c7ed743b17
commit
1496a99034
File diff suppressed because one or more lines are too long
|
@ -76,33 +76,10 @@ load_backgrounds:
|
||||||
|
|
||||||
;===================
|
;===================
|
||||||
; set up variables
|
; set up variables
|
||||||
.if 0
|
|
||||||
lda #16
|
|
||||||
sta STRONGBAD_X
|
|
||||||
sta PLAYER_X
|
|
||||||
|
|
||||||
lda #1
|
|
||||||
sta STRONGBAD_DIR
|
|
||||||
sta BULLET_YDIR
|
|
||||||
|
|
||||||
lda #SHIELD_DOWN
|
|
||||||
sta SHIELD_POSITION
|
|
||||||
sta SHIELD_COUNT
|
|
||||||
|
|
||||||
lda #0
|
|
||||||
sta BULLET_X_L
|
|
||||||
sta BULLET_X_VEL
|
|
||||||
sta HEAD_DAMAGE
|
|
||||||
|
|
||||||
lda #$80
|
|
||||||
sta BULLET_X_VEL_L
|
|
||||||
|
|
||||||
lda #20
|
|
||||||
sta BULLET_X
|
|
||||||
lda #0
|
|
||||||
sta BULLET_Y
|
|
||||||
.endif
|
|
||||||
|
|
||||||
|
;===================
|
||||||
|
; inline this?
|
||||||
|
|
||||||
jsr do_back_off
|
jsr do_back_off
|
||||||
|
|
||||||
|
@ -226,7 +203,7 @@ sound_check_off:
|
||||||
sound_check_baby:
|
sound_check_baby:
|
||||||
cpx #17
|
cpx #17
|
||||||
bne sound_check_done
|
bne sound_check_done
|
||||||
ldy #3
|
ldy #2
|
||||||
|
|
||||||
do_play_asplode:
|
do_play_asplode:
|
||||||
jsr play_back_off
|
jsr play_back_off
|
||||||
|
@ -249,6 +226,11 @@ done_back_off:
|
||||||
|
|
||||||
bit KEYRESET ; clear any keypresses during asplode
|
bit KEYRESET ; clear any keypresses during asplode
|
||||||
|
|
||||||
|
lda #$A0
|
||||||
|
jsr hgr_copy
|
||||||
|
|
||||||
|
jsr flip_page
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
ASPLODE_SAMPLE = $D000
|
BACK_SAMPLE = $D000
|
||||||
ASPLODE_LENGTH = 28 ; $1C
|
BACK_LENGTH = 30 ; $1E
|
||||||
|
|
||||||
play_back_off:
|
play_back_off:
|
||||||
; only avail if language card
|
; only avail if language card
|
||||||
|
|
||||||
lda SOUND_STATUS
|
lda SOUND_STATUS
|
||||||
and #SOUND_IN_LC
|
and #SOUND_IN_LC
|
||||||
beq done_play_asplode
|
beq done_play_back_off
|
||||||
|
|
||||||
; switch in language card
|
; switch in language card
|
||||||
; read/write RAM $d000 bank 1
|
; read/write RAM $d000 bank 1
|
||||||
|
@ -17,45 +17,33 @@ play_back_off:
|
||||||
|
|
||||||
; call the btc player
|
; call the btc player
|
||||||
|
|
||||||
lda #<ASPLODE_SAMPLE
|
lda #<BACK_SAMPLE
|
||||||
sta BTC_L
|
sta BTC_L
|
||||||
|
|
||||||
lda sound_parts,Y ; #>ASPLODE_SAMPLE
|
lda sound_parts,Y ; #>BACK_SAMPLE
|
||||||
sta BTC_H
|
sta BTC_H
|
||||||
|
|
||||||
lda sound_len,Y
|
lda sound_len,Y
|
||||||
tax
|
tax
|
||||||
;ldx #ASPLODE_LENGTH ; 28 pages long???
|
;ldx #BACK_LENGTH ; 28 pages long???
|
||||||
jsr play_audio
|
jsr play_audio
|
||||||
|
|
||||||
; read ROM/no-write
|
; read ROM/no-write
|
||||||
|
|
||||||
bit $c082
|
bit $c082
|
||||||
|
|
||||||
done_play_asplode:
|
done_play_back_off:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
; in the game
|
|
||||||
; bim : bullet launch
|
|
||||||
; boom : bullet hit
|
|
||||||
; twang : while asploding
|
|
||||||
|
|
||||||
sound_parts:
|
sound_parts:
|
||||||
.byte $D0 ; your
|
.byte $D0 ; back
|
||||||
.byte $D8 ; head
|
.byte $D8 ; off
|
||||||
.byte $E0 ; a
|
.byte $E0 ; baby
|
||||||
.byte $E1 ; splode
|
.byte $D0 ; all
|
||||||
.byte $D0 ; whole thing
|
|
||||||
.byte $F0 ; bim
|
|
||||||
.byte $F4 ; boom
|
|
||||||
.byte $F8 ; twang
|
|
||||||
|
|
||||||
sound_len:
|
sound_len:
|
||||||
.byte $8
|
.byte $8
|
||||||
.byte $8
|
.byte $8
|
||||||
.byte $6
|
.byte $E
|
||||||
.byte $10
|
.byte 30 ; $1E
|
||||||
.byte 28
|
|
||||||
.byte $4
|
|
||||||
.byte $4
|
|
||||||
.byte $8
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user