From b91ebeb77533cfab26dc28ae2e94bfb9f5d92aab Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Wed, 20 Dec 2023 13:33:00 -0800 Subject: [PATCH] fix boss it works now except for a square being drawn in the shield. good enough --- updatedshmup.p8 | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/updatedshmup.p8 b/updatedshmup.p8 index 06d2e62..190d776 100644 --- a/updatedshmup.p8 +++ b/updatedshmup.p8 @@ -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}