gitflarePublicPartly agent-ready40
sketch-rush
Multiplayer draw-and-guess game on Cloudflare Workers, Durable Objects and D1.
- LicenseApache-2.0
- LanguageJavaScript
- Last landed
dbe1e99Oct 23, 2026
Add the Apache-2.0 licence
dbe1e99import test from "node:test";import assert from "node:assert/strict";import { createAudio, SOUND_NAMES } from "../public/audio.js";import { createParticles } from "../public/fx.js"; test("audio mute api works without AudioContext", () => { const a = createAudio(); a.setMuted(true); assert.equal(a.isMuted(), true); a.play("correct"); a.scratch(1); a.unlock(); assert.ok(SOUND_NAMES.includes("win"));}); test("particles pool is fixed size and expires", () => { const p = createParticles(); p.burst(10, 10, 50, 300); p.update(0.5); p.update(3); assert.ok(Array.from(p.life).every((l) => l <= 0));});