aboutsummaryrefslogtreecommitdiff
path: root/enemies.lua
diff options
context:
space:
mode:
authorChris Bradley <1029chris@gmail.com>2022-02-20 19:32:38 -0800
committerChris Bradley <1029chris@gmail.com>2022-02-20 19:32:38 -0800
commitbe10c608c87f81e55d61c715857e1657803115f1 (patch)
treeea60bf6b3759780d2f066bfffca409998499220a /enemies.lua
parent588d72e66aa11c34c18ac848df4a2ea5c02a84fa (diff)
fixed the sin wave tunnel portentially being blocked for the wall boss
Diffstat (limited to 'enemies.lua')
-rw-r--r--enemies.lua10
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