diff --git a/examples/particle.js b/examples/particle.js deleted file mode 100644 index fa9fc3f36..000000000 --- a/examples/particle.js +++ /dev/null @@ -1,39 +0,0 @@ -// Particle spawning - -kaboom() - -const sprites = [ - "apple", - "heart", - "coin", - "meat", - "lightening", -] - -sprites.forEach((spr) => { - loadSprite(spr, `/sprites/${spr}.png`) -}) - -setGravity(800) - -// Spawn one particle every 0.1 second -loop(0.1, () => { - - // TODO: they are resolving collision with each other for some reason - // Compose particle properties with components - const item = add([ - pos(mousePos()), - sprite(choose(sprites)), - anchor("center"), - scale(rand(0.5, 1)), - area({ collisionIgnore: ["particle"] }), - body(), - lifespan(1, { fade: 0.5 }), - opacity(1), - move(choose([LEFT, RIGHT]), rand(60, 240)), - "particle", - ]) - - item.jump(rand(320, 640)) - -}) diff --git a/scripts/test.js b/scripts/test.js index 26325f582..ce148ace0 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -11,9 +11,7 @@ const run = async () => { let failed = false console.log("launching browser") - const browser = await puppeteer.launch({ - protocolTimeout: 600000, - }) + const browser = await puppeteer.launch() console.log("getting examples list") const examples = (await fs.readdir("examples")) .filter((p) => !p.startsWith(".") && p.endsWith(".js"))