duke: try to avoid clipping off screen

This commit is contained in:
Vince Weaver 2020-12-17 18:58:03 -05:00
parent a9d55e30a1
commit e48ce18f4e

View File

@ -198,8 +198,13 @@ handle_jumping:
lda DUKE_JUMPING
beq done_handle_jumping
lda DUKE_Y
beq dont_wrap_jump
dec DUKE_Y
dec DUKE_Y
dont_wrap_jump:
dec DUKE_JUMPING
bne done_handle_jumping
lda #1 ; avoid gap before falling triggered