Don't set background color every frame.
For some reason, this causes graphical glitches on real hardware.
This commit is contained in:
parent
485da7fcc6
commit
07b3a531cb
@ -235,6 +235,8 @@ InitWorld:
|
|||||||
bne -
|
bne -
|
||||||
SetA8Bit
|
SetA8Bit
|
||||||
|
|
||||||
|
jsr SetBackgroundColor
|
||||||
|
|
||||||
; Initial enemy ship-spawn cooldown.
|
; Initial enemy ship-spawn cooldown.
|
||||||
lda #30
|
lda #30
|
||||||
sta enemyShipSpawnCooldown
|
sta enemyShipSpawnCooldown
|
||||||
@ -311,7 +313,6 @@ MainLoop:
|
|||||||
++
|
++
|
||||||
jsr UpdateSprites
|
jsr UpdateSprites
|
||||||
jsr FillSecondarySpriteTable
|
jsr FillSecondarySpriteTable
|
||||||
jsr SetBackgroundColor
|
|
||||||
bra MainLoop
|
bra MainLoop
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user