From ebf8c3921e546555f213ed723627d3fb767f040c Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Fri, 9 Feb 2024 21:20:08 -0800 Subject: [PATCH] fade out title screen also reduce min AO splash time from 1sec to 0.5sec --- vacation.p8 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vacation.p8 b/vacation.p8 index 8f9d242..b7ad962 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -395,7 +395,8 @@ mknew(ditherer, function(x) end) function ditherer:update() - self.i += self.di + if (self.i > 0 and self.di < 0) self.i += self.di + if (self.i < #self.pattern + 1 and self.di > 0) self.i += self.di return self.i < 0 or self.i >= #self.pattern + 1 end @@ -578,7 +579,7 @@ function ao_splash:update() return end self.fwait -= 1 - if (self.fwait < ao_splash.fwait-60 and (btnp() & 0xf > 0) and self.fwait > 0) self.fwait = 0 + if (self.fwait < ao_splash.fwait-30 and (btnp() & 0xf > 0) and self.fwait > 0) self.fwait = 0 if self.fwait == 0 then self.d = ditherer.new{di=1} end @@ -631,8 +632,8 @@ function title_screen:draw() end function title_screen:update() - self.d:update() - if (btnp(1)) start_game() + if (btnp(1)) self.d.di = 1 + if(self.d:update() and self.d.di > 0) start_game() end -->8 -- dolphin sprite renderer