Code: Select all
function love.load()
love.graphics.setBackgroundColor(255,0,0)
<what I named the picture> = love.graphics.newImage("<the name of the picture>")
end
function love.draw()
if love.keyboard.isDown("spacebar") then
love.graphics.draw(<what I named the picture>, 300, 400)
end
end
Code: Select all
love.keypressed(key)