From 07b3a531cb6ec3e2904f171232f377c4ad2b9428 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Mon, 8 Jun 2015 23:25:20 -0400 Subject: [PATCH] Don't set background color every frame. For some reason, this causes graphical glitches on real hardware. --- pewpew.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pewpew.asm b/pewpew.asm index 26bf8e0..0fdcca8 100644 --- a/pewpew.asm +++ b/pewpew.asm @@ -235,6 +235,8 @@ InitWorld: bne - SetA8Bit + jsr SetBackgroundColor + ; Initial enemy ship-spawn cooldown. lda #30 sta enemyShipSpawnCooldown @@ -311,7 +313,6 @@ MainLoop: ++ jsr UpdateSprites jsr FillSecondarySpriteTable - jsr SetBackgroundColor bra MainLoop