diff options
| -rw-r--r-- | enemies.lua | 10 | ||||
| -rw-r--r-- | waves.lua | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/enemies.lua b/enemies.lua index 9da49c6..95306f5 100644 --- a/enemies.lua +++ b/enemies.lua @@ -408,12 +408,14 @@ function addwallboss(x, y, length, points, speed, stay, move, isboss) elseif move == 2 and i == ceil(rnd(length)) then -- this one is just random ones return true elseif move == 3 then --this one is that neat weaving pattern, shout out to don't get a virus fans! - if i > length/3 and i < length/3*2 then - if everysecondtimer < 0.1 then + if currentwavetime%5 < 4.5 then + if i > length/3 and i < length/3*2 then + if everysecondtimer < 0.1 then + return true + end + elseif everysecondtimer > 0.5 and everysecondtimer < 0.6 then return true end - elseif everysecondtimer > 0.5 and everysecondtimer < 0.6 then - return true end elseif move == 4 and (i < length/3+sin(t()/2)*3 or i > length/3*2+sin(t()/2)*3) then -- this one is a wavy bullet corridor return true @@ -309,7 +309,7 @@ function updatewaves() end if wave[currentwave].conditions() then if wave[currentwave+1].song and currentwave ~= 19 then --dont want the final wave to play the next song for dramatic effect - playsong(wave[currentwave+1].song, wave[currentwave+1].fade or 0) + playsong(wave[currentwave+1].song) end delaytimer += ft if delaytimer > wave[currentwave+1].delay then |
