Fix a bug - *now* we don't need InitSpriteTables.

This commit is contained in:
Colin McMillen 2015-06-01 00:35:25 -04:00
parent abddbf0033
commit a92499fc40

View File

@ -59,7 +59,6 @@ Start:
SetA8Bit SetA8Bit
jsr LoadPaletteAndTileData jsr LoadPaletteAndTileData
jsr InitSpriteTables
jsr InitWorld jsr InitWorld
; Set screen mode: 16x16 tiles for backgrounds, mode 1. ; Set screen mode: 16x16 tiles for backgrounds, mode 1.
@ -210,25 +209,6 @@ LoadPaletteAndTileData:
InitSpriteTables: ; TODO(mcmillen): why do we need this?
SetA16Bit
ldx #$0000
; Fill sprite table 1.
lda #$01
-
sta spriteTableStart, X
.rept 4
inx
.endr
cpx #spriteTable1Size
bne -
SetA8Bit
rts
InitWorld: InitWorld:
; Start the background color as a dark blue. ; Start the background color as a dark blue.
lda #4 lda #4
@ -731,6 +711,7 @@ UpdateSprites:
.rept 4 .rept 4
inx inx
.endr .endr
bra -
+ +
rts rts