fix boss
it works now except for a square being drawn in the shield. good enough
This commit is contained in:
parent
ab687f8f6d
commit
b91ebeb775
@ -1213,11 +1213,11 @@ function spawn_blocking_blocky()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function spawn_spewy()
|
function spawn_spewy()
|
||||||
return spawn_spewy_at(rnd(104), -7)
|
return spawn_rnd(spewy)
|
||||||
end
|
end
|
||||||
|
|
||||||
function spawn_chasey()
|
function spawn_chasey()
|
||||||
return spawn_chasey_at(rnd(104), -7)
|
return spawn_rnd(chasey)
|
||||||
end
|
end
|
||||||
|
|
||||||
function spawn_blocking_spewy()
|
function spawn_blocking_spewy()
|
||||||
@ -1262,15 +1262,7 @@ helpers = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function spawn_blocking_boss_chasey()
|
function spawn_blocking_boss_chasey()
|
||||||
freeze += 1
|
local c = spawn_rnd(xl_chasey, 1)
|
||||||
local c = spawn_xl_chasey_at(44, -15)
|
|
||||||
c.ice = 1
|
|
||||||
c.die = function(self)
|
|
||||||
freeze -= self.ice
|
|
||||||
self.ice = 0
|
|
||||||
chasey.die(self)
|
|
||||||
end
|
|
||||||
|
|
||||||
local nextspawn = lframe + 0x0.0080
|
local nextspawn = lframe + 0x0.0080
|
||||||
events:push_back{move=function()
|
events:push_back{move=function()
|
||||||
if lframe >= nextspawn then
|
if lframe >= nextspawn then
|
||||||
@ -1322,13 +1314,13 @@ end
|
|||||||
function multi(times, interval, fnm, ...)
|
function multi(times, interval, fnm, ...)
|
||||||
local f,irm,vargs = _ENV[fnm],interval,pack(...)
|
local f,irm,vargs = _ENV[fnm],interval,pack(...)
|
||||||
assert(type(f) == "function", fnm.." not a function")
|
assert(type(f) == "function", fnm.." not a function")
|
||||||
fnm(...)
|
f(...)
|
||||||
events:push_back{move=function()
|
events:push_back{move=function()
|
||||||
irm-=1
|
irm-=1
|
||||||
if irm <= 0 then
|
if irm <= 0 then
|
||||||
irm=interval
|
irm=interval
|
||||||
times-=1
|
times-=1
|
||||||
fnm(unpack(vargs))
|
f(unpack(vargs))
|
||||||
return times <= 1
|
return times <= 1
|
||||||
end
|
end
|
||||||
end}
|
end}
|
||||||
|
Loading…
Reference in New Issue
Block a user