mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-27 17:29:49 +00:00
ootw: try to hook up jumping
ends up doing the moonwalk
This commit is contained in:
parent
f38b4777d2
commit
38e7664284
@ -475,7 +475,7 @@ collapse5:
|
||||
;=====================
|
||||
|
||||
|
||||
jump_progression:
|
||||
phys_jump_progression:
|
||||
.word jump1
|
||||
.word jump2
|
||||
.word jump3
|
||||
|
@ -60,11 +60,12 @@ physicist_kicking:
|
||||
; If kicking long enough, return to standing
|
||||
|
||||
dec GAIT
|
||||
bne finally_draw_him
|
||||
bne short_draw
|
||||
|
||||
lda #P_STANDING
|
||||
sta PHYSICIST_STATE
|
||||
|
||||
short_draw:
|
||||
jmp finally_draw_him
|
||||
|
||||
;===================================
|
||||
@ -89,14 +90,37 @@ physicist_crouching:
|
||||
|
||||
physicist_jumping:
|
||||
|
||||
; FIXME: we have an animation?
|
||||
lda GAIT
|
||||
cmp #16
|
||||
bcc still_jumping ; blt
|
||||
|
||||
lda #<crouch2
|
||||
lda #0
|
||||
sta GAIT
|
||||
lda #P_WALKING
|
||||
sta PHYSICIST_STATE
|
||||
jmp physicist_walking
|
||||
|
||||
still_jumping:
|
||||
|
||||
lsr
|
||||
and #$fe
|
||||
|
||||
tax
|
||||
|
||||
lda phys_jump_progression,X
|
||||
sta INL
|
||||
|
||||
lda #>crouch2
|
||||
lda phys_jump_progression+1,X
|
||||
sta INH
|
||||
|
||||
inc GAIT
|
||||
|
||||
lda GAIT
|
||||
and #$3
|
||||
bne jump_no_move
|
||||
|
||||
inc PHYSICIST_X
|
||||
jump_no_move:
|
||||
jmp finally_draw_him
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user