Reenable rotation loop-clamping code
This commit is contained in:
parent
b644c2b0f1
commit
a04d37f48e
1 changed files with 4 additions and 4 deletions
8
Star.js
8
Star.js
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue