From a04d37f48e421324905652d8cbff2211da004692 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 2 Jan 2017 16:50:07 +0000 Subject: [PATCH] Reenable rotation loop-clamping code --- Star.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Star.js b/Star.js index 04889eb..7d23fcf 100644 --- a/Star.js +++ b/Star.js @@ -61,10 +61,10 @@ class Star { // Rotate (slowly I hope) this.rotation += this.rotationStep * dt; - // if(this.rotation > Math.PI * 2) - // this.rotation -= Math.PI * 2; - // if(this.rotation < 0) - // this.rotation += Math.PI * 2; + if(this.rotation > Math.PI * 2) + this.rotation -= Math.PI * 2; + if(this.rotation < 0) + this.rotation += Math.PI * 2; // Randomly begin a twinkle /*if(!this.twinkling && Math.floor(random(0, 50)*dt) == 0)