Skip to content

Instantly share code, notes, and snippets.

@garyanikin
Created April 22, 2022 14:45
Show Gist options
  • Save garyanikin/21b6a2034abd2b662e71a36f4e3f6cd2 to your computer and use it in GitHub Desktop.
Save garyanikin/21b6a2034abd2b662e71a36f4e3f6cd2 to your computer and use it in GitHub Desktop.
Game module
const FPS = 60;
function setup() {
}
function loop() {
}
setup();
setInterval(loop, 1000 / FPS);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment