mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-01 05:31:52 +00:00
keen: can jump left
This commit is contained in:
parent
49dd713c17
commit
9b0b98bbe8
@ -180,7 +180,7 @@ done_right_pressed:
|
||||
|
||||
check_jump_right:
|
||||
cmp #'E'
|
||||
bne check_up
|
||||
bne check_jump_left
|
||||
|
||||
jump_right:
|
||||
|
||||
@ -203,6 +203,33 @@ jump_right:
|
||||
|
||||
jmp done_keypress
|
||||
|
||||
|
||||
check_jump_left:
|
||||
cmp #'Q'
|
||||
bne check_up
|
||||
|
||||
jump_left:
|
||||
|
||||
; jump
|
||||
lda KEEN_JUMPING
|
||||
bne done_right_pressed ; don't jump if already jumping
|
||||
|
||||
lda KEEN_FALLING
|
||||
bne done_right_pressed ; don't jump if falling
|
||||
|
||||
lda #JUMP_HEIGHT
|
||||
sta KEEN_JUMPING
|
||||
|
||||
jsr jump_noise
|
||||
|
||||
lda #$FF
|
||||
sta KEEN_DIRECTION
|
||||
lda #10
|
||||
sta KEEN_WALKING
|
||||
|
||||
jmp done_keypress
|
||||
|
||||
|
||||
check_up:
|
||||
cmp #'W'
|
||||
beq up_pressed
|
||||
|
Loading…
Reference in New Issue
Block a user