Reenable rotation loop-clamping code

This commit is contained in:
Starbeamrainbowlabs 2017-01-02 16:50:07 +00:00
parent b644c2b0f1
commit a04d37f48e

View file

@ -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)