mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-25 20:30:31 +00:00
ootw: can now shoot while crouching
This commit is contained in:
parent
f5437230e7
commit
fe2e5f3959
10
ootw/blast.s
10
ootw/blast.s
@ -37,6 +37,16 @@ fire_blast:
|
||||
lda PHYSICIST_Y
|
||||
clc
|
||||
adc #4
|
||||
|
||||
ldx PHYSICIST_STATE
|
||||
cpx #P_CROUCH_SHOOTING
|
||||
bne blast_ypos_done
|
||||
|
||||
blast_crouch:
|
||||
clc
|
||||
adc #4
|
||||
blast_ypos_done:
|
||||
|
||||
sta blast0_y
|
||||
|
||||
; set direction
|
||||
|
15
ootw/gun.s
15
ootw/gun.s
@ -11,9 +11,9 @@
|
||||
handle_gun:
|
||||
|
||||
;===================
|
||||
; ???
|
||||
; check_gun_firing
|
||||
;===================
|
||||
jsr handle_gun2
|
||||
jsr check_gun_firing
|
||||
|
||||
;=======================
|
||||
; draw gun charge effect
|
||||
@ -54,7 +54,13 @@ handle_gun:
|
||||
; rts
|
||||
|
||||
|
||||
handle_gun2:
|
||||
;====================
|
||||
;====================
|
||||
; check gun firing
|
||||
;====================
|
||||
;====================
|
||||
|
||||
check_gun_firing:
|
||||
|
||||
lda HAVE_GUN ; no gun, do nothing
|
||||
beq no_have_gun
|
||||
@ -168,7 +174,8 @@ done_zap:
|
||||
ldy PHYSICIST_STATE
|
||||
cpy #P_CROUCH_SHOOTING
|
||||
bne done_zap_ypos
|
||||
adc #2
|
||||
clc
|
||||
adc #4
|
||||
|
||||
done_zap_ypos:
|
||||
sta YPOS
|
||||
|
@ -319,7 +319,7 @@ not_already_firing:
|
||||
|
||||
lda PHYSICIST_STATE
|
||||
and #STATE_CROUCHING
|
||||
bne crouch_charge
|
||||
beq crouch_charge
|
||||
ldy #P_CROUCH_SHOOTING
|
||||
bne crouch_charge_go ; bra
|
||||
crouch_charge:
|
||||
|
@ -43,6 +43,14 @@ fire_laser:
|
||||
lda PHYSICIST_Y
|
||||
clc
|
||||
adc #4
|
||||
|
||||
ldx PHYSICIST_STATE
|
||||
cpx #P_CROUCH_SHOOTING
|
||||
bne laser_crouch_done
|
||||
laser_crouch:
|
||||
clc
|
||||
adc #4
|
||||
laser_crouch_done:
|
||||
sta laser0_y
|
||||
|
||||
; set direction
|
||||
|
Loading…
Reference in New Issue
Block a user