Skip to content

Instantly share code, notes, and snippets.

@TheNorthEestern
Created October 20, 2013 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheNorthEestern/7076005 to your computer and use it in GitHub Desktop.
Save TheNorthEestern/7076005 to your computer and use it in GitHub Desktop.
movement code
function love.update(dt)
if love.keyboard.isDown('d') then
x = x + 100 * dt
end
if love.keyboard.isDown('a') then
x = x - 100 * dt
end
if love.keyboard.isDown('w') then
y = y - 1 * dt
end
if love.keyboard.isDown('s') then
y = y + 1 * dt
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment