From e8150ba717d047b8579a24780a65a694d971d280 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Tue, 8 Aug 2017 23:28:06 -0400 Subject: [PATCH] Draw the left cap as a floor scrolls in from the right correctly. --- colourgo/game.s | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/colourgo/game.s b/colourgo/game.s index 34e1ec7..5932adb 100644 --- a/colourgo/game.s +++ b/colourgo/game.s @@ -1060,7 +1060,9 @@ yPos: .BYTE $00 @gridLoop: lda gridLeft cmp screenRight + beq @continue bcs @return +@continue: ldy #LEVEL_STRUCT_WIDTH clc adc (ZPADDR6),y @@ -1368,22 +1370,22 @@ oddRightCap: .BYTE $00 ldx #0 ldy #0 -@L1: +@nextLine: lda loAddrs,x sta ZPADDR0 lda page1HiAddrs,x sta ZPADDR0+1 lda #$0 -@L2: +@nextByte: sta (ZPADDR0),y iny cpy #MAXXBYTE - bne @L2 + bne @nextByte inx cpx #MAXY - bne @L1 + bne @nextLine lda TXTCLR lda MIXCLR