From b3c60287bde5f1f7c4a892ee952b34df5e9824ac Mon Sep 17 00:00:00 2001 From: Chris Bradley <1029chris@gmail.com> Date: Sun, 20 Feb 2022 13:17:31 -0800 Subject: Each boss is now a checkpoint also fixed laserguy, and added a cheat (sshhhh) --- waves.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'waves.lua') 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, -- cgit