fortunes_foundation/state_wonironman.lua

31 lines
781 B
Lua
Raw Permalink Normal View History

2024-02-12 01:58:34 +00:00
state_wonironman=klass()
function state_wonironman:init()
end
function state_wonironman:enter()
2024-02-12 04:54:01 +00:00
sounds:win()
2024-02-12 01:58:34 +00:00
completion_tracker:incr_metascore()
end
function state_wonironman:exit(new_top) end
function state_wonironman:reenter() end
function state_wonironman:suspend() end
function state_wonironman:update()
2024-02-15 01:32:27 +00:00
if (btnp(4)) sounds:menu() self.done=true self.outcome="menu"
2024-02-12 01:58:34 +00:00
end
function state_wonironman:draw()
cls(13)
local msg="you have reached the bottom\n\nreceive one majestic kroner"
local w,h=measure_text(msg)
local x=64-w\2
local y=64-h\2
line(64-7,y-3,64+7,y-3,15)
line(64-7,y+h+1,64+7,y+h+1,15)
rectfill(x-1,y-1,x+w,y+h-1,4)
print(msg,x,y,15)
y+=h+3
spr(72,64-6,y,2,1)
line(64-7,y+9,64+7,y+9,15)
print("next",57,y+11,15)
print("(🅾️)",57,y+17,15)
end