Here's what the code sorta looks like:
Code: Select all
function love.load()
objectimg = love.graphics.newImage("object.png")
objecty = 50
objectspeed = 100
end
function love.draw()
love.graphics.draw(objectimg, 50, objecty)
end
function love.update(dt)
objecty = objecty + objectspeed * dt
if objecty > 600 then
objecty = 0
end
end