diff --git a/images/background.png b/images/background.png new file mode 100644 index 0000000..f000859 Binary files /dev/null and b/images/background.png differ diff --git a/main.lua b/main.lua index 139b5fe..6da5de9 100644 --- a/main.lua +++ b/main.lua @@ -1,3 +1,17 @@ +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()