diff options
Diffstat (limited to 'enemies.lua')
| -rw-r--r-- | enemies.lua | 10 |
1 files changed, 6 insertions, 4 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 |
