Commit a43e281f by doszhang

dos

parent 7916808e
...@@ -155,11 +155,11 @@ Particle.prototype = { ...@@ -155,11 +155,11 @@ Particle.prototype = {
this.vy += this.gravity; this.vy += this.gravity;
this.y += this.vy; this.y += this.vy;
this.alpha -= 0.01; this.alpha -= 0.01;
// if (this.x <= -this.w || this.x >= screen.width || if (this.x <= -this.w || this.x >= canvas.width ||
// this.y >= screen.height || this.y >= canvas.height ||
// this.alpha <= 0) { this.alpha <= 0) {
// return false; return false;
// } }
return true; return true;
}, },
draw: function (c) { draw: function (c) {
......
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