Reenable rotation loop-clamping code

This commit is contained in:
Starbeamrainbowlabs 2017-01-02 16:50:07 +00:00
parent b644c2b0f1
commit a04d37f48e
1 changed files with 4 additions and 4 deletions

View File

@ -61,10 +61,10 @@ class Star
{ {
// Rotate (slowly I hope) // Rotate (slowly I hope)
this.rotation += this.rotationStep * dt; this.rotation += this.rotationStep * dt;
// if(this.rotation > Math.PI * 2) if(this.rotation > Math.PI * 2)
// this.rotation -= Math.PI * 2; this.rotation -= Math.PI * 2;
// if(this.rotation < 0) if(this.rotation < 0)
// this.rotation += Math.PI * 2; this.rotation += Math.PI * 2;
// Randomly begin a twinkle // Randomly begin a twinkle
/*if(!this.twinkling && Math.floor(random(0, 50)*dt) == 0) /*if(!this.twinkling && Math.floor(random(0, 50)*dt) == 0)