Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
265
function
gameLoop() {
266
// update() function here
267
update();
268
// render() function here
269
render();
270
}
271
272
// calls gameLoop() function 60 times per second
273
setInterval(gameLoop, 1000 / 60);
Callers
nothing calls this directly
Calls
2
update
Function · 0.70
render
Function · 0.70
Tested by
no test coverage detected