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)