mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-10 08:54:51 +00:00
ootw: jumping works a bit better
This commit is contained in:
parent
38e7664284
commit
9b2822c706
@ -91,12 +91,12 @@ physicist_crouching:
|
||||
physicist_jumping:
|
||||
|
||||
lda GAIT
|
||||
cmp #16
|
||||
cmp #32
|
||||
bcc still_jumping ; blt
|
||||
|
||||
lda #0
|
||||
sta GAIT
|
||||
lda #P_WALKING
|
||||
lda #P_STANDING
|
||||
sta PHYSICIST_STATE
|
||||
jmp physicist_walking
|
||||
|
||||
@ -116,10 +116,19 @@ still_jumping:
|
||||
inc GAIT
|
||||
|
||||
lda GAIT
|
||||
and #$3
|
||||
and #$7
|
||||
bne jump_no_move
|
||||
|
||||
lda DIRECTION
|
||||
beq jump_left
|
||||
|
||||
jump_right:
|
||||
inc PHYSICIST_X
|
||||
jmp finally_draw_him
|
||||
|
||||
jump_left:
|
||||
dec PHYSICIST_X
|
||||
|
||||
jump_no_move:
|
||||
jmp finally_draw_him
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user