From f3fb8bf99ce71a733bca6d20e11a350aa21128eb Mon Sep 17 00:00:00 2001 From: Spencer Chang Date: Mon, 12 Aug 2024 14:28:06 -0700 Subject: [PATCH] some cleanup --- website/fridge.html | 3 ++- website/index.tsx | 5 +++++ website/playground.html | 2 +- website/playground.ts | 18 +++++++++++++++++- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/website/fridge.html b/website/fridge.html index 231274e..1682458 100644 --- a/website/fridge.html +++ b/website/fridge.html @@ -35,7 +35,8 @@

fridge poetry

a game powered by playhtml

drag words around to make poems! leave them for others to find later - and come back to see how people have changed the fridge. + and come back to see how people have changed the fridge. (Hint: you + might need to zoom out to see them all)

Please be nice. We're all just people on the other side of the screen. diff --git a/website/index.tsx b/website/index.tsx index 4b3c1c6..18e440e 100644 --- a/website/index.tsx +++ b/website/index.tsx @@ -149,6 +149,11 @@ playhtml.init({ const slide = confetti.shapeFromText({ text: "🛝" }); document.querySelector("body").addEventListener("click", (e) => { + // 1/4 clicks should trigger confetti + if (Math.random() > 0.33) { + return; + } + playhtml.dispatchPlayEvent({ type: "confetti", eventPayload: { diff --git a/website/playground.html b/website/playground.html index ab9e4f8..5086b87 100644 --- a/website/playground.html +++ b/website/playground.html @@ -36,7 +36,7 @@ >

CONFETTI ZONE

- +