Graphics overhaul as well as many other things

This commit is contained in:
Marcel
2018-05-05 23:43:26 +02:00
parent 377d7ca84a
commit 758533450b
4 changed files with 353 additions and 260 deletions

View File

@@ -25,10 +25,13 @@ if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(naviga
fps = 29;
}
let play = true;
// Draw
function draw() {
// Loop
requestAnimationFrame(draw);
if(play)
requestAnimationFrame(draw);
// Set NOW and DELTA
now = Date.now();