aboutsummaryrefslogtreecommitdiff
path: root/update.lua
blob: e00f2e6c778f5b2c1786baf69ad1493c26908c85 (plain)
1
2
3
4
5
6
7
8
9
10
11
updatewaves()
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(32, 34)
end