This commit is contained in:
2026-07-18 15:24:50 +02:00
parent 1cd2fe58b2
commit 6d2cbe1eff
+14 -2
View File
@@ -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