REALLY dumb bug fixed in map rendering.
This commit is contained in:
parent
1a68ad9e6c
commit
780a045672
1 changed files with 5 additions and 5 deletions
|
@ -382,15 +382,15 @@ loopY equ 9
|
||||||
|
|
||||||
drawTop phy ; Keep Y for later
|
drawTop phy ; Keep Y for later
|
||||||
ldy offset ; Y is now offset into map data
|
ldy offset ; Y is now offset into map data
|
||||||
lda [<mapData],y
|
lda [mapData],y
|
||||||
and #$ff00 ; We only want 8 bits
|
and #$00ff ; We only want 8 bits
|
||||||
sta tileX
|
sta tileX
|
||||||
iny
|
iny
|
||||||
lda [<mapData],y
|
lda [mapData],y
|
||||||
and #$ff00 ; We only want 8 bits
|
and #$00ff ; We only want 8 bits
|
||||||
sta tileY
|
sta tileY
|
||||||
iny
|
iny
|
||||||
sta offset
|
sty offset
|
||||||
ply ; Y is our loop counter again
|
ply ; Y is our loop counter again
|
||||||
|
|
||||||
phx ; Protect from clobbering
|
phx ; Protect from clobbering
|
||||||
|
|
Loading…
Add table
Reference in a new issue