Skip to content

Instantly share code, notes, and snippets.

@codebykeoma
Created Apr 20, 2019
Embed
What would you like to do?
This was created to share Lua code with my first student
function love.load()
x = 100
y = 100
width = 200
height = 150
speed = 75
end
function love.draw()
love.graphics.rectangle("line", x, y, width, height)
end
function love.update(dt)
print(dt)
x = x + (speed * dt)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment