From 6d2cbe1eff6755583e55f83fd9bcfb852220e7ca Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Sat, 18 Jul 2026 15:24:50 +0200 Subject: [PATCH] road off --- play.asm | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/play.asm b/play.asm index e398c22..85a57a6 100644 --- a/play.asm +++ b/play.asm @@ -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