diff options
Diffstat (limited to 'resources/js/scene.js')
-rw-r--r-- | resources/js/scene.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/js/scene.js b/resources/js/scene.js index 194a77b..684cd11 100644 --- a/resources/js/scene.js +++ b/resources/js/scene.js @@ -18,6 +18,7 @@ class Scene { Math.random() * this.gameArea.canvas.width, Math.random() * this.gameArea.canvas.height, Math.random() * 360 + // 18, 100, 180 ); this.components.push(new_component); } @@ -36,7 +37,8 @@ class Scene { // Kinda annoying, setInterval is a piece of shite and is always run from global scope // Therefore "this.update" will be undefined unless we bind it const updateMe = this.update.bind(this); - this.interval = setInterval(updateMe, 5); + this.interval = setInterval(updateMe, 20); + // updateMe(); this.started = true; } |