Commit 33df4d89 by doszhang

dos

parent ca572b43
...@@ -154,7 +154,7 @@ Particle.prototype = { ...@@ -154,7 +154,7 @@ Particle.prototype = {
this.x += this.vx; this.x += this.vx;
this.vy += this.gravity; this.vy += this.gravity;
this.y += this.vy; this.y += this.vy;
this.alpha -= 0.03; this.alpha -= 0.02;
if (this.x <= -this.w || this.x >= canvas.width || if (this.x <= -this.w || this.x >= canvas.width ||
this.y >= canvas.height || this.y >= canvas.height ||
this.alpha <= 0) { this.alpha <= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment