* feat(game-studio): bundle 22 playable game templates
Re-applies the template changes from feat/game-studio-templates on top of main.
The PR targeted feat/game-studio, which was squash-merged into main on 11-21,
so the templates never reached main and Game Studio only showed the community games.
- 22 single-file playable templates under templates/games (racing, shooter, casual,
platformer, story, horror) with zh-CN titles, descriptions and controls.
- Studio loads template covers from the local game service instead of bundling them twice.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(game-studio): add Harbor Skirmish, Jingyang Ridge, Rooftop Roast and Periscope Depth templates
- Harbor Skirmish: the hand-drawn 3D island FPS from the DeepSeek V4.1 Flash case, as shipped.
- Jingyang Ridge: an ink-wash Water Margin boss fight (Wu Song and the tiger): read the
pounce / swipe / tail-sweep tell, dodge into the safe lane, punish the recovery.
- Rooftop Roast: fly a drone over a city block, collect five beans and land on the café roof
to win a coupon; one SHOP object rebrands it for any local business.
- Periscope Depth: lead torpedoes onto ships through a periscope; launches raise detection,
and a destroyer contact forces a dive into a sonar depth-charge evasion.
All four are single HTML files with no network requests, keyboard + touch controls,
pause on P / Esc / tab hide, restart on R, and English / Chinese text by browser language.
The default npm package is 26.81 MiB with all 26 templates (main alone is about 24.5 MiB),
so the budget moves from 26 to 28 MiB. Recompressing template images only saved 0.3 MiB
at a visible quality cost, so the images are left as reviewed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(game-studio): count only active play time and drop stale respawns after restart
- Rooftop Roast and Jingyang Ridge measured time from a clock that kept running while paused,
so a long pause ended Rooftop Roast with "time's up" right after resuming.
- Periscope Depth queued a respawn 2.5 s after each sinking; restarting inside that window
added the old round's ship to the new round.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(game-studio): show portrait games in the same 16:9 cards as landscape games
Portrait (9:16) cards were three times taller than landscape cards, so a few portrait
games filled most of the first screen. Both orientations now share one 16:9 grid:
the portrait cover is shown whole in the middle over a blurred copy of itself, in the
Super Agent game showcase and in Game Studio (which also marks them Portrait).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(game-studio): address review on the bundled fallback, Harbor Skirmish hosts and Jingyang locale
- Without the local game service, bundled template cards used covers served by that
service (404) and opened pages that load ./assets/ from a blob URL (broken artwork).
The fallback now shows each card's genre artwork, and the 17 templates that load
sibling assets ask for the local game service instead of opening a broken page.
- Harbor Skirmish's inlined Three.js carried the XHTML namespace and a discourse.threejs.org
warning URL, which the remix validator reports as external hosts. The namespace string
is split and the warning text drops its scheme; behaviour is unchanged.
- Jingyang Ridge picked Chinese for every non-English locale; it now uses /^zh/i like
the other templates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(game-studio): let validate() skip XML namespace identifiers instead of splitting them
createElementNS namespace URIs (XHTML, SVG, MathML, XLink, XML) are identifiers, never
requested, and appear in bundled libraries such as Three.js, so validate() now skips them
by exact match; a script loaded from www.w3.org is still reported. Harbor Skirmish keeps
its original XHTML namespace literal. Its console warning keeps the scheme-less URL, with
a comment saying why.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>