Compare commits

...

3 Commits

Author SHA1 Message Date
979e093e6d
consent and start game beeps 2024-02-18 21:15:17 -08:00
c34208225b
this notably improves compression 2024-02-18 20:59:45 -08:00
55fdc61868
fix splash, boot chime parody
deliberately not a gb chime, it's a call-forward to a sound I use elsewhere
2024-02-18 20:57:55 -08:00

View File

@ -202,9 +202,9 @@ function _init()
awakener_hold_frames = 0 awakener_hold_frames = 0
-- debug mode: skip splahes -- debug mode: skip splahes
-- mainview = ao_splash.new() mainview = ao_splash.new()
arm_awakener() --arm_awakener()
mainview=newtitle() --mainview=newtitle()
end end
function arm_awakener() function arm_awakener()
@ -1043,31 +1043,30 @@ end
-->8 -->8
-- consent screens -- consent screens
ao_splash = { ao_splash = {f=180}
fwait = 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},
sep=3, sep=3,
f=15, f=15,
on=true, on=true,
speed=240,
} }
font_monogram() font_monogram()
end) end)
function ao_splash:u() function ao_splash:u()
if self.c.f < self.c.speed/2.5 then if self.c.f < 96 then
self.c:u() self.c:u()
return return
end end
self.fwait -= 1 self.f -= 1
if (self.fwait < ao_splash.fwait-30 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
@ -1076,9 +1075,11 @@ end
function ao_splash:draw() function ao_splash:draw()
cls() cls()
self.c:draw() self.c:draw()
if self.fwait < ao_splash.fwait then if self.f < 180 then
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.f == 179) psound(10)
end end
if (self.d) self.d:draw() if (self.d) self.d:draw()
end end
@ -1095,15 +1096,26 @@ mknew(consent_splash, function(self)
end) end)
function consent_splash:u() function consent_splash:u()
if (self.f < 0x7fff) self.f += 1 local f = self.f + 1
if (btnp(1) and self.f > 150) self.d.di = 1 if (f < 0) f = 0x7fff
if btnp(1) and f > 150 and self.d.di~=1 then
self.d.di = 1
psound(8,16,8,true)
end
if self.d:u() and self.d.di > 0 then if self.d:u() and self.d.di > 0 then
mainview=newtitle() mainview=newtitle()
mainview:u() mainview:u()
end end
if (f == 1 or f==45 or f==90) psound(8,0,4)
self.f=f
end end
function consent_splash:draw() function consent_splash:draw()
self:dtx()
self.d:draw()
end
function consent_splash:dtx()
cls() cls()
font_special() font_special()
print("\^w\^twarning", 20, 2, 10) print("\^w\^twarning", 20, 2, 10)
@ -1129,7 +1141,6 @@ function consent_splash:draw()
print("") print("")
print("") print("")
print(" consent and begin: \f7➡") print(" consent and begin: \f7➡")
self.d:draw()
end end
-->8 -->8
@ -1184,13 +1195,16 @@ end
function title_screen:u() function title_screen:u()
self.a.wordwait=999 self.a.wordwait=999
if btnp(1) and self.a.wordremain ~= 0 then if btnp(1) and self.a.wordremain ~= 0 and not self.pp then
self.a.wordremain=0 self.a.wordremain=0
self.pp=true
create_game() create_game()
psound(11,0,16)
end end
self.a:u() self.a:u()
end end
-->8 -->8
-->8
-- dolphin sprite renderer -- dolphin sprite renderer
phinstate_nrm = { phinstate_nrm = {
@ -2427,3 +2441,6 @@ __sfx__
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
010800002b5452b5002b5002b500005000050000500275001c535245351a50001500005000050000500005003055024555187301f730137301373013720137100750007500075000750000500005000050000500 010800002b5452b5002b5002b500005000050000500275001c535245351a50001500005000050000500005003055024555187301f730137301373013720137100750007500075000750000500005000050000500
011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
480c00002b53518045305503054030530305203051000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500
290800000c5751f575245750c5551f555245550c5351f535245350c5151f515245150050500505005050050500505005050050500505005050050500505005050050500505005050050500505005050050500505