ZLP1/main.lua

33 lines
638 B
Lua

function love.load()
require "scripts"
love.graphics.setColor(1,1,1)
love.keyboard.setKeyRepeat(true)
love.graphics.setDefaultFilter("nearest") -- good pixel
windowWidth = 600
windowHeight = 600
currentMenu = 1
MenuInit(currentMenu)
end
function love.update(dt)
current_dt = dt
if doStageStep == true then
stageStep()
end
if currentMenu ~= nil
and currentMenu > 0 then
MenuStep(currentMenu)
end
end
function love.draw()
if doStageDraw == true then
stageDraw()
end
if currentMenu ~= nil
and currentMenu > 0 then
MenuDisplay(currentMenu)
end
love.graphics.print(love.timer.getFPS(), 10, windowHeight-20)
end