diff options
| author | Chris Bradley <1029chris@gmail.com> | 2022-02-20 13:17:31 -0800 |
|---|---|---|
| committer | Chris Bradley <1029chris@gmail.com> | 2022-02-20 13:17:31 -0800 |
| commit | b3c60287bde5f1f7c4a892ee952b34df5e9824ac (patch) | |
| tree | da5b72bff1f23956437d7d43defc0598c48816b5 | |
| parent | 4f4a5405a95c47b34e0250e6b0f143e8e5f8dc76 (diff) | |
Each boss is now a checkpoint
also fixed laserguy, and added a cheat (sshhhh)
| -rw-r--r-- | enemies.lua | 4 | ||||
| -rw-r--r-- | waves.lua | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/enemies.lua b/enemies.lua index 0047647..cacac0d 100644 --- a/enemies.lua +++ b/enemies.lua @@ -289,7 +289,7 @@ function addlasershooter(x, y, points, speed, stay, isboss) damagesmoke(enemy) sprite = 65 end - spr(sprite,enemy.x,enemy.y,4,2) --non-flipped sprite to reduce tokens + spr(sprite,enemy.x,enemy.y,4,4) --non-flipped sprite to reduce tokens -- spr(sprite,enemy.x+0,enemy.y+16,4,2,false,true) end end @@ -546,7 +546,7 @@ function addmissileboss(x, y) --boss that shoots missiles!!! enemy.targety = rnd(96) end if enemy.shootcooldown < 0 then - enemy.shootcooldown = 0.6 + rnd(0.5) + enemy.shootcooldown = 0.6 + rnd(0.6) if enemy.x < canshootatx and players[targetplayer] ~= nil then local offsetmissleboss = 2 if currentwavetime%2 > 1 then offsetmissleboss = 30 end @@ -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, |
