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
|
||||
ldy offset ; Y is now offset into map data
|
||||
lda [<mapData],y
|
||||
and #$ff00 ; We only want 8 bits
|
||||
lda [mapData],y
|
||||
and #$00ff ; We only want 8 bits
|
||||
sta tileX
|
||||
iny
|
||||
lda [<mapData],y
|
||||
and #$ff00 ; We only want 8 bits
|
||||
lda [mapData],y
|
||||
and #$00ff ; We only want 8 bits
|
||||
sta tileY
|
||||
iny
|
||||
sta offset
|
||||
sty offset
|
||||
ply ; Y is our loop counter again
|
||||
|
||||
phx ; Protect from clobbering
|
||||
|
|
Loading…
Add table
Reference in a new issue