aboutsummaryrefslogtreecommitdiff
path: root/background.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2022-02-04 16:12:11 -0800
committer1029chris <1029chris@gmail.com>2022-02-04 16:12:11 -0800
commitf53f66987ade0b3f2811cacbdcf72c474170621e (patch)
treee540e63083db6258d61a18eedc29980cc692b34f /background.lua
parent39ecc01dba7141bce30292a38eca2f498919fb33 (diff)
Pickups! Camera Shake! sPARKS!! YEAHH!!!
Diffstat (limited to 'background.lua')
-rw-r--r--background.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/background.lua b/background.lua
index 6965774..8393ad3 100644
--- a/background.lua
+++ b/background.lua
@@ -28,14 +28,15 @@ end
function drawbg()
cls(0)
-
+ camera((sin(shake+t())*shake)/3, (sin(shake+t()/2.1)*shake)/3)
--clouds
scrollingcircles(-9, 24, 22, 22, 4)
scrollingcircles(-14, 40, 25, 20, 13)
-
+ camera((sin(shake+t())*shake)/2, (sin(shake+t()/2.1)*shake)/2)
--landscape
scrollingcircles(110, 72, 25, 20, 14)
+ camera(sin(shake+t())*shake, sin(shake+t()/2.1)*shake)
scrollingcircles(135, 100, 30, 32, 15)
end