aboutsummaryrefslogtreecommitdiff
path: root/background.lua
diff options
context:
space:
mode:
authorRibbonCable <ambiguousmachine@gmail.com>2022-02-21 10:54:13 -0800
committerRibbonCable <ambiguousmachine@gmail.com>2022-02-21 10:54:13 -0800
commit66ce5dd3c6d321d2b4a050ea6d3a8e77cf563c1b (patch)
treec827a8e42bd494b8678a4c02852d65e2c3c710a6 /background.lua
parent9ae61a80096b2c8bcbfb72f1302ee653efff716c (diff)
Some changes to the missle boss.
Diffstat (limited to 'background.lua')
-rw-r--r--background.lua8
1 files changed, 1 insertions, 7 deletions
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