Commit 794560f4 by doszhang

dos

parent 369f20de
......@@ -183,8 +183,8 @@ Particle.prototype = {
this.vy += this.gravity;
this.y += this.vy;
this.alpha -= 0.01;
if (this.x <= -this.w || this.x >= screen.width ||
this.y >= screen.height ||
if (this.x <= -this.w || this.x >= canvas.width ||
this.y >= canvas.height ||
this.alpha <= 0) {
this.alpha = 0
return false;
......
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