Skip to content

Instantly share code, notes, and snippets.

@nklsrh
Created July 10, 2013 02:54
// update ball position over time
ball.position.x += ballDirX * ballSpeed;
ball.position.y += ballDirY * ballSpeed;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment