function love.load() stickman = love.graphics.newImage("stickman.png") end pressed = false function love.draw() love.graphics.setColor(1, 1, 1) love.graphics.rectangle("fill", 0, 0, 500, 500) if pressed then love.graphics.draw(stickman, 200, 200) end end function love.keypressed(key) if key == "up" then pressed = true end end