2021-12-31 01:46:21 +00:00
|
|
|
function love.load()
|
|
|
|
require "scripts"
|
|
|
|
love.graphics.setColor(1,1,1)
|
|
|
|
love.keyboard.setKeyRepeat(true)
|
|
|
|
love.graphics.setDefaultFilter("nearest") -- good pixel
|
2022-01-17 23:53:03 +00:00
|
|
|
windowWidth = 600
|
|
|
|
windowHeight = 600
|
|
|
|
currentMenu = 1
|
|
|
|
MenuInit(currentMenu)
|
2021-12-31 01:46:21 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function love.update(dt)
|
|
|
|
current_dt = dt
|
2022-01-17 23:53:03 +00:00
|
|
|
if doStageStep == true then
|
|
|
|
stageStep()
|
2021-12-31 01:46:21 +00:00
|
|
|
end
|
2022-01-17 23:53:03 +00:00
|
|
|
if currentMenu ~= nil
|
|
|
|
and currentMenu > 0 then
|
|
|
|
MenuStep(currentMenu)
|
2021-12-31 01:46:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function love.draw()
|
2022-01-17 23:53:03 +00:00
|
|
|
if doStageDraw == true then
|
|
|
|
stageDraw()
|
2021-12-31 01:46:21 +00:00
|
|
|
end
|
2022-01-17 23:53:03 +00:00
|
|
|
if currentMenu ~= nil
|
|
|
|
and currentMenu > 0 then
|
|
|
|
MenuDisplay(currentMenu)
|
2021-12-31 01:46:21 +00:00
|
|
|
end
|
2022-01-17 23:53:03 +00:00
|
|
|
love.graphics.print(love.timer.getFPS(), 10, windowHeight-20)
|
2021-12-31 01:46:21 +00:00
|
|
|
end
|