MCPcopy
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / gameLoop

Function gameLoop

assets/js/pingpong.js:265–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263
264// gameLoop
265function gameLoop() {
266 // update() function here
267 update();
268 // render() function here
269 render();
270}
271
272// calls gameLoop() function 60 times per second
273setInterval(gameLoop, 1000 / 60);

Callers

nothing calls this directly

Calls 2

updateFunction · 0.70
renderFunction · 0.70

Tested by

no test coverage detected