Skip to content

Instantly share code, notes, and snippets.

@robashton
Created March 17, 2011 11:33
Show Gist options
  • Save robashton/874187 to your computer and use it in GitHub Desktop.
Save robashton/874187 to your computer and use it in GitHub Desktop.
Another naive game loop
function runApplication(){
setInterval(doGameLoop}, 1000 / 30);
}
function doGameLoop(){
doLogic();
renderScene();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment