road off
This commit is contained in:
@@ -102,9 +102,15 @@ play_update:
|
||||
sta lcnt
|
||||
pu_lmove:
|
||||
lda player_lane
|
||||
beq pu_lend
|
||||
beq pu_loff ; leftmost lane: that's the grass
|
||||
dec player_lane
|
||||
jmp pu_lend
|
||||
pu_loff:
|
||||
lda lcnt ; only a fresh press costs a miss,
|
||||
cmp #1 ; a held direction doesn't chain them
|
||||
bne pu_lend
|
||||
jsr add_miss
|
||||
jmp pu_lend
|
||||
pu_lrel:
|
||||
lda #0
|
||||
sta lcnt
|
||||
@@ -125,9 +131,15 @@ pu_lend:
|
||||
pu_rmove:
|
||||
lda player_lane
|
||||
cmp #LANES-1
|
||||
beq pu_rend
|
||||
beq pu_roff ; rightmost lane: grass on this side too
|
||||
inc player_lane
|
||||
jmp pu_rend
|
||||
pu_roff:
|
||||
lda rcnt
|
||||
cmp #1
|
||||
bne pu_rend
|
||||
jsr add_miss
|
||||
jmp pu_rend
|
||||
pu_rrel:
|
||||
lda #0
|
||||
sta rcnt
|
||||
|
||||
Reference in New Issue
Block a user