Created
January 3, 2018 05:56
-
-
Save jadehopepunk/361f8b2078987d0e1d1af41dad3ce550 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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