From 66ce5dd3c6d321d2b4a050ea6d3a8e77cf563c1b Mon Sep 17 00:00:00 2001 From: RibbonCable Date: Mon, 21 Feb 2022 10:54:13 -0800 Subject: Some changes to the missle boss. --- background.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'background.lua') diff --git a/background.lua b/background.lua index 07d5d5f..0b32f83 100644 --- a/background.lua +++ b/background.lua @@ -4,15 +4,9 @@ function scrollingcircles(y, speed, spacing, radius, color) end end --- function scrollingcirclelines(y, speed, spacing, radius, color) --- for i = 1, 256, spacing do --- circ((i-(gt*speed))%256-radius*2, y, radius, color) --- end --- end - function scrollingsprite(sprite,x,y,w,h,speed,flip) flip = flip or false - spr(sprite, (-gt*speed+x+w*8)%(128+w*8)-w*8, y, w, h, flip) + spr(sprite, -(gt*speed+x+w*8)%(128+w*8)-w*8, y, w, h, flip) --moved the "-" from gt in hopes of fixing the flickering end -- cgit