bubble_shooter_love2d/main.lua

20 lines
473 B
Lua

local game = {}
function love.load(arg)
game.images = {}
game.images.background = love.graphics.newImage('images/background.png')
game.images.background_width = game.images.background:getWidth()
end
function love.draw()
love.graphics.draw(game.images.background, 0, 0)
love.graphics.draw(game.images.background, game.images.background_width, 0)
end
function love.keypressed(key, scan_code, is_repeat)
if key == 'escape' then
love.event.quit()
end
end