aboutsummaryrefslogtreecommitdiff
path: root/waves.lua
diff options
context:
space:
mode:
authorChris Bradley <1029chris@gmail.com>2022-02-20 13:17:31 -0800
committerChris Bradley <1029chris@gmail.com>2022-02-20 13:17:31 -0800
commitb3c60287bde5f1f7c4a892ee952b34df5e9824ac (patch)
treeda5b72bff1f23956437d7d43defc0598c48816b5 /waves.lua
parent4f4a5405a95c47b34e0250e6b0f143e8e5f8dc76 (diff)
Each boss is now a checkpoint
also fixed laserguy, and added a cheat (sshhhh)
Diffstat (limited to 'waves.lua')
-rw-r--r--waves.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/waves.lua b/waves.lua
index 0c81b52..720b58f 100644
--- a/waves.lua
+++ b/waves.lua
@@ -1,5 +1,5 @@
wave = {} --store wave functions here
-currentwave = 1 --THIS IS THE CURRENT WAVE, SHOLD BE 1 UNLESS TESTING SOMETHING
+currentwave = tonum(stat(6)) or 1 --THIS IS THE CURRENT WAVE, SHOLD BE 1 UNLESS TESTING SOMETHING (the stat part is a cheat, shhh)
currentwavetime = 0
delaytimer = 0
everysecondtimer = 0
@@ -84,6 +84,7 @@ wave[5] = {
wave[6] = {
delay = 2,
start = function()
+ checkpoint = currentwave
addbasicenemy(240, 58, 1.1)
addbasicenemy(240, 68, 0.9)
addbasicenemy(240, 63, 1)
@@ -171,6 +172,7 @@ wave[11] = {
wave[12] = {
delay = 3,
start = function()
+ checkpoint = currentwave
addwallboss(128,4,15,225,0.05,true,false,true)
end,
everysecond = wave[6].everysecond,
@@ -252,6 +254,7 @@ wave[17] = {
wave[18] = {
delay = 0,
start = function()
+ checkpoint = currentwave
killallenemies()
addmissileboss(128, 0)
end,