local gamescene = require"game" local current_scene local function switch_scene(newscene) if current_scene.quit then current_scene.quit() end current_scene = newscene if newscene.load then newscene.load() end end local big_font = love.graphics.newFont(72) local normal_font = love.graphics.getFont() local titlescene = {} function titlescene.draw() love.graphics.clear(1,1,1) love.graphics.origin() love.graphics.setColor(0,0,0) love.graphics.setFont(big_font) love.graphics.print("hexagon emulator",30,30) love.graphics.setFont(normal_font) love.graphics.print("press to start",40,120) end local evilscene function titlescene.keypressed(k,s,r) if k=="return" then switch_scene(gamescene) end end current_scene=titlescene for _,f in ipairs{"update","draw","keypressed","textinput","wheelmoved"} do love[f] = function(...) local x = current_scene[f] if x then return x(...) end end end