Skip to content

Instantly share code, notes, and snippets.

@shameerc
Created October 1, 2011 09:51
Show Gist options
  • Save shameerc/1255820 to your computer and use it in GitHub Desktop.
Save shameerc/1255820 to your computer and use it in GitHub Desktop.
Animation function
function gameLoop(){
//draw ojects
clearCanvas();
drawBall();
placeBar();
// collision detection
checkCollision();
// update state
setDirections();
getCoords();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment