Commit 42e9be0b by doszhang

dos

parent eecef4a2
......@@ -91,6 +91,8 @@ function resizeCanvas() {
}
function updateWorld() {
canvas.width = 641;
canvas.height = 640;
update();
paint();
window.requestAnimationFrame(updateWorld);
......@@ -98,6 +100,7 @@ function updateWorld() {
function update() {
if (particles.length < 500 && Math.random() < probability) {
console.log(particles);
createFirework();
}
var alive = [];
......
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