this notably improves compression
This commit is contained in:
parent
55fdc61868
commit
c34208225b
14
vacation.p8
14
vacation.p8
@ -1043,7 +1043,7 @@ end
|
|||||||
-->8
|
-->8
|
||||||
-- consent screens
|
-- consent screens
|
||||||
|
|
||||||
ao_splash = {fwait=180}
|
ao_splash = {f=180}
|
||||||
mknew(ao_splash, function(self)
|
mknew(ao_splash, function(self)
|
||||||
self.c = breather.new{
|
self.c = breather.new{
|
||||||
colors={7,15,14,8,2},
|
colors={7,15,14,8,2},
|
||||||
@ -1060,13 +1060,13 @@ function ao_splash:u()
|
|||||||
self.c:u()
|
self.c:u()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
self.fwait -= 1
|
self.f -= 1
|
||||||
if (self.fwait < 150 and (btnp() & 0xf > 0) and self.fwait > 0) self.fwait = 0
|
if (self.f < 150 and (btnp() & 0xf > 0) and self.f > 0) self.f = 0
|
||||||
if self.fwait == 0 then
|
if self.f == 0 then
|
||||||
self.d = ditherer.new{di=1}
|
self.d = ditherer.new{di=1}
|
||||||
end
|
end
|
||||||
if (self.d) self.d:u()
|
if (self.d) self.d:u()
|
||||||
if self.fwait <= -32 then
|
if self.f <= -32 then
|
||||||
mainview=consent_splash.new()
|
mainview=consent_splash.new()
|
||||||
mainview:u()
|
mainview:u()
|
||||||
end
|
end
|
||||||
@ -1075,11 +1075,11 @@ end
|
|||||||
function ao_splash:draw()
|
function ao_splash:draw()
|
||||||
cls()
|
cls()
|
||||||
self.c:draw()
|
self.c:draw()
|
||||||
if self.fwait < 180 then
|
if self.f < 180 then
|
||||||
font_special()
|
font_special()
|
||||||
print("18+", 55, 60, 7)
|
print("18+", 55, 60, 7)
|
||||||
print("aDULTS ONLY", 30, 90, 15)
|
print("aDULTS ONLY", 30, 90, 15)
|
||||||
if (self.fwait == 179) psound(10)
|
if (self.f == 179) psound(10)
|
||||||
end
|
end
|
||||||
if (self.d) self.d:draw()
|
if (self.d) self.d:draw()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user