road off
This commit is contained in:
@@ -102,9 +102,15 @@ play_update:
|
|||||||
sta lcnt
|
sta lcnt
|
||||||
pu_lmove:
|
pu_lmove:
|
||||||
lda player_lane
|
lda player_lane
|
||||||
beq pu_lend
|
beq pu_loff ; leftmost lane: that's the grass
|
||||||
dec player_lane
|
dec player_lane
|
||||||
jmp pu_lend
|
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:
|
pu_lrel:
|
||||||
lda #0
|
lda #0
|
||||||
sta lcnt
|
sta lcnt
|
||||||
@@ -125,9 +131,15 @@ pu_lend:
|
|||||||
pu_rmove:
|
pu_rmove:
|
||||||
lda player_lane
|
lda player_lane
|
||||||
cmp #LANES-1
|
cmp #LANES-1
|
||||||
beq pu_rend
|
beq pu_roff ; rightmost lane: grass on this side too
|
||||||
inc player_lane
|
inc player_lane
|
||||||
jmp pu_rend
|
jmp pu_rend
|
||||||
|
pu_roff:
|
||||||
|
lda rcnt
|
||||||
|
cmp #1
|
||||||
|
bne pu_rend
|
||||||
|
jsr add_miss
|
||||||
|
jmp pu_rend
|
||||||
pu_rrel:
|
pu_rrel:
|
||||||
lda #0
|
lda #0
|
||||||
sta rcnt
|
sta rcnt
|
||||||
|
|||||||
Reference in New Issue
Block a user