New steps
This commit is contained in:
19
steps/2_layout/main.lua
Normal file
19
steps/2_layout/main.lua
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
Reference in New Issue
Block a user