aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--enemies.lua4
-rw-r--r--waves.lua5
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
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,