love2d-tutorial-runner/steps/2_layout/main.lua

20 lines
298 B
Lua
Raw Normal View History

2018-05-13 22:05:48 +02:00
function love.load()
game = {}
game.width = 800
game.height = 480
love.window.setMode(game.width, game.height)
end
function love.update(dt)
end
function love.draw()
end
-- Controls
function love.keypressed(key, scancode, isrepeat)
if key == 'escape' then
love.event.push('quit')
end
end