Draw the left cap as a floor scrolls in from the right correctly.

This commit is contained in:
Jeremy Rand 2017-08-08 23:28:06 -04:00
parent 5b686d5b47
commit e8150ba717

View File

@ -1060,7 +1060,9 @@ yPos: .BYTE $00
@gridLoop: @gridLoop:
lda gridLeft lda gridLeft
cmp screenRight cmp screenRight
beq @continue
bcs @return bcs @return
@continue:
ldy #LEVEL_STRUCT_WIDTH ldy #LEVEL_STRUCT_WIDTH
clc clc
adc (ZPADDR6),y adc (ZPADDR6),y
@ -1368,22 +1370,22 @@ oddRightCap: .BYTE $00
ldx #0 ldx #0
ldy #0 ldy #0
@L1: @nextLine:
lda loAddrs,x lda loAddrs,x
sta ZPADDR0 sta ZPADDR0
lda page1HiAddrs,x lda page1HiAddrs,x
sta ZPADDR0+1 sta ZPADDR0+1
lda #$0 lda #$0
@L2: @nextByte:
sta (ZPADDR0),y sta (ZPADDR0),y
iny iny
cpy #MAXXBYTE cpy #MAXXBYTE
bne @L2 bne @nextByte
inx inx
cpx #MAXY cpx #MAXY
bne @L1 bne @nextLine
lda TXTCLR lda TXTCLR
lda MIXCLR lda MIXCLR