this notably improves compression

This commit is contained in:
Kistaro Windrider 2024-02-18 20:59:45 -08:00
parent 55fdc61868
commit c34208225b
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

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