Skip to content

Instantly share code, notes, and snippets.

@jadehopepunk
Created January 3, 2018 05:56
Show Gist options
  • Save jadehopepunk/361f8b2078987d0e1d1af41dad3ce550 to your computer and use it in GitHub Desktop.
Save jadehopepunk/361f8b2078987d0e1d1af41dad3ce550 to your computer and use it in GitHub Desktop.
function animate(posX, posY, directionX, directionY, delta) {
return {
x: posX + (directionX * delta),
y: posY + (directionY * delta)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment