Commit 369f20de by doszhang

dos

parent f16b95a9
...@@ -115,7 +115,7 @@ function updateWorld() { ...@@ -115,7 +115,7 @@ function updateWorld() {
} }
function update() { function update() {
if (particles.length < 200 && Math.random() < probability) { if (particles.length < 100) {
createFirework(); createFirework();
} }
var alive = []; var alive = [];
...@@ -162,7 +162,7 @@ function createFirework() { ...@@ -162,7 +162,7 @@ function createFirework() {
} }
function Particle() { function Particle() {
this.w = this.h = 2; this.w = this.h = 1.5;
this.x = xPoint - this.w / 2; this.x = xPoint - this.w / 2;
this.y = yPoint - this.h / 2; this.y = yPoint - this.h / 2;
......
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