From 52d2da496be52d0876cb6aa08b031fe2e44cc390 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 10 Nov 2026 20:36:04 +0600 Subject: [PATCH] What's new card after an update (v31) Returning players see a short card once after an update, listing what's new (this time: pet armor, pet backpack, pet beds, and the iPhone Bit fix). Brand-new players don't see it. Each release gets its own version: v31. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- index.html | 9 +++++++++ src/main.js | 19 ++++++++++++++++++- src/news.js | 45 +++++++++++++++++++++++++++++++++++++++++++++ style.css | 7 +++++++ sw.js | 3 ++- tests/smoke.mjs | 14 ++++++++++++++ 7 files changed, 96 insertions(+), 3 deletions(-) create mode 100644 src/news.js diff --git a/README.md b/README.md index e1e3ad6..db199eb 100644 --- a/README.md +++ b/README.md @@ -336,7 +336,7 @@ It needs a modern browser with WebGL. Everything, including three.js and Blockly
🧩 How it's built (for developers) -- **Offline:** `sw.js` precaches every file (stale-while-revalidate) and `manifest.webmanifest` makes it installable. Bump `VERSION` in `sw.js` when files change. The service worker is skipped on localhost so development always sees fresh files (add `?sw=1` to test it). +- **Offline:** `sw.js` precaches every file (stale-while-revalidate) and `manifest.webmanifest` makes it installable. Bump `VERSION` in `sw.js` when files change. To tell returning players about a new feature, also add an entry with the same number at the top of `NEWS` in `src/news.js`: they see a short "What's new" card once (brand-new players don't). The service worker is skipped on localhost so development always sees fresh files (add `?sw=1` to test it). - **Rendering:** [three.js](https://threejs.org/) 0.160 (vendored) loaded through an import map. Chunks are 16×16×96 with hidden-face culling and per-vertex ambient occlusion, so each chunk layer is a single draw call. - **Lighting:** sky light and block light (0–15) are flood-filled while meshing, over the chunk plus a 15-block margin, and smoothed per vertex. A small shader hook mixes them with the time of day, so torchlight stays warm at night. - **Everything procedural:** a seeded Perlin-noise world, a pixel-art texture atlas painted in code, and Web Audio sound effects synthesized on the fly. diff --git a/index.html b/index.html index 776f560..174125f 100644 --- a/index.html +++ b/index.html @@ -239,6 +239,15 @@

👤 Your account

+ +