aboutsummaryrefslogtreecommitdiff
path: root/update.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 /update.lua
parent39ecc01dba7141bce30292a38eca2f498919fb33 (diff)
Pickups! Camera Shake! sPARKS!! YEAHH!!!
Diffstat (limited to 'update.lua')
-rw-r--r--update.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/update.lua b/update.lua
index 022181d..01847a5 100644
--- a/update.lua
+++ b/update.lua
@@ -1,4 +1,10 @@
updateobjs()
+--screenshake math
+shake = shake + 0.11 * (0 - shake);
+if shake < 1 then
+ shake = 0
+end
+--add another player if they fire
if btn(4, 1) and playercount == 0 then
- addplayer(18, 22)
+ addplayer(32, 35)
end \ No newline at end of file