ootw: try to hook up jumping

ends up doing the moonwalk
This commit is contained in:
Vince Weaver 2019-03-15 17:08:18 -04:00
parent f38b4777d2
commit 38e7664284
2 changed files with 29 additions and 5 deletions

View File

@ -475,7 +475,7 @@ collapse5:
;===================== ;=====================
jump_progression: phys_jump_progression:
.word jump1 .word jump1
.word jump2 .word jump2
.word jump3 .word jump3

View File

@ -60,11 +60,12 @@ physicist_kicking:
; If kicking long enough, return to standing ; If kicking long enough, return to standing
dec GAIT dec GAIT
bne finally_draw_him bne short_draw
lda #P_STANDING lda #P_STANDING
sta PHYSICIST_STATE sta PHYSICIST_STATE
short_draw:
jmp finally_draw_him jmp finally_draw_him
;=================================== ;===================================
@ -89,14 +90,37 @@ physicist_crouching:
physicist_jumping: 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 sta INL
lda #>crouch2 lda phys_jump_progression+1,X
sta INH sta INH
inc GAIT
lda GAIT
and #$3
bne jump_no_move
inc PHYSICIST_X
jump_no_move:
jmp finally_draw_him jmp finally_draw_him