-- menu: splash + title menu function init_splash() scr=0 stik=0 music(9) -- eerie slow drone under the splash + title end function to_menu() scr=1 music(9) -- pause-menu "main menu": straight to the title, no splash end function update_splash() stik+=1 if stik>132 or btnp(4) or btnp(5) then scr=1 end end function draw_splash() cls(0) draw_balloon(64,38+sin(t()/2)*3) -- hot-air balloon bobbing over the logo draw_logo(64,76,3) print("@vinnymac.dev",75,122,6) -- author handle, bottom-right -- one fade-out to black near the end (idx 5=clear .. 1=black, so count DOWN) if stik>114 then fadeover(6-(stik-114)/3.6) end end function update_menu() if btnp(0) then diff=max(1,diff-1) sfx(0) end if btnp(1) then diff=min(3,diff+1) sfx(0) end if btnp(2) or btnp(3) then timed=not timed sfx(0) end if btnp(4) or btnp(5) then init_play() end end function draw_menu() cls(0) for o=1,127,3 do local h=13+sin(o*0.17+t()*2.1)*7+sin(t()*1.6+o*0.09)*4+rnd(4) for d=0,h,2 do local f=d/h circfill(o+sin(t()*2+f*3+o*0.1)*f*2,128-d,(1-f)*2.2+0.5,fcol(f)) end end draw_logo(64,12,2.4) pr_c("save the packages from",64,40,7) pr_c("dependency hell",64,48,8) pr_c("\139\145 diff: "..diffnames[diff],64,72,12) pr_c("\148\131 mode: "..(timed and "timed" or "zen"),64,82,timed and 8 or 11) local r,w=dget(1),dget(3) if r>0 then pr_c("rescued: \fb"..r.."\f7"..(w>0 and" wins: \fb"..w or""),72,93,7) end pr_c("press \151 to start",64,104,7) end