From c34208225bde3b3aad771960caceddce4b3fb7b7 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 18 Feb 2024 20:59:45 -0800 Subject: [PATCH] this notably improves compression --- vacation.p8 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vacation.p8 b/vacation.p8 index 9549680..16cbcf3 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -1043,7 +1043,7 @@ end -->8 -- consent screens -ao_splash = {fwait=180} +ao_splash = {f=180} mknew(ao_splash, function(self) self.c = breather.new{ colors={7,15,14,8,2}, @@ -1060,13 +1060,13 @@ function ao_splash:u() self.c:u() return end - self.fwait -= 1 - if (self.fwait < 150 and (btnp() & 0xf > 0) and self.fwait > 0) self.fwait = 0 - if self.fwait == 0 then + self.f -= 1 + if (self.f < 150 and (btnp() & 0xf > 0) and self.f > 0) self.f = 0 + if self.f == 0 then self.d = ditherer.new{di=1} end if (self.d) self.d:u() - if self.fwait <= -32 then + if self.f <= -32 then mainview=consent_splash.new() mainview:u() end @@ -1075,11 +1075,11 @@ end function ao_splash:draw() cls() self.c:draw() - if self.fwait < 180 then + if self.f < 180 then font_special() print("18+", 55, 60, 7) print("aDULTS ONLY", 30, 90, 15) - if (self.fwait == 179) psound(10) + if (self.f == 179) psound(10) end if (self.d) self.d:draw() end