From ab09123e67e884876ee0607e85bbc78e0b4b3899 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 10 Nov 2026 15:44:18 +0700 Subject: [PATCH] Fun Pack: Course Maker (build your own games) and Photo Mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Course Maker - New blocks: Course Start, Checkpoint, Course Finish and Coin (plus a "collected" ghost coin that comes back after the run) - Step on Start: a timer begins and coins around the course are counted. Checkpoints save your spot; falling far (or R / the โ†บ touch button) sends you back. Finish celebrates and records the best time per course, saved with the world. Flying cancels a run - Collected coins are private to your run: not undo steps, not shared in Play Together, restored when the run ends or the world reloads - HUD timer and coin count; recipes; "Fun" tab in the creative picker - Quests: Ready, Set, Go!; Coin Collector; Personal Best Photo Mode - P (or ๐Ÿ“ท on touch) captures the 3D view; frames (Polaroid with caption, rainbow, starry), filters (sunny, frosty, black & white, retro), stickers placed with a tap; save as PNG or share. Nothing is uploaded - Quest: Say Cheese! README sections, controls list, smoke check for a full course run, sw v26. Co-Authored-By: Claude Opus 5.5 --- README.md | 14 +++++ index.html | 25 +++++++++ src/blocks.js | 11 ++++ src/course.js | 139 ++++++++++++++++++++++++++++++++++++++++++++++++ src/items.js | 7 +++ src/main.js | 128 ++++++++++++++++++++++++++++++++++++++++++-- src/photo.js | 109 +++++++++++++++++++++++++++++++++++++ src/quests.js | 4 ++ src/textures.js | 26 ++++++++- style.css | 26 +++++++++ sw.js | 4 +- tests/smoke.mjs | 14 +++++ 12 files changed, 502 insertions(+), 5 deletions(-) create mode 100644 src/course.js create mode 100644 src/photo.js diff --git a/README.md b/README.md index e40d729..5ee5d37 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,20 @@ - ๐Ÿ—‚๏ธ **Several worlds:** each child can have their own worlds (name, seed, creative or survival), with export and import as a file for backups or sharing with a friend. - ๐Ÿ’พ **Auto-save:** each world's buildings, inventory, animals, pets, robot program and stars are kept in the browser. +## ๐Ÿ Course Maker: build your own games + +Not just a world to build in: build **games** in it. + +- Place a **๐Ÿ Course Start** pad, a **๐Ÿšฉ Checkpoint** or two and a **๐Ÿ Course Finish** pad, then step on Start: a timer begins. +- Scatter **๐Ÿช™ coins** along the way and see who can collect them all. +- Fall off and you land back at your last checkpoint (or press **R** / tap **โ†บ**). +- Finishing celebrates with confetti and remembers your **best time** for each course. +- Combine with trampolines, speed strips, ice, fan vents, portals and Spark pistons for wild obstacle courses, then challenge your family (or race friends in Play Together). + +## ๐Ÿ“ท Photo Mode + +Press **P** (or tap **๐Ÿ“ท**) to snap a picture of your world. Add a **frame** (Polaroid with a caption, rainbow, starry), a **filter** (sunny, frosty, black & white, retro) and **stickers**, then save it or share it. Photos stay on your device; nothing is uploaded. + ## ๐Ÿ‘ซ Play Together (online edition) Build with family and friends, **up to 4 players** in the host's world. Play Together is part of our hosted online edition (it needs our server), so it doesn't appear in the free GitHub Pages copy. Everyone in a game needs an account (see below). diff --git a/index.html b/index.html index 761829e..74555dc 100644 --- a/index.html +++ b/index.html @@ -37,6 +37,8 @@ + + @@ -44,6 +46,7 @@ + +