fade out title screen

also reduce min AO splash time from 1sec to 0.5sec
This commit is contained in:
Kistaro Windrider 2024-02-09 21:20:08 -08:00
parent 033a71d767
commit ebf8c3921e
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -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