Commit d27477b2 by doszhang

dos

parent 85492bf8
...@@ -149,12 +149,12 @@ function Particle() { ...@@ -149,12 +149,12 @@ function Particle() {
} }
Particle.prototype = { Particle.prototype = {
gravity: 0.3, gravity: 0.01,
move: function () { move: function () {
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.01; this.alpha -= 0.001;
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