add bit of random to the confetti

This commit is contained in:
Jeff Atwood 2016-09-21 15:29:04 -07:00
parent d1bcb8af64
commit 913e18579f

View file

@ -36,7 +36,7 @@ class Particle {
this.ang = 0; this.ang = 0;
} }
this.x = this.origX + (this.radius * Math.sin(this.ang)); this.x = this.origX + (this.radius * Math.sin(this.ang)) + Math.floor(Math.random() * 3);
} }
} }