it works now except for a square being drawn in the shield. good enough
This commit is contained in:
Kistaro Windrider 2023-12-20 13:33:00 -08:00
parent ab687f8f6d
commit b91ebeb775
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -1213,11 +1213,11 @@ function spawn_blocking_blocky()
end
function spawn_spewy()
return spawn_spewy_at(rnd(104), -7)
return spawn_rnd(spewy)
end
function spawn_chasey()
return spawn_chasey_at(rnd(104), -7)
return spawn_rnd(chasey)
end
function spawn_blocking_spewy()
@ -1262,15 +1262,7 @@ helpers = {
}
function spawn_blocking_boss_chasey()
freeze += 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 c = spawn_rnd(xl_chasey, 1)
local nextspawn = lframe + 0x0.0080
events:push_back{move=function()
if lframe >= nextspawn then
@ -1322,13 +1314,13 @@ end
function multi(times, interval, fnm, ...)
local f,irm,vargs = _ENV[fnm],interval,pack(...)
assert(type(f) == "function", fnm.." not a function")
fnm(...)
f(...)
events:push_back{move=function()
irm-=1
if irm <= 0 then
irm=interval
times-=1
fnm(unpack(vargs))
f(unpack(vargs))
return times <= 1
end
end}