state_wonironman=klass() function state_wonironman:init() end function state_wonironman:enter() sounds:win() 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() if (btnp(4)) sounds:menu() self.done=true self.outcome="menu" 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