Initial commit

This commit is contained in:
2024-01-13 18:20:27 +01:00
commit 4265d64e57
57 changed files with 1623 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
// The main game loop
var main = function () {
var now = Date.now();
var delta = now - then;
update(delta / 1000);
render();
then = now;
// Request to do this again ASAP
requestAnimationFrame(main);
};
// Cross-browser support for requestAnimationFrame
var w = window;
requestAnimationFrame = w.requestAnimationFrame || w.webkitRequestAnimationFrame || w.msRequestAnimationFrame || w.mozRequestAnimationFrame;
// Let's play this game!
var then = Date.now();
main();