diff --git a/027.game1/game1.s b/027.game1/game1.s index 8160e26..e95aaa2 100644 --- a/027.game1/game1.s +++ b/027.game1/game1.s @@ -49,12 +49,12 @@ Reset: move.l #0,bg_xpos move.l #0,bg_shift ; shift counter (d2) move.l #0,bg_tileIndex ; tile index (d3) - move.l #0,bg_delay - + move.l #BACKGROUND_UPDATE_COUNT,d6 (Frame count) jsr BlueFill + move.l #11,frameCount MainLoop: - move.l bg_delay,d6 + move.l frameCount,d6 jsr WaitVerticalBlank bsr.s HoriScrollPlayfield @@ -82,7 +82,7 @@ MainLoop: bsr UpdateShiftCounter .skipForegroundUpdates: - add.l #1,bg_delay + add.l #1,frameCount bra MainLoop HoriScrollPlayfield: @@ -302,7 +302,7 @@ bg_xpos: bg_tileIndex: dc.l 0 -bg_delay: +frameCount: dc.l 0 section .bss diff --git a/027.game1/image.s b/027.game1/image.s index 4413158..87f569e 100644 --- a/027.game1/image.s +++ b/027.game1/image.s @@ -15,7 +15,7 @@ SwitchBuffers: lea copperListBpl1Ptr,a0 jsr PokeBitplanePointers - btst #FOREGROUND_DELAY_BIT,d6 + btst #FOREGROUND_DELAY_BIT,d6 ; only swap the background buffer every second frame beq .skipBackgroundSwap move.l bg_xpos,d0 lsr.l #3,d0 ; bytes to scroll