[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MGS4K45EF1QNNWGW62ZGBN":3,"skill-same:01M6MGS4K45EF1QNNWGW62ZGBN":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M6MGS4K45EF1QNNWGW62ZGBN","game",null,"Make or change a rules-plus-view multiplayer web game inside a Homie studio — the server runs the rules, each browser predicts its own movement and renders the game, strangers meet in public rooms, bots fill empty seats, rounds end and restart — prove it with two browsers finishing a round, and give it an epic landing page (a full-bleed hero from its own footage or art, the pitch, Play, phone \u002F computer \u002F TV, live rooms, how to play, credits). Use when someone in a Homie studio (a folder with studio.json) asks for a new game, a change to a game, a game whose own AI decides (opponents picking tactics, an NPC's reaction, a director's call, a turn's move), or a better page for a game (\"make my game's landing page epic\").","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fhomie-rocks\u002Fhomie\u002Fskills\u002Fgame\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"bots","new","when","Meet","hero","studio","move","github cli","pitch","how to","end","director","cli","my game","Art","only","ollama","server","wrangler","cloudflare","browser","change","2026-11-10 10:12:30",false,"---\nname: game\ndescription: Make or change a rules-plus-view multiplayer web game inside a Homie studio — the server runs the rules, each browser predicts its own movement and renders the game, strangers meet in public rooms, bots fill empty seats, rounds end and restart — prove it with two browsers finishing a round, and give it an epic landing page (a full-bleed hero from its own footage or art, the pitch, Play, phone \u002F computer \u002F TV, live rooms, how to play, credits). Use when someone in a Homie studio (a folder with studio.json) asks for a new game, a change to a game, a game whose own AI decides (opponents picking tactics, an NPC's reaction, a director's call, a turn's move), or a better page for a game (\"make my game's landing page epic\").\ncompatibility: Node 22 and Chrome. The studio's pinned Wrangler runs the dev site; the GitHub CLI (gh) opens a pull request when the studio publishes that way; Ollama with clef-flash, optional, answers a game's AI decisions on this computer under dev (downloaded only after the person's yes).\nmetadata:\n  providers: cloudflare github ollama\n---\n\nFor a game with its own fixed integration rate, use the opt-in\n`ctx.substeps(body, hz, step)` facility in `RULES.md` (Integrating at the game's\nown rate). Its callbacks share the tick budget and its recorded poses drive\nlocal drawing. Keep the game's input-transition policy explicit.\n\nRead the installed toolkit's `node_modules\u002F@homie-rocks\u002Fstudio\u002Fguides\u002Fgame\u002F{RULES,REWRITE}.md`\nbefore authoring: these match its runtime even when this plugin is older. Toolkit\ncheck\u002Fbuild report stale installed plugin copies and the update step. For solid slopes and terrain, use heightTiles with `base` and the source\n`diagonal`; test sides, underside, step clearance and rays. Maps are indexed at\ncompile time up to 100,000 shapes; measure default-budget spawn and traversal. For live\ncover, doors and platforms, use declared entity `collider` state and movement's\n`ctx.world.sweep\u002Fsupport\u002Foverlaps`; test prediction, loss, rejoin and restore.\n\n\n**Apps:** For a business, venue, cause or customer app, follow the `app` skill: `apps\u002F\u003Cid>\u002Fapp.json`, one morphing screen, roles and parts. Reuse these engines and workflows; do not impose game rounds, scores, bots, a game demo or page navigation. The app check proves shared actions and reconnect; app stores use the same standalone command.\n\n\n# Make a game\n\nFor place-based builds, read [the six-build patterns](..\u002Fapp\u002FPLACES.md): owner words to needs, records as objects, a local scene and ambience, one trusted operation for screens and AI, graceful graphics, and adversarial proof. Apply the same authority and honest-evidence rules to game economies and tickets.\n\n\nYou are in a Homie studio when the folder (or one above it) has `studio.json`. If there\nis none, use the `studio-setup` skill first.\n\n**Asked to rewrite an existing browser-hosted game for the server? Read\n[REWRITE.md](REWRITE.md) in full before editing.** Preserve the renderer, feel,\nother games and every existing test file, including its import paths. If an old\n`rules.ts` exports tested helpers, keep those exports when adding defineRules;\ndo not redirect the tests to a new helper file. Run the original test command.\n\nFor a request involving a larger room or map, read RULES.md's **Spatial delivery**\nsection. `players.max` chooses the room size and Gate layout. Choose `room.view.radiusM`\nfor the playable neighbourhood, and visual precision and far update rates to fit\nthe game. Local measurements are in docs\u002Frooms-milestone-2-notes.md; they are not\nCloudflare or physical-phone capacity guarantees.\n\n## Start it\n\n- **Look for pieces before writing them.** Games build on each other by sharing parts: a creature from one game,\n  a level from another, a bot brain from a third. For each system the game needs (camera, movement, bots, pickups,\n  effects, sound, UI, environment), before writing it from scratch:\n  - check the `@homie-rocks\u002F*` packages (npm) for the general mechanism: camera, input, audio, effects;\n  - run `parts_find` for pieces other studios shared, and bring one in with `part_add`.\n\n  Search by system (touch controls, feedback, sound, scoring, title and results UI, rooms), not only by genre. Add a fitting result with `part_add` before implementing a replacement; import and use it in the game. A starter or npm package is not a catalog search. Record part version, source game\u002Fstudio, licence and integration in CODEX **Built from**, or the search and concrete gap if nothing fits. In a hosted workspace these same tools work; after `part_add`, wait for the committed preview through `build_progress`.\n\n  Record both in the game's CODEX (Built from) and its credits: what came from where, and what you wrote here and\n  why. After building a piece another game could use, offer to make it a part (`part_new`) and, only if the person\n  asks, to share it (`part_share`). The `parts` skill has the method.\n- **A new studio's first game:** follow `studio-setup`, choose sensible defaults from the request,\n  write the plan and build it. The live demo is optional; never require a detour or an interview.\n- **A game with a Game Codex** (`games\u002F\u003Cid>\u002FCODEX.md`): read it first; it is the plan. Every decision that\n  changes it goes into it in the same change, with a dated line under Latest, and the page is redrawn\n  (`npx --no-install homie-studio codex \u003Cid>`). A big change to a game without one: plan it first.\n- **Other studios** beside this one (a neighbouring folder with its own `studio.json`) are other people's\n  work: never read their games or copy from them, not even as a model for this one, unless the person asks.\n  What you may read is this studio and the toolkit in its `node_modules\u002F@homie-rocks\u002Fstudio\u002F`.\n- **New game:** call the Homie MCP tool `game_make` (id, name) for the exact command\n  and rules (without the connector, go on: the command is here and the rules are this skill's), then run\n  `npx --no-install homie-studio game new \u003Cid> --from gem-rush --name \"\u003CName>\"`\n  (`--from block-drop` for a falling-block puzzle; `--from gem-rush-3d` for a 3D game: three.js with free library models; `--from hero-rush-3d` for a 3D game with\n  animated characters that run, jump and swing). The id becomes the game's\n  address (`\u002F\u003Cid>\u002F`); lowercase, digits, hyphens.\n- **Make an existing single-player web game multiplayer:** use the `port` skill (it\n  grades the port, brings the game in, and proves it with the owner tests).\n- **Build on another studio's game:** through parts, never the whole game (remix was\n  retired; `game remix` answers with a sentence that says so). `parts_find` searches the pieces\n  other studios shared (a creature, a level, a bot brain) and `part_add` brings one in with its\n  licence and credit: the `parts` skill has the method. When someone asks to copy or remix a\n  whole game, say that plainly and offer to make a game of their own like it, with parts where\n  some fit.\n- **A game's own licence** is game.json `\"license\"`: an SPDX identifier (`\"MIT\"`), said on its\n  page; a game that names none says nothing. A game.json with `\"remixOf\"` was made from another\n  studio's game: keep the key, whatever else changes (its landing says \"Based on \u003Cgame> by\n  \u003Cstudio>\").\n\n## Write and change rules plus view\n\nFor wrapping worlds or generated levels, use the map's opt-in `wrap` and room-scoped\n`world.map.replace` APIs described in RULES.md's **Wrapped worlds and generated levels**.\nPrefer one indexed map revision for a generated maze; keep independently moving\ndoors and platforms as live colliders. Generation and navigation baking spend the\nroom handler's budget.\n\n**Read [RULES.md](RULES.md) before writing code.** All starters use this contract.\nWork in few, large edits: read each source file once, decide its changes, then\nmake every change it needs in ONE file_edit with an edits list. Build after each\ncoherent change across rules, movement and view. When a diagnostic names a file and line, read that exact location and repair the expression it names before unrelated cleanup. Rebuild to verify that error is gone. `room.me.seat` identifies a player; there is no `room.me.slot`. Prefer targeted edits for repairs. A write replaces the whole file: never send only its tail or resume a truncated file with a replacement containing the remaining lines.\n\nNew games use `game.json` `\"entry\": \"src\u002Fview.ts\"`, `\"room\": { \"host\": \"server\" }`,\nand a studio-chosen `players.max`. HTML loads `\u003Cscript type=\"module\"\nsrc=\".\u002Fassets\u002Fmain.js\">\u003C\u002Fscript>`, not the source-file URL. Choose seats, tick rate (20 by default), dimensions and\nstarter yourself from the request; never ask the person an engineering question.\n`block-drop` is the falling-block\u002Fboard-game reference: separate stationary wells, seven-piece bags, rotation, line clears, real keyboard and touch controls. Use it for Tetris-like requests and retain its working mechanic while changing the requested look or features. `coin-dash` is the smallest movement reference; `gem-rush` adds bumps; `ember-vale` adds\ncompanions, decisions and character saves; the two 3D starters add models and jumps.\nA starter is a starting point: implement the requested mechanic, not a renamed gem collector.\nThe build refuses a game with neither rules plus view nor a browser-hosted netplay contract;\na plain browser bundle is not a multiplayer game.\n\n- **Truth: `src\u002Frules.ts`.** Default-export `defineRules({ contract: 2, ... })`.\n  Declare every lasting value in entity `fields`, movement `motion`, or room `shared`,\n  and payloads in `shapes`. An entity handler changes only `self`; room handlers alone\n  change shared state. Affect others with declared events, delivered on a later tick.\n  Validate commands against current turn, cooldown, distance and ownership in rules.\n  IDs are opaque `f.ref()` strings; compare them, never parse or sort them as numbers.\n- **Movement: `src\u002Fmove.ts`.** Export `move = defineMove(...)`, import it in rules.\n  The server and local prediction run the same step. Read only body pose\u002Fmotion,\n  input, public tune, map plus declared live colliders and `ctx` clock\u002Fmath. Sweep against the world, normalize\n  diagonals, and declare the normal running `maxSpeed`. Put jumps, dashes and knocks\n  here, with rule decisions encoded in `motion`. Do not add `body.move: 'owner'`:\n  authoritative movement already predicts immediately and keeps the wall solid.\n- **View: `src\u002Fview.ts`.** `import type rules from '.\u002Frules'` and\n  `openRoom\u003Ctypeof rules>()`; send `room.input` and `room.command`, draw `room.me`,\n  `room.each`, `room.shared`, `room.round` and `room.roster`. Handle a null own body.\n  Camera, models, DOM, audio and particles stay here. The local pose is predicted;\n  other poses are interpolated. A button or swing can animate on press, but damage,\n  pickups and scores wait for the server. No second physics loop or local score authority.\n- **Determinism and budget.** Use `world.tick`, `world.dt`, `world.ticks`, `world.after`,\n  `world.random` and `world.math` (movement: `ctx`). No clocks, timers, async, network,\n  `Math.random`, transcendental `Math` functions, `**`, changing module state or\n  load-time computation in rules. Bounded local queries, bounded collections and\n  declared fields keep work under the deterministic budget. Read all build messages\n  and repair the named handler; never evade the guard or raise budgets to hide a bug.\n- **Levels:** declare `map: '.\u002Fmap'` and put bounds, solids and named spots in\n  `map\u002Fmain.json`. Draw from the same map. In 3D rules use metres, z up and feet\n  positions; Three.js draws `(x,z,y)`. Height tiles are terrain; boxes are solid\n  platforms. Decorative hills or meshes do not collide unless represented in the map.\n- **Rounds and arrivals:** use automatic rounds or `rounds.seconds: 0` plus a room\n  handler that calls `world.round.end()` for turn games. Never give a quiz or word\n  game fake movement just to satisfy a test. Initialize late arrivals in `on.arrive`\n  as well as existing bodies in `onRoom.roundStart`. `think` returns inputs, not commands;\n  bot actions go through the same rules as a person's. Show the actual goal and result.\n- **Companions:** `guide.view` returns declared `shapes.view`; `guide.floor` chooses\n  a vocabulary goal without a model; `think` follows `self.goal` and calls\n  `world.goalDone`. Write `agents.json` goals, lines and asks in the game's voice.\n  Draw `room.askButtons(id)` and call `room.ask`. Server policies reserve companion\n  seats; input never grants a role. Use `world.level`, `world.guideLevel`,\n  `world.guideSeats` and `world.kids`. Preserve visible AI labels.\n- **Game decisions:** declare `asks` with state, questions and a synchronous floor;\n  call `world.ask` per beat or turn and handle `on.answer` once (`ai`, `local`, or\n  `floor`). No promise\u002Fawait or `net.decide` in rules. The floor must play well alone.\n- **Hosting and saving:** server hosting is the default. Browser hosting is for\n  offline play, local experiments or private friends games, using the same rules;\n  it is not a fix for a failed build. Room state saves automatically and restores\n  as a whole, but the room ends 60 seconds after its last person leaves. Character\n  progress uses the separate saves API below. No secrets in entity\u002Fshared state:\n  every replica receives it. A prop disguise is a visual mechanic, not secure hidden\n  information. Private per-seat information and bigger rooms belong to milestone 2.\n- **Changing a rules game:** read its codex, declarations, move and view; change the\n  responsible half, preserve unrelated play, and rebuild. The build\u002Fstate hashes\n  manage compatibility automatically; do not hand-pack snapshots or bump netplay.version.\n  Recheck the changed mechanic, a late join and a reload in two browsers.\n- **Changing an old-style game:** existing netplay games keep working on 0.45.0\n  with their original 32-seat limit. Preserve their behavior on ordinary edits.\n  For a server migration or larger room, follow [REWRITE.md](REWRITE.md).\n  New games use rules plus view; there is no automatic converter yet.\n- Phones get touch, computers get keys; typed names and chat are text only.\n  Keep native DOM buttons outside `guardGestures`' touch-drag selector; otherwise bind\n  touch pointers explicitly. Verify actual touchscreen taps, not only `.click()`.\n  Keep controls clear of the shell's pills (`room.net.shell`). Watchers use\n  `room.net.viewSeat` for their camera and HUD, and `room.net.spotlight` for action.\n  `watch: 'overview'` or `false` changes the offered UI, not secrecy of snapshots.\n\nMake it the requested game, one milestone at a time. Read each file, make coherent\nedits, build, act on the diagnostics and test the actual play before declaring it done.\n\n- **Room chat and speech bubbles** (NETPLAY.md section 19; `chat\u002FCHAT.md`). Every game has room chat on its\n  play page with no code: reactions that float up every screen, quick lines, and typing where the rules allow.\n  Give it the game's own voice in `game.json` `\"chat\"`: `\"lines\"` (up to 12 quick lines, short and kind:\n  `{ \"gg\": \"Good game!\", \"gem\": \"Grab that gem!\" }`), up to 3 extra `\"emoji\"` (`{ \"gem\": \"?\" }`), and the\n  defaults that suit its players (`\"mode\": \"lines\"` for a game for children; the owner can change any of it).\n  Draw what players say over their characters with the port kit, after the name labels:\n\n  ```ts\n  const bubbles = createBubbles({ measure: (t) => { ctx.font = BUBBLE_FONT; return ctx.measureText(t).width; } });\n  net.on('say', (s) => bubbles.say(s.seat, s.text, { id: s.id, kind: s.kind }));\n  net.on('unchat', (e) => e.ids.forEach((id) => bubbles.remove(id)));\n  paintBubbles(ctx, bubbles.place(speakers.map((p) => ({ key: p.seat, x: p.labelX, y: p.labelTop, self: p.mine }))));\n  ```\n  A game's own chat keys (a quick-line wheel): `net.sayLine('gg')`, `net.react('fire')`. Never draw a name or a\n  message as markup. **Where chat sits:** the Chat pill rides the room button's band (`screen.share` below; a\n  round icon on a phone), and the strip of new lines shows for a moment at the bottom left. If the game's HUD or\n  controls are there, put the strip where it has room in `game.json` `\"screen\": { \"chat\": { \"at\": \"top-right\",\n  \"y\": 110 } }` (a corner, `top-center` or `bottom-center`; `x` \u002F `y` in pixels; per device: `desk`, `phone`,\n  `sideways`, `tv`), or keep new lines in the Chat sheet with `\"lines\": \"sheet-only\"` (the pill counts them).\n  Never turn typing off to make room: place the strip instead (`chat\u002FCHAT.md` has every field).\n- Update `game.json` `name` and `blurb`, and the `\u003Ctitle>`.\n\n## Lasting worlds and account characters\n\nFor a world that should still exist tomorrow, set game.json:\n\n```json\n{\"room\":{\"host\":\"server\",\"lifetime\":\"persistent\",\"characters\":true}}\n```\n\nLasting worlds default to `offline: false`: wait for the durable server. A studio\nmay explicitly set `offline: true` for separate local practice, whose progress\nis not saved to the world or account. Never count that as proof of persistence.\n\n`characters` is optional: `lifetime` alone keeps the world. Account characters\nrequire the existing studio sign-in\u002Fpasskey. Play redirects to the account page\nwhen needed. In `room.join(ctx, player)`, return\n`player.character ?? { kind: 'runner', at: spawn }`. Keep inventory in that player\nkind's declared fields and change it only in rules. The runtime returns its kind,\nposition, heading, fields and motion to the account when it leaves. Use\n`player: true` or `leave: 'despawn'`; a returned character cannot also become a bot.\nDo not reset inventory in `arrive`, round-start handlers or `world.finish`.\n\nThe public world has a stable room name; `?room=\u003Cname>` chooses another world.\nEvery tick commits before publishing its results. An empty world sleeps and\nretains state. A failed write stops play with the last good save intact. Another\nroom waits for the current holder to return the character; no timeout grants a\nstale copy. No database or IDs are set up by hand. Ordinary games keep their\nexisting save frequency and behavior.\n\nWrite idempotent pickups using a saved collectible ID\u002Fset; duplicate commands\nmust not mint again. Events arrive later and can become `undeliverable` when a\nrecipient leaves; do not treat sending one as an atomic inventory transfer.\nTrading and shop-grant consumption need the later economy slice. Browser saves\nremain player-owned and are not an authoritative inventory.\n\nThis first slice saves the whole world every tick, so opted-in games pay for\nmore writes. Compatible deploys still restart\u002Freload and then restore the world.\nA state-schema change is refused on restore with data retained; keep the previous\ncompatible build until migrations ship. Offline play has no account authority.\n\nFor proof, build normally, then sign two players in and test movement, pickup,\nrestart mid-pickup, a compatible rebuild, and a fresh profile signing in as the\nsame player. Verify actual inventory and world state. A lasting world need not\nfinish a round: its browser proof replaces the match check's round requirement.\n\n## Progress that lasts: cloud saves\n\nWhen the plan says progress persists across sessions or devices (the codex's \"Progress that lasts\", or the person\nasks for a character, levels, unlocks, a collection, hardcore), wire in saves. For player-owned browser progress use the existing saves API below. For a server-authoritative\nworld or inventory, use Lasting worlds above. Ordinary match rooms expire after their last player leaves.\n\n- `game.json`: `\"saves\": true`. A new game of that kind can start from the starter:\n  `npx --no-install homie-studio game new \u003Cid> --from ember-vale --name \"\u003CName>\"` (a hero that lasts, lifetime\n  stats, a hardcore mode with a hall of the fallen, on the same rooms as any game).\n- In the game: `import { createSaves } from '@homie-rocks\u002Fstudio\u002Fsaves'`; `const saves = createSaves({ game: '\u003Cid>' })`.\n  Load on arrival (`await saves.get('hero')`), save when it changes (`saves.set('hero', hero)`, at most about once a\n  second), and reload on `saves.on('player', ...)` (the player signed in on this device). Keep one character in ONE\n  key. Lifetime numbers: `saves.stats.add({ kills: 1 })`. Hardcore: `saves.fall({ character, summary, wipe: true })`.\n- Rules emit declared effects; the view checks the effect's entity ID against `room.me?.id` before\n  changing its own character save. These browser-written saves are player-owned progress, not a\n  server-verified economy or authority for purchases. Room durability is separate and automatic.\n- A character's name is the save's, not the room's: the room knows a person by their account's name or a two-word\n  handle. Draw the character's name over its body and in the ranking (a declared command requests it; rules validate and keep it in the player entity), except on a kids server, where the others stay handles. Ember Vale does it.\n- Show who is playing (`saves.player.name`, guest or signed in) and a small \"Keep my progress\" button that calls\n  `saves.signIn()`; the play page shows its passkey sheet. Pressing Play never needs an account.\n- A guest who signs in to an account that already has the same key: say how the two combine, once, in\n  `site\u002Fsrc\u002Fworker.mjs`: `mergeSaves({ '\u003Cid>': { saves: { coins: 'sum', 'best-level': 'larger', settings: 'newer' },\n  stats: { kills: 'sum' } } })` from `@homie-rocks\u002Fstudio\u002Fworker` (or a function for an inventory). Server records\n  are joined without a rule; any other key with no rule reaches the game's `onConflict` (SAVES.md, \"When a guest\n  signs in to their account\").\n- Prove it: build, `npm run dev`, open `http:\u002F\u002Flocalhost:8787\u002F\u003Cid>\u002Fplay` (passkeys need `localhost`, not\n  `127.0.0.1`), play, reload: the progress is still there. The whole guide is\n  `node_modules\u002F@homie-rocks\u002Fstudio\u002Fsaves\u002FSAVES.md` (the limits, offline and conflicts, what is stored, privacy).\n\n## Prove it\n\nOpen a progress feed for every build, titled with what it does (the codex's milestone); the codex\npage's Build status tab and Claude Code's status line follow it by themselves (in Codex and Grok Build\nthe codex page is the view: `npx --no-install homie-studio codex \u003Cid> --open`). When the person is\nfollowing along in the Claude app (or anywhere they cannot see your terminal), share it and show it:\n\n```sh\nnpx --no-install homie-studio progress start \u003Cid> --share --title \"\u003Cwhat this build does>\" [--budget \u003Cdollars>]\nnpx --no-install homie-studio progress stage plan done --note \"\u003Cthe plan in one line>\"\n```\n\nIt prints a build id: call the Homie MCP tool `build_progress` with it once, and where the app\ndraws cards (the Claude app) the card follows the build by itself (stages, each check going green, a\npreview, spend, Stop). The commands below report into it. If a command answers `stopped`, the person pressed Stop:\nend there and ask before starting again.\n\n**Started from the Claude app** (a Claude Code session whose prompt came from a \"Build it\"\ncard, naming a build `hb_...` and maybe a setup `hs_...`): the chat already opened the build, so\ntake it instead of starting one, then work on a branch and publish as a pull request. The\nprompt names the studio's repository: first check this session is in it\n(`git remote get-url origin`). If it is in another one (`homie-rocks\u002Fhomie` is Homie's\nengine and template, never a studio), stop and say so; never attach from it.\n\n```sh\nnpm install                                            # the studio's pinned toolkit, from registry.npmjs.org\nnpx --no-install homie-studio setup attach hs_...        # only when the prompt names a setup: once, first\nnpx --no-install homie-studio progress attach hb_...     # this session takes the chat's build (once)\nnpx --no-install homie-studio chrome install           # Linux without Chrome: Chrome for Testing, once\n# ... make the game, build, dev, check (below) ...\nnpx --no-install homie-studio progress change \"\u003Cwhat the change does, one line>\"\ngit switch -c \u003Cshort-branch> && git add -A && git commit -m \"\u003Cwhat it does>\" && git push -u origin HEAD\ngh pr create --fill\nnpx --no-install homie-studio progress pr --url \u003Cthe pull request's address>\n```\n\nThe card's Publish button opens the pull request for the person; their merge in GitHub is\nthe approval. Workers Builds deploys the branch as a Preview (run `check --url \u003Cthe Preview\nURL>` when the pull request shows it, and pass it as `progress pr --preview`) and `main`\nafter the merge; the card says Live by itself. Never merge the pull request yourself. If an\nattach fails, quote the toolkit's message as it is: it names the directory's status and its\nown words, or the connection error and whether this machine's proxy was used. Never guess at\nthe cause. Only when it says the network proxy refused homie.rocks, pass on the setting it\nnames; then go on, since the build works with its local feed. On Linux without a GPU,\n`check` measures seats, rooms and rounds; its frame rate is SwiftShader's, not a person's:\nsay so rather than calling the game slow.\n\n```sh\nnpm run build                                          # fix every error it names (a game that does not build fails it)\nnpx --no-install homie-studio build --types            # the same, with the TypeScript checked first: run it before a deploy\nnpm run dev                                            # in the background: http:\u002F\u002F127.0.0.1:8787\u002F\u003Cid>\u002Fplay\nnpx --no-install homie-studio check \u003Cid> --url http:\u002F\u002F127.0.0.1:8787 --shots .\u002F.checks\n# With no --url the check runs against this studio's own build (its running dev server, or one it starts and\n# stops); with no \u003Cid>, on the games this checkout changed. The live site only with --live or its address.\nnpx --no-install homie-studio shoot \u003Cid> --preview     # pictures of the built game on a stepped clock, no site needed (a 3D game where there is no GPU)\nnpx --no-install homie-studio preview \u003Cid>             # only that game's built files at an address (alone, offline): for a capture script\n```\n\n`npx --no-install homie-studio dev --timestamps` puts a time on every line the site prints (room\nsockets and errors always have one): use it to lay a connection loss beside a check's report.\n`shoot \u003Cid> --url http:\u002F\u002F127.0.0.1:8787` adds a two-client seat smoke check in a private room.\nWhere there is no terminal, the same commands go through the `studio_run` tool, by their words.\n\n`check` passes only when two fresh browsers (a computer and a phone) press Play, land\nin the same room, and both see a round finish with both of them in the results. Look\nat the screenshots it saves. Never say a game works without a passing `check`.\nStart `npm run dev` as a background task your app keeps alive (Claude Code: the Bash\ntool's `run_in_background`), and when you are done with it: stop it with `npx --no-install homie-studio dev --stop`, which stops exactly this studio's dev server (and its Wrangler) and nothing else. Never `pkill`, `killall` or `lsof ... | xargs kill` by name or port: other projects on this machine may run their own `wrangler dev`, and a pattern stops theirs too.\nBefore giving a live preview link, fetch it and confirm its server will outlive the\ntask. A terminal session may end with a headless agent. If you stopped the server\nor cannot keep it alive, say the game is built and give `npm run dev` and the local\npath; do not describe a stopped preview as running.\nIn a headless authoring task, always include the start command and game path in\nthe handoff: a successful curl proves the link works now, not after the agent exits.\n\nThen make it good, not just working:\n\n- **Sound**: the `sound` skill makes the game's effects and a synthesized theme for free and wires\n  them in (`sound.play('coin')` where it happens, in every browser). A silent game is not finished.\n- **Look**: first the decisions (the `style` skill: render style, palette, light, camera, fonts, budgets; automatic\n  from the person's words, drawn in the codex), then the models (the `models` skill: the engine and the free CC0\n  starter library first, the person's own files with their licence, generated props and characters only on their own\n  fal account under a budget), the characters' rigs and clips (the `animate` skill), then the `art` skill's cover from a real frame and, with a budget, painted backdrops and\n  textures. \"Make the look better\" goes through `style` and `models` before any painting.\n- **Match the brief's tone**: a cozy, calm or gentle brief is not a fight. Score together (in `gem-rush-3d`,\n  game.json `\"scoring\": \"together\"`: one total the room fills, no places), make contact gentle or none, and give the\n  bots friendly names; keep rivals, rankings and knocks for briefs that ask for competition.\n- **A place, not a board**: a 3D game's play area reads as somewhere. Give it a heart the theme names (a den, a\n  campfire, a well, a market stall) built in the game's style, a few solid features players move round, and\n  something to do within a few steps of any spot, so a phone's close view is never bare ground. Look at the computer\n  and phone frames before you call it done.\n- **Models in code**: a three.js game loads every model through `@homie-rocks\u002Fstudio\u002Fassets` (`createModels()`,\n  `instance(url)`, `placeholder(size)`): it refuses unsafe or oversized files and decodes the phone-sized format\n  `assets add` writes. Its development warnings use a small prop's budget (1,500 triangles, 300 KB a model); a game\n  whose models are bigger on purpose sets its own once in game.json, `\"assets\": { \"budgets\": { \"triangles\": 8000,\n  \"bytes\": 1500000 } }`, instead of living with a warning per model. Code a round does not need at once\n  (a later level, an editor) can load later: `await import('.\u002Flevel-2')` becomes a file of its own in the build. Read colours and fonts from the game's `style.json` instead of hard-coding them, so the\n  locked palette reaches the world and the HUD. `games\u002F\u003Cid>\u002Fassets\u002Fmanifest.json` records every model's origin and\n  licence; keep it true (`assets add` and `assets remove`, never a hand-copied .glb), and `assets check \u003Cid>`\n  before a deploy. The `gem-rush-3d` starter (`game new \u003Cid> --from gem-rush-3d`) is Gem Rush in 3D with library\n  models: start a 3D game from it. With characters that move (people, heroes, fighters, creatures), start from\n  `hero-rush-3d` instead: animated CC0 heroes through `@homie-rocks\u002Fstudio\u002Fanimate` (idle, walk, run, jump, a swing,\n  hits, a cheer), one shared clip library per skeleton, a jump and a swing tuned in the Game Lab. The `animate` skill\n  has rigs, clips, retargeting and feel.\n- **Playtest**: the `playtest` skill plays it on a computer and a phone held both ways, measures the\n  first ten seconds, the look, the UI, the real sound and a round, and runs the owner tests.\n  Read the pictures and save an honest local verdict; use a fresh outside reviewer when requested.\n  Fix the most important finding and repeat the affected checks.\n- **Speed**: when it stutters, loads slowly or a phone struggles, the `perf` skill measures it (frame\n  times, CPU per frame on player browsers, time to playable, downloads, memory, netplay; server\n  tick work is a separate measurement) and\n  keeps a change only when it is faster beyond the noise and two browsers still finish a round.\n- **Feel**: when a move feels floaty, stiff, weak or unclear (\"the jump\", \"the hit\", \"the drift\"), the `lab` skill\n  builds a Game Lab for it: one take in the new build beside the last commit, frame by frame, with named phases,\n  graphs and sliders that write kept values into the game's `tunables.json`.\n\nThen give it its landing (below) and a working local result. Publish with `npm run\ndeploy` and `studio_publish` (see `publish`) when publishing is in the owner's\nrequested scope, then check again on the live site. A build-only request needs no\nCloudflare setup or release question. Honor a local-only or no-deploy instruction.\n\n## Its landing page: `\u002F\u003Cid>\u002F`\n\nEvery game gets a landing page from the studio template, made from the game's own files\n(`node_modules\u002F@homie-rocks\u002Fstudio\u002Fsite\u002FSITE.md` has every field): a full-bleed hero, the pitch, a big\nPlay button that drops a visitor into a public room, how to play on a phone, a computer and a TV (with\nthe join code), the live rooms, how to play and credits. It is as good as what you give it. \"Make the landing\npage epic\" means all of this, in this order:\n\n1. **Footage in the hero.** The biggest single difference. Capture the game running with the `video`\n   skill (`capture \u003Cslug> --game \u003Cid> --url http:\u002F\u002F127.0.0.1:8787 --seconds 30`), pick 8 to 12 s where a\n   lot happens, and cut two silent loops into `games\u002F\u003Cid>\u002Fhero\u002F`: `wide.mp4` (16:9) and `tall.mp4`\n   (9:16, the phone's). Under 3 MB each, so a phone starts it at once:\n\n   ```sh\n   C=videos\u002F\u003Cslug>\u002Fwork\u002Fcapture\u002Fcapture.mp4\n   ffmpeg -y -ss \u003Cstart> -t 10 -i $C -an -vf \"scale=1600:-2,fps=30\" -c:v libx264 -crf 27 -preset slow -pix_fmt yuv420p -movflags +faststart games\u002F\u003Cid>\u002Fhero\u002Fwide.mp4\n   ffmpeg -y -ss \u003Cstart> -t 10 -i $C -an -vf \"crop=ih*9\u002F16:ih,scale=720:-2,fps=30\" -c:v libx264 -crf 27 -preset slow -pix_fmt yuv420p -movflags +faststart games\u002F\u003Cid>\u002Fhero\u002Ftall.mp4\n   ffmpeg -y -ss \u003Cstart+2> -i $C -frames:v 1 -q:v 3 games\u002F\u003Cid>\u002Fhero\u002Fwide.jpg\n   ```\n\n   Look at them (`ffprobe`, and a frame or two): the game, not a menu, a QR code or a black frame. A\n   finished trailer in `videos\u002F` with `\"for\": { \"game\": \"\u003Cid>\" }` is used when there is no `hero\u002F`.\n   No footage at all: the cover (the `art` skill's `cover`, from a real frame) moves slowly instead.\n2. **The words**, in game.json's `landing` block: `pitch` (one line a stranger gets at once), `about`\n   (a short paragraph), `howToPlay` (three to five short lines), `controls` for `phone`, `computer`\n   (and `tv` if it differs), `players` (what a player is called: `{ \"one\": \"pilot\", \"many\": \"pilots\" }`),\n   `hero.alt` (what the footage shows, for a screen reader), `hero.focus` (`\"50% 35%\"` keeps the action\n   in frame on a phone), `hero.tint` (0 to 80: more when the art is bright and the title hard to read).\n   A game with a `style.json` gets its landing in that palette by itself (its paper, ink and accents,\n   light or dark as its paper is), so a bright game is not shown on the studio's dark page; leave\n   `scheme` and `theme` out unless the person wants something else. A game without one whose picture is\n   white or cream (a light arena) takes `\"scheme\": \"light\"`: its landing is drawn light, where the studio's\n   dark tint would turn the picture grey. `hero\u002Fwide.jpg` is also the game's picture on every card and in\n   the directory, and the play page's arrival card while the game loads, so pick a frame that reads small.\n   game.json `\"genre\"` (a word, or up to three: `[\"Racing\", \"Party\"]`) and pictures of real play in\n   `games\u002F\u003Cid>\u002Fscreenshots\u002F` (at most eight) go on the landing and into its structured data for search\n   engines; say what the game is, never invent a rating or a review.\n3. **Credits**: `landing.credits` names who made what (`[{ \"role\": \"Music\", \"name\": \"...\" }]`). A port\n   keeps its `credits.json` (the original, its author and licence, every part inside); a game that has\n   game.json `remixOf` keeps it; never drop either.\n4. **The look**: the studio's `site\u002Ftheme.json` colours; `landing.theme` gives this game its own\n   `accent` and `glow` on its page, when two games of one studio should not look alike.\n5. **A band of its own**, when the game has something to say that the template does not (a soundtrack, a\n   mode, a season): `site\u002Fpartials\u002Fgame-\u003Cid>.html`, a short section in the page's own classes\n   (`\u003Cp class=\"kicker\">`, `\u003Ch2>`, `\u003Cp class=\"lead\">`, `\u003Ca class=\"ghost\">`).\n\n**The play page's first seconds**: from the first paint it shows the game's arrival card (its title, pitch,\nhero still, a progress line and `landing.controls` for the device) until the game says it is playable, never a\nblank screen (`SITE.md`, \"The play page\"). Its words and picture are the landing's, so give the landing its\n`pitch`, `controls` and a hero still. A game that keeps loading after the room's first state (models,\ntextures, a baked world) passes `arrival: 'game'` to `openRoom`, calls `net.loading(p, 'the heroes')`\nwhile it loads and `net.playable()` once its world and the player's own body are drawn, so nobody sees\nstand-ins (NETPLAY.md section 21); the starters do. `perf` measures it: `load.look` (the first meaningful\nframe), `load.playable` (control-ready: seated, a body, the card gone) and `load.ready` (the game's own\n`net.playable()`), with the arrival mode beside them. `check` says seated, ready (the card lifted) and connected\napart: a seat is not ready, and a finished round is not an uninterrupted one.\n\n**The play page's room button** (Invite, Big screen, the room code) sits top right, with the Chat pill\nbeside it. If the game draws a score, a timer or a bar there, move them in game.json: `\"screen\": { \"share\":\n{ \"desk\": \"bottom-left\", \"phone\": { \"at\": \"top-left\", \"y\": 56 } } }` (a corner or `top-center`, per device:\n`desk`, `phone`, `sideways`; `x` \u002F `y` move it in, in pixels; `\"label\": false` keeps both small icons). Room\nchat's strip of new lines moves with `\"screen\": { \"chat\": … }` (above). Look at `\u002F\u003Cid>\u002Fplay` on a computer and\na phone, both ways up, while a round is on and somebody says something in chat.\n\nThen `npm run build`, `npm run dev`, and look at `http:\u002F\u002F127.0.0.1:8787\u002F\u003Cid>\u002F` as a stranger would:\na computer (1440 wide) and a phone (390 wide, and turned sideways), from the top, scrolling to the end.\nThe `playtest` skill takes the screenshots. The hero reads at a glance, Play is above the fold on a phone,\nnothing is cut off or runs off the side. Fix what you see; build again.\n\nA whole landing of the studio's own (`site\u002Fpages\u002F\u003Cid>\u002Findex.html`) replaces the generated one: only when\nthe person asks for a hand-made page, and start from the generated one's HTML so Play, the TV road and\n\"Made with Homie\" stay.\n\n## Physics\n\nFor movement against a static GLB's triangles, use the opt-in physics bridge in\n[RULES.md](RULES.md#physics). Install `@homie-rocks\u002Fphysics` 0.1.2, set\n`map\u002Fmain.json`'s `physics.level` to the game's GLB, and call\n`ctx.physics.sweep(body, delta, radius, height)` inside the game's movement.\n`ctx.substeps(body, 300, step => { ... })` shares its existing handler budget and\npredicts the same baked world in the browser. The full example, cost table and\nsave contract are in that section. Prefer kernel collision for its primitive\nmaps; use physics for arbitrary static triangle levels. Initialization is awaited\nbefore the first room tick, calls in handlers are synchronous, and the complete\nphysics snapshot is saved with the room. No opt-in means no physics load or cost.\n\n### Input under loss\n\nRules games inherit redundant sequenced input, late movement replay and applied-tick\nreceipts. Do not add a game-side resend loop or interpret negative held values as\nlate-release repayment. Use `f.held()` for duration, sampled fields for latest\nstate and `f.pulse()` for ordered actions. Choose `player.pulses: 'hold'` when a\nknock should buffer an action; the default drops it. See RULES.md, “Input during\nloss and stalls”, for timestamps, replay boundaries and visual correction settings.\n","For a game with its own fixed integration rate, use the opt-in\n`ctx.substeps(body, hz, step)` facility in `RULES.md` (Integrating at the game's\nown rate). Its callbacks share the tick budget and its recorded poses drive\nlocal drawing. Keep the game's input-transition policy explicit.\n\nRead the installed toolkit's `node_modules\u002F@homie-rocks\u002Fstudio\u002Fguides\u002Fgame\u002F{RULES,REWRITE}.md`\nbefore authoring: these match its runtime even when this plugin is older. Toolkit\ncheck\u002Fbuild report stale installed plugin copies and the update step. For solid slopes and terrain, use heightTiles with `base` and the source\n`diagonal`; test sides, underside, step clearance and rays. Maps are indexed at\ncompile time up to 100,000 shapes; measure default-budget spawn and traversal. For live\ncover, doors and platforms, use declared entity `collider` state and movement's\n`ctx.world.sweep\u002Fsupport\u002Foverlaps`; test prediction, loss, rejoin and restore.\n\n\n**Apps:** For a business, venue, cause or customer app, follow the `app` skill: `apps\u002F\u003Cid>\u002Fapp.json`, one morphing screen, roles and parts. Reuse these engines and workflows; do not impose game rounds, scores, bots, a game demo or page navigation. The app check proves shared actions and reconnect; app stores use the same standalone command.\n\n\n# Make a game\n\nFor place-based builds, read [the six-build patterns](..\u002Fapp\u002FPLACES.md): owner words to needs, records as objects, a local scene and ambience, one trusted operation for screens and AI, graceful graphics, and adversarial proof. Apply the same authority and honest-evidence rules to game economies and tickets.\n\n\nYou are in a Homie studio when the folder (or one above it) has `studio.json`. If there\nis none, use the `studio-setup` skill first.\n\n**Asked to rewrite an existing browser-hosted game for the server? Read\n[REWRITE.md](REWRITE.md) in full before editing.** Preserve the renderer, feel,\nother games and every existing test file, including its import paths. If an old\n`rules.ts` exports tested helpers, keep those exports when adding defineRules;\ndo not redirect the tests to a new helper file. Run the original test command.\n\nFor a request involving a larger room or map, read RULES.md's **Spatial delivery**\nsection. `players.max` chooses the room size and Gate layout. Choose `room.view.radiusM`\nfor the playable neighbourhood, and visual precision and far update rates to fit\nthe game. Local measurements are in docs\u002Frooms-milestone-2-notes.md; they are not\nCloudflare or physical-phone capacity guarantees.\n\n## Start it\n\n- **Look for pieces before writing them.** Games build on each other by sharing parts: a creature from one game,\n  a level from another, a bot brain from a third. For each system the game needs (camera, movement, bots, pickups,\n  effects, sound, UI, environment), before writing it from scratch:\n  - check the `@homie-rocks\u002F*` packages (npm) for the general mechanism: camera, input, audio, effects;\n  - run `parts_find` for pieces other studios shared, and bring one in with `part_add`.\n\n  Search by system (touch controls, feedback, sound, scoring, title and results UI, rooms), not only by genre. Add a fitting result with `part_add` before implementing a replacement; import and use it in the game. A starter or npm package is not a catalog search. Record part version, source game\u002Fstudio, licence and integration in CODEX **Built from**, or the search and concrete gap if nothing fits. In a hosted workspace these same tools work; after `part_add`, wait for the committed preview through `build_progress`.\n\n  Record both in the game's CODEX (Built from) and its credits: what came from where, and what you wrote here and\n  why. After building a piece another game could use, offer to make it a part (`part_new`) and, only if the person\n  asks, to share it (`part_share`). The `parts` skill has the method.\n- **A new studio's first game:** follow `studio-setup`, choose sensible defaults from the request,\n  write the plan and build it. The live demo is optional; never require a detour or an interview.\n- **A game with a Game Codex** (`games\u002F\u003Cid>\u002FCODEX.md`): read it first; it is the plan. Every decision that\n  changes it goes into it in the same change, with a dated line under Latest, and the page is redrawn\n  (`npx --no-install homie-studio codex \u003Cid>`). A big change to a game without one: plan it first.\n- **Other studios** beside this one (a neighbouring folder with its own `studio.json`) are other people's\n  work: never read their games or copy from them, not even as a model for this one, unless the person asks.\n  What you may read is this studio and the toolkit in its `node_modules\u002F@homie-rocks\u002Fstudio\u002F`.\n- **New game:** call the Homie MCP tool `game_make` (id, name) for the exact command\n  and rules (without the connector, go on: the command is here and the rules are this skill's), then run\n  `npx --no-install homie-studio game new \u003Cid> --from gem-rush --name \"\u003CName>\"`\n  (`--from block-drop` for a falling-block puzzle; `--from gem-rush-3d` for a 3D game: three.js with free library models; `--from hero-rush-3d` for a 3D game with\n  animated characters that run, jump and swing). The id becomes the game's\n  address (`\u002F\u003Cid>\u002F`); lowercase, digits, hyphens.\n- **Make an existing single-player web game multiplayer:** use the `port` skill (it\n  grades the port, brings the game in, and proves it with the owner tests).\n- **Build on another studio's game:** through parts, never the whole game (remix was\n  retired; `game remix` answers with a sentence that says so). `parts_find` searches the pieces\n  other studios shared (a creature, a level, a bot brain) and `part_add` brings one in with its\n  licence and credit: the `parts` skill has the method. When someone asks to copy or remix a\n  whole game, say that plainly and offer to make a game of their own like it, with parts where\n  some fit.\n- **A game's own licence** is game.json `\"license\"`: an SPDX identifier (`\"MIT\"`), said on its\n  page; a game that names none says nothing. A game.json with `\"remixOf\"` was made from another\n  studio's game: keep the key, whatever else changes (its landing says \"Based on \u003Cgame> by\n  \u003Cstudio>\").\n\n## Write and change rules plus view\n\nFor wrapping worlds or generated levels, use the map's opt-in `wrap` and room-scoped\n`world.map.replace` APIs described in RULES.md's **Wrapped worlds and generated levels**.\nPrefer one indexed map revision for a generated maze; keep independently moving\ndoors and platforms as live colliders. Generation and navigation baking spend the\nroom handler's budget.\n\n**Read [RULES.md](RULES.md) before writing code.** All starters use this contract.\nWork in few, large edits: read each source file once, decide its changes, then\nmake every change it needs in ONE file_edit with an edits list. Build after each\ncoherent change across rules, movement and view. When a diagnostic names a file and line, read that exact location and repair the expression it names before unrelated cleanup. Rebuild to verify that error is gone. `room.me.seat` identifies a player; there is no `room.me.slot`. Prefer targeted edits for repairs. A write replaces the whole file: never send only its tail or resume a truncated file with a replacement containing the remaining lines.\n\nNew games use `game.json` `\"entry\": \"src\u002Fview.ts\"`, `\"room\": { \"host\": \"server\" }`,\nand a studio-chosen `players.max`. HTML loads `\u003Cscript type=\"module\"\nsrc=\".\u002Fassets\u002Fmain.js\">\u003C\u002Fscript>`, not the source-file URL. Choose seats, tick rate (20 by default), dimensions and\nstarter yourself from the request; never ask the person an engineering question.\n`block-drop` is the falling-block\u002Fboard-game reference: separate stationary wells, seven-piece bags, rotation, line clears, real keyboard and touch controls. Use it for Tetris-like requests and retain its working mechanic while changing the requested look or features. `coin-dash` is the smallest movement reference; `gem-rush` adds bumps; `ember-vale` adds\ncompanions, decisions and character saves; the two 3D starters add models and jumps.\nA starter is a starting point: implement the requested mechanic, not a renamed gem collector.\nThe build refuses a game with neither rules plus view nor a browser-hosted netplay contract;\na plain browser bundle is not a multiplayer game.\n\n- **Truth: `src\u002Frules.ts`.** Default-export `defineRules({ contract: 2, ... })`.\n  Declare every lasting value in entity `fields`, movement `motion`, or room `shared`,\n  and payloads in `shapes`. An entity handler changes only `self`; room handlers alone\n  change shared state. Affect others with declared events, delivered on a later tick.\n  Validate commands against current turn, cooldown, distance and ownership in rules.\n  IDs are opaque `f.ref()` strings; compare them, never parse or sort them as numbers.\n- **Movement: `src\u002Fmove.ts`.** Export `move = defineMove(...)`, import it in rules.\n  The server and local prediction run the same step. Read only body pose\u002Fmotion,\n  input, public tune, map plus declared live colliders and `ctx` clock\u002Fmath. Sweep against the world, normalize\n  diagonals, and declare the normal running `maxSpeed`. Put jumps, dashes and knocks\n  here, with rule decisions encoded in `motion`. Do not add `body.move: 'owner'`:\n  authoritative movement already predicts immediately and keeps the wall solid.\n- **View: `src\u002Fview.ts`.** `import type rules from '.\u002Frules'` and\n  `openRoom\u003Ctypeof rules>()`; send `room.input` and `room.command`, draw `room.me`,\n  `room.each`, `room.shared`, `room.round` and `room.roster`. Handle a null own body.\n  Camera, models, DOM, audio and particles stay here. The local pose is predicted;\n  other poses are interpolated. A button or swing can animate on press, but damage,\n  pickups and scores wait for the server. No second physics loop or local score authority.\n- **Determinism and budget.** Use `world.tick`, `world.dt`, `world.ticks`, `world.after`,\n  `world.random` and `world.math` (movement: `ctx`). No clocks, timers, async, network,\n  `Math.random`, transcendental `Math` functions, `**`, changing module state or\n  load-time computation in rules. Bounded local queries, bounded collections and\n  declared fields keep work under the deterministic budget. Read all build messages\n  and repair the named handler; never evade the guard or raise budgets to hide a bug.\n- **Levels:** declare `map: '.\u002Fmap'` and put bounds, solids and named spots in\n  `map\u002Fmain.json`. Draw from the same map. In 3D rules use metres, z up and feet\n  positions; Three.js draws `(x,z,y)`. Height tiles are terrain; boxes are solid\n  platforms. Decorative hills or meshes do not collide unless represented in the map.\n- **Rounds and arrivals:** use automatic rounds or `rounds.seconds: 0` plus a room\n  handler that calls `world.round.end()` for turn games. Never give a quiz or word\n  game fake movement just to satisfy a test. Initialize late arrivals in `on.arrive`\n  as well as existing bodies in `onRoom.roundStart`. `think` returns inputs, not commands;\n  bot actions go through the same rules as a person's. Show the actual goal and result.\n- **Companions:** `guide.view` returns declared `shapes.view`; `guide.floor` chooses\n  a vocabulary goal without a model; `think` follows `self.goal` and calls\n  `world.goalDone`. Write `agents.json` goals, lines and asks in the game's voice.\n  Draw `room.askButtons(id)` and call `room.ask`. Server policies reserve companion\n  seats; input never grants a role. Use `world.level`, `world.guideLevel`,\n  `world.guideSeats` and `world.kids`. Preserve visible AI labels.\n- **Game decisions:** declare `asks` with state, questions and a synchronous floor;\n  call `world.ask` per beat or turn and handle `on.answer` once (`ai`, `local`, or\n  `floor`). No promise\u002Fawait or `net.decide` in rules. The floor must play well alone.\n- **Hosting and saving:** server hosting is the default. Browser hosting is for\n  offline play, local experiments or private friends games, using the same rules;\n  it is not a fix for a failed build. Room state saves automatically and restores\n  as a whole, but the room ends 60 seconds after its last person leaves. Character\n  progress uses the separate saves API below. No secrets in entity\u002Fshared state:\n  every replica receives it. A prop disguise is a visual mechanic, not secure hidden\n  information. Private per-seat information and bigger rooms belong to milestone 2.\n- **Changing a rules game:** read its codex, declarations, move and view; change the\n  responsible half, preserve unrelated play, and rebuild. The build\u002Fstate hashes\n  manage compatibility automatically; do not hand-pack snapshots or bump netplay.version.\n  Recheck the changed mechanic, a late join and a reload in two browsers.\n- **Changing an old-style game:** existing netplay games keep working on 0.45.0\n  with their original 32-seat limit. Preserve their behavior on ordinary edits.\n  For a server migration or larger room, follow [REWRITE.md](REWRITE.md).\n  New games use rules plus view; there is no automatic converter yet.\n- Phones get touch, computers get keys; typed names and chat are text only.\n  Keep native DOM buttons outside `guardGestures`' touch-drag selector; otherwise bind\n  touch pointers explicitly. Verify actual touchscreen taps, not only `.click()`.\n  Keep controls clear of the shell's pills (`room.net.shell`). Watchers use\n  `room.net.viewSeat` for their camera and HUD, and `room.net.spotlight` for action.\n  `watch: 'overview'` or `false` changes the offered UI, not secrecy of snapshots.\n\nMake it the requested game, one milestone at a time. Read each file, make coherent\nedits, build, act on the diagnostics and test the actual play before declaring it done.\n\n- **Room chat and speech bubbles** (NETPLAY.md section 19; `chat\u002FCHAT.md`). Every game has room chat on its\n  play page with no code: reactions that float up every screen, quick lines, and typing where the rules allow.\n  Give it the game's own voice in `game.json` `\"chat\"`: `\"lines\"` (up to 12 quick lines, short and kind:\n  `{ \"gg\": \"Good game!\", \"gem\": \"Grab that gem!\" }`), up to 3 extra `\"emoji\"` (`{ \"gem\": \"?\" }`), and the\n  defaults that suit its players (`\"mode\": \"lines\"` for a game for children; the owner can change any of it).\n  Draw what players say over their characters with the port kit, after the name labels:\n\n  ```ts\n  const bubbles = createBubbles({ measure: (t) => { ctx.font = BUBBLE_FONT; return ctx.measureText(t).width; } });\n  net.on('say', (s) => bubbles.say(s.seat, s.text, { id: s.id, kind: s.kind }));\n  net.on('unchat', (e) => e.ids.forEach((id) => bubbles.remove(id)));\n  paintBubbles(ctx, bubbles.place(speakers.map((p) => ({ key: p.seat, x: p.labelX, y: p.labelTop, self: p.mine }))));\n  ```\n  A game's own chat keys (a quick-line wheel): `net.sayLine('gg')`, `net.react('fire')`. Never draw a name or a\n  message as markup. **Where chat sits:** the Chat pill rides the room button's band (`screen.share` below; a\n  round icon on a phone), and the strip of new lines shows for a moment at the bottom left. If the game's HUD or\n  controls are there, put the strip where it has room in `game.json` `\"screen\": { \"chat\": { \"at\": \"top-right\",\n  \"y\": 110 } }` (a corner, `top-center` or `bottom-center`; `x` \u002F `y` in pixels; per device: `desk`, `phone`,\n  `sideways`, `tv`), or keep new lines in the Chat sheet with `\"lines\": \"sheet-only\"` (the pill counts them).\n  Never turn typing off to make room: place the strip instead (`chat\u002FCHAT.md` has every field).\n- Update `game.json` `name` and `blurb`, and the `\u003Ctitle>`.\n\n## Lasting worlds and account characters\n\nFor a world that should still exist tomorrow, set game.json:\n\n```json\n{\"room\":{\"host\":\"server\",\"lifetime\":\"persistent\",\"characters\":true}}\n```\n\nLasting worlds default to `offline: false`: wait for the durable server. A studio\nmay explicitly set `offline: true` for separate local practice, whose progress\nis not saved to the world or account. Never count that as proof of persistence.\n\n`characters` is optional: `lifetime` alone keeps the world. Account characters\nrequire the existing studio sign-in\u002Fpasskey. Play redirects to the account page\nwhen needed. In `room.join(ctx, player)`, return\n`player.character ?? { kind: 'runner', at: spawn }`. Keep inventory in that player\nkind's declared fields and change it only in rules. The runtime returns its kind,\nposition, heading, fields and motion to the account when it leaves. Use\n`player: true` or `leave: 'despawn'`; a returned character cannot also become a bot.\nDo not reset inventory in `arrive`, round-start handlers or `world.finish`.\n\nThe public world has a stable room name; `?room=\u003Cname>` chooses another world.\nEvery tick commits before publishing its results. An empty world sleeps and\nretains state. A failed write stops play with the last good save intact. Another\nroom waits for the current holder to return the character; no timeout grants a\nstale copy. No database or IDs are set up by hand. Ordinary games keep their\nexisting save frequency and behavior.\n\nWrite idempotent pickups using a saved collectible ID\u002Fset; duplicate commands\nmust not mint again. Events arrive later and can become `undeliverable` when a\nrecipient leaves; do not treat sending one as an atomic inventory transfer.\nTrading and shop-grant consumption need the later economy slice. Browser saves\nremain player-owned and are not an authoritative inventory.\n\nThis first slice saves the whole world every tick, so opted-in games pay for\nmore writes. Compatible deploys still restart\u002Freload and then restore the world.\nA state-schema change is refused on restore with data retained; keep the previous\ncompatible build until migrations ship. Offline play has no account authority.\n\nFor proof, build normally, then sign two players in and test movement, pickup,\nrestart mid-pickup, a compatible rebuild, and a fresh profile signing in as the\nsame player. Verify actual inventory and world state. A lasting world need not\nfinish a round: its browser proof replaces the match check's round requirement.\n\n## Progress that lasts: cloud saves\n\nWhen the plan says progress persists across sessions or devices (the codex's \"Progress that lasts\", or the person\nasks for a character, levels, unlocks, a collection, hardcore), wire in saves. For player-owned browser progress use the existing saves API below. For a server-authoritative\nworld or inventory, use Lasting worlds above. Ordinary match rooms expire after their last player leaves.\n\n- `game.json`: `\"saves\": true`. A new game of that kind can start from the starter:\n  `npx --no-install homie-studio game new \u003Cid> --from ember-vale --name \"\u003CName>\"` (a hero that lasts, lifetime\n  stats, a hardcore mode with a hall of the fallen, on the same rooms as any game).\n- In the game: `import { createSaves } from '@homie-rocks\u002Fstudio\u002Fsaves'`; `const saves = createSaves({ game: '\u003Cid>' })`.\n  Load on arrival (`await saves.get('hero')`), save when it changes (`saves.set('hero', hero)`, at most about once a\n  second), and reload on `saves.on('player', ...)` (the player signed in on this device). Keep one character in ONE\n  key. Lifetime numbers: `saves.stats.add({ kills: 1 })`. Hardcore: `saves.fall({ character, summary, wipe: true })`.\n- Rules emit declared effects; the view checks the effect's entity ID against `room.me?.id` before\n  changing its own character save. These browser-written saves are player-owned progress, not a\n  server-verified economy or authority for purchases. Room durability is separate and automatic.\n- A character's name is the save's, not the room's: the room knows a person by their account's name or a two-word\n  handle. Draw the character's name over its body and in the ranking (a declared command requests it; rules validate and keep it in the player entity), except on a kids server, where the others stay handles. Ember Vale does it.\n- Show who is playing (`saves.player.name`, guest or signed in) and a small \"Keep my progress\" button that calls\n  `saves.signIn()`; the play page shows its passkey sheet. Pressing Play never needs an account.\n- A guest who signs in to an account that already has the same key: say how the two combine, once, in\n  `site\u002Fsrc\u002Fworker.mjs`: `mergeSaves({ '\u003Cid>': { saves: { coins: 'sum', 'best-level': 'larger', settings: 'newer' },\n  stats: { kills: 'sum' } } })` from `@homie-rocks\u002Fstudio\u002Fworker` (or a function for an inventory). Server records\n  are joined without a rule; any other key with no rule reaches the game's `onConflict` (SAVES.md, \"When a guest\n  signs in to their account\").\n- Prove it: build, `npm run dev`, open `http:\u002F\u002Flocalhost:8787\u002F\u003Cid>\u002Fplay` (passkeys need `localhost`, not\n  `127.0.0.1`), play, reload: the progress is still there. The whole guide is\n  `node_modules\u002F@homie-rocks\u002Fstudio\u002Fsaves\u002FSAVES.md` (the limits, offline and conflicts, what is stored, privacy).\n\n## Prove it\n\nOpen a progress feed for every build, titled with what it does (the codex's milestone); the codex\npage's Build status tab and Claude Code's status line follow it by themselves (in Codex and Grok Build\nthe codex page is the view: `npx --no-install homie-studio codex \u003Cid> --open`). When the person is\nfollowing along in the Claude app (or anywhere they cannot see your terminal), share it and show it:\n\n```sh\nnpx --no-install homie-studio progress start \u003Cid> --share --title \"\u003Cwhat this build does>\" [--budget \u003Cdollars>]\nnpx --no-install homie-studio progress stage plan done --note \"\u003Cthe plan in one line>\"\n```\n\nIt prints a build id: call the Homie MCP tool `build_progress` with it once, and where the app\ndraws cards (the Claude app) the card follows the build by itself (stages, each check going green, a\npreview, spend, Stop). The commands below report into it. If a command answers `stopped`, the person pressed Stop:\nend there and ask before starting again.\n\n**Started from the Claude app** (a Claude Code session whose prompt came from a \"Build it\"\ncard, naming a build `hb_...` and maybe a setup `hs_...`): the chat already opened the build, so\ntake it instead of starting one, then work on a branch and publish as a pull request. The\nprompt names the studio's repository: first check this session is in it\n(`git remote get-url origin`). If it is in another one (`homie-rocks\u002Fhomie` is Homie's\nengine and template, never a studio), stop and say so; never attach from it.\n\n```sh\nnpm install                                            # the studio's pinned toolkit, from registry.npmjs.org\nnpx --no-install homie-studio setup attach hs_...        # only when the prompt names a setup: once, first\nnpx --no-install homie-studio progress attach hb_...     # this session takes the chat's build (once)\nnpx --no-install homie-studio chrome install           # Linux without Chrome: Chrome for Testing, once\n# ... make the game, build, dev, check (below) ...\nnpx --no-install homie-studio progress change \"\u003Cwhat the change does, one line>\"\ngit switch -c \u003Cshort-branch> && git add -A && git commit -m \"\u003Cwhat it does>\" && git push -u origin HEAD\ngh pr create --fill\nnpx --no-install homie-studio progress pr --url \u003Cthe pull request's address>\n```\n\nThe card's Publish button opens the pull request for the person; their merge in GitHub is\nthe approval. Workers Builds deploys the branch as a Preview (run `check --url \u003Cthe Preview\nURL>` when the pull request shows it, and pass it as `progress pr --preview`) and `main`\nafter the merge; the card says Live by itself. Never merge the pull request yourself. If an\nattach fails, quote the toolkit's message as it is: it names the directory's status and its\nown words, or the connection error and whether this machine's proxy was used. Never guess at\nthe cause. Only when it says the network proxy refused homie.rocks, pass on the setting it\nnames; then go on, since the build works with its local feed. On Linux without a GPU,\n`check` measures seats, rooms and rounds; its frame rate is SwiftShader's, not a person's:\nsay so rather than calling the game slow.\n\n```sh\nnpm run build                                          # fix every error it names (a game that does not build fails it)\nnpx --no-install homie-studio build --types            # the same, with the TypeScript checked first: run it before a deploy\nnpm run dev                                            # in the background: http:\u002F\u002F127.0.0.1:8787\u002F\u003Cid>\u002Fplay\nnpx --no-install homie-studio check \u003Cid> --url http:\u002F\u002F127.0.0.1:8787 --shots .\u002F.checks\n# With no --url the check runs against this studio's own build (its running dev server, or one it starts and\n# stops); with no \u003Cid>, on the games this checkout changed. The live site only with --live or its address.\nnpx --no-install homie-studio shoot \u003Cid> --preview     # pictures of the built game on a stepped clock, no site needed (a 3D game where there is no GPU)\nnpx --no-install homie-studio preview \u003Cid>             # only that game's built files at an address (alone, offline): for a capture script\n```\n\n`npx --no-install homie-studio dev --timestamps` puts a time on every line the site prints (room\nsockets and errors always have one): use it to lay a connection loss beside a check's report.\n`shoot \u003Cid> --url http:\u002F\u002F127.0.0.1:8787` adds a two-client seat smoke check in a private room.\nWhere there is no terminal, the same commands go through the `studio_run` tool, by their words.\n\n`check` passes only when two fresh browsers (a computer and a phone) press Play, land\nin the same room, and both see a round finish with both of them in the results. Look\nat the screenshots it saves. Never say a game works without a passing `check`.\nStart `npm run dev` as a background task your app keeps alive (Claude Code: the Bash\ntool's `run_in_background`), and when you are done with it: stop it with `npx --no-install homie-studio dev --stop`, which stops exactly this studio's dev server (and its Wrangler) and nothing else. Never `pkill`, `killall` or `lsof ... | xargs kill` by name or port: other projects on this machine may run their own `wrangler dev`, and a pattern stops theirs too.\nBefore giving a live preview link, fetch it and confirm its server will outlive the\ntask. A terminal session may end with a headless agent. If you stopped the server\nor cannot keep it alive, say the game is built and give `npm run dev` and the local\npath; do not describe a stopped preview as running.\nIn a headless authoring task, always include the start command and game path in\nthe handoff: a successful curl proves the link works now, not after the agent exits.\n\nThen make it good, not just working:\n\n- **Sound**: the `sound` skill makes the game's effects and a synthesized theme for free and wires\n  them in (`sound.play('coin')` where it happens, in every browser). A silent game is not finished.\n- **Look**: first the decisions (the `style` skill: render style, palette, light, camera, fonts, budgets; automatic\n  from the person's words, drawn in the codex), then the models (the `models` skill: the engine and the free CC0\n  starter library first, the person's own files with their licence, generated props and characters only on their own\n  fal account under a budget), the characters' rigs and clips (the `animate` skill), then the `art` skill's cover from a real frame and, with a budget, painted backdrops and\n  textures. \"Make the look better\" goes through `style` and `models` before any painting.\n- **Match the brief's tone**: a cozy, calm or gentle brief is not a fight. Score together (in `gem-rush-3d`,\n  game.json `\"scoring\": \"together\"`: one total the room fills, no places), make contact gentle or none, and give the\n  bots friendly names; keep rivals, rankings and knocks for briefs that ask for competition.\n- **A place, not a board**: a 3D game's play area reads as somewhere. Give it a heart the theme names (a den, a\n  campfire, a well, a market stall) built in the game's style, a few solid features players move round, and\n  something to do within a few steps of any spot, so a phone's close view is never bare ground. Look at the computer\n  and phone frames before you call it done.\n- **Models in code**: a three.js game loads every model through `@homie-rocks\u002Fstudio\u002Fassets` (`createModels()`,\n  `instance(url)`, `placeholder(size)`): it refuses unsafe or oversized files and decodes the phone-sized format\n  `assets add` writes. Its development warnings use a small prop's budget (1,500 triangles, 300 KB a model); a game\n  whose models are bigger on purpose sets its own once in game.json, `\"assets\": { \"budgets\": { \"triangles\": 8000,\n  \"bytes\": 1500000 } }`, instead of living with a warning per model. Code a round does not need at once\n  (a later level, an editor) can load later: `await import('.\u002Flevel-2')` becomes a file of its own in the build. Read colours and fonts from the game's `style.json` instead of hard-coding them, so the\n  locked palette reaches the world and the HUD. `games\u002F\u003Cid>\u002Fassets\u002Fmanifest.json` records every model's origin and\n  licence; keep it true (`assets add` and `assets remove`, never a hand-copied .glb), and `assets check \u003Cid>`\n  before a deploy. The `gem-rush-3d` starter (`game new \u003Cid> --from gem-rush-3d`) is Gem Rush in 3D with library\n  models: start a 3D game from it. With characters that move (people, heroes, fighters, creatures), start from\n  `hero-rush-3d` instead: animated CC0 heroes through `@homie-rocks\u002Fstudio\u002Fanimate` (idle, walk, run, jump, a swing,\n  hits, a cheer), one shared clip library per skeleton, a jump and a swing tuned in the Game Lab. The `animate` skill\n  has rigs, clips, retargeting and feel.\n- **Playtest**: the `playtest` skill plays it on a computer and a phone held both ways, measures the\n  first ten seconds, the look, the UI, the real sound and a round, and runs the owner tests.\n  Read the pictures and save an honest local verdict; use a fresh outside reviewer when requested.\n  Fix the most important finding and repeat the affected checks.\n- **Speed**: when it stutters, loads slowly or a phone struggles, the `perf` skill measures it (frame\n  times, CPU per frame on player browsers, time to playable, downloads, memory, netplay; server\n  tick work is a separate measurement) and\n  keeps a change only when it is faster beyond the noise and two browsers still finish a round.\n- **Feel**: when a move feels floaty, stiff, weak or unclear (\"the jump\", \"the hit\", \"the drift\"), the `lab` skill\n  builds a Game Lab for it: one take in the new build beside the last commit, frame by frame, with named phases,\n  graphs and sliders that write kept values into the game's `tunables.json`.\n\nThen give it its landing (below) and a working local result. Publish with `npm run\ndeploy` and `studio_publish` (see `publish`) when publishing is in the owner's\nrequested scope, then check again on the live site. A build-only request needs no\nCloudflare setup or release question. Honor a local-only or no-deploy instruction.\n\n## Its landing page: `\u002F\u003Cid>\u002F`\n\nEvery game gets a landing page from the studio template, made from the game's own files\n(`node_modules\u002F@homie-rocks\u002Fstudio\u002Fsite\u002FSITE.md` has every field): a full-bleed hero, the pitch, a big\nPlay button that drops a visitor into a public room, how to play on a phone, a computer and a TV (with\nthe join code), the live rooms, how to play and credits. It is as good as what you give it. \"Make the landing\npage epic\" means all of this, in this order:\n\n1. **Footage in the hero.** The biggest single difference. Capture the game running with the `video`\n   skill (`capture \u003Cslug> --game \u003Cid> --url http:\u002F\u002F127.0.0.1:8787 --seconds 30`), pick 8 to 12 s where a\n   lot happens, and cut two silent loops into `games\u002F\u003Cid>\u002Fhero\u002F`: `wide.mp4` (16:9) and `tall.mp4`\n   (9:16, the phone's). Under 3 MB each, so a phone starts it at once:\n\n   ```sh\n   C=videos\u002F\u003Cslug>\u002Fwork\u002Fcapture\u002Fcapture.mp4\n   ffmpeg -y -ss \u003Cstart> -t 10 -i $C -an -vf \"scale=1600:-2,fps=30\" -c:v libx264 -crf 27 -preset slow -pix_fmt yuv420p -movflags +faststart games\u002F\u003Cid>\u002Fhero\u002Fwide.mp4\n   ffmpeg -y -ss \u003Cstart> -t 10 -i $C -an -vf \"crop=ih*9\u002F16:ih,scale=720:-2,fps=30\" -c:v libx264 -crf 27 -preset slow -pix_fmt yuv420p -movflags +faststart games\u002F\u003Cid>\u002Fhero\u002Ftall.mp4\n   ffmpeg -y -ss \u003Cstart+2> -i $C -frames:v 1 -q:v 3 games\u002F\u003Cid>\u002Fhero\u002Fwide.jpg\n   ```\n\n   Look at them (`ffprobe`, and a frame or two): the game, not a menu, a QR code or a black frame. A\n   finished trailer in `videos\u002F` with `\"for\": { \"game\": \"\u003Cid>\" }` is used when there is no `hero\u002F`.\n   No footage at all: the cover (the `art` skill's `cover`, from a real frame) moves slowly instead.\n2. **The words**, in game.json's `landing` block: `pitch` (one line a stranger gets at once), `about`\n   (a short paragraph), `howToPlay` (three to five short lines), `controls` for `phone`, `computer`\n   (and `tv` if it differs), `players` (what a player is called: `{ \"one\": \"pilot\", \"many\": \"pilots\" }`),\n   `hero.alt` (what the footage shows, for a screen reader), `hero.focus` (`\"50% 35%\"` keeps the action\n   in frame on a phone), `hero.tint` (0 to 80: more when the art is bright and the title hard to read).\n   A game with a `style.json` gets its landing in that palette by itself (its paper, ink and accents,\n   light or dark as its paper is), so a bright game is not shown on the studio's dark page; leave\n   `scheme` and `theme` out unless the person wants something else. A game without one whose picture is\n   white or cream (a light arena) takes `\"scheme\": \"light\"`: its landing is drawn light, where the studio's\n   dark tint would turn the picture grey. `hero\u002Fwide.jpg` is also the game's picture on every card and in\n   the directory, and the play page's arrival card while the game loads, so pick a frame that reads small.\n   game.json `\"genre\"` (a word, or up to three: `[\"Racing\", \"Party\"]`) and pictures of real play in\n   `games\u002F\u003Cid>\u002Fscreenshots\u002F` (at most eight) go on the landing and into its structured data for search\n   engines; say what the game is, never invent a rating or a review.\n3. **Credits**: `landing.credits` names who made what (`[{ \"role\": \"Music\", \"name\": \"...\" }]`). A port\n   keeps its `credits.json` (the original, its author and licence, every part inside); a game that has\n   game.json `remixOf` keeps it; never drop either.\n4. **The look**: the studio's `site\u002Ftheme.json` colours; `landing.theme` gives this game its own\n   `accent` and `glow` on its page, when two games of one studio should not look alike.\n5. **A band of its own**, when the game has something to say that the template does not (a soundtrack, a\n   mode, a season): `site\u002Fpartials\u002Fgame-\u003Cid>.html`, a short section in the page's own classes\n   (`\u003Cp class=\"kicker\">`, `\u003Ch2>`, `\u003Cp class=\"lead\">`, `\u003Ca class=\"ghost\">`).\n\n**The play page's first seconds**: from the first paint it shows the game's arrival card (its title, pitch,\nhero still, a progress line and `landing.controls` for the device) until the game says it is playable, never a\nblank screen (`SITE.md`, \"The play page\"). Its words and picture are the landing's, so give the landing its\n`pitch`, `controls` and a hero still. A game that keeps loading after the room's first state (models,\ntextures, a baked world) passes `arrival: 'game'` to `openRoom`, calls `net.loading(p, 'the heroes')`\nwhile it loads and `net.playable()` once its world and the player's own body are drawn, so nobody sees\nstand-ins (NETPLAY.md section 21); the starters do. `perf` measures it: `load.look` (the first meaningful\nframe), `load.playable` (control-ready: seated, a body, the card gone) and `load.ready` (the game's own\n`net.playable()`), with the arrival mode beside them. `check` says seated, ready (the card lifted) and connected\napart: a seat is not ready, and a finished round is not an uninterrupted one.\n\n**The play page's room button** (Invite, Big screen, the room code) sits top right, with the Chat pill\nbeside it. If the game draws a score, a timer or a bar there, move them in game.json: `\"screen\": { \"share\":\n{ \"desk\": \"bottom-left\", \"phone\": { \"at\": \"top-left\", \"y\": 56 } } }` (a corner or `top-center`, per device:\n`desk`, `phone`, `sideways`; `x` \u002F `y` move it in, in pixels; `\"label\": false` keeps both small icons). Room\nchat's strip of new lines moves with `\"screen\": { \"chat\": … }` (above). Look at `\u002F\u003Cid>\u002Fplay` on a computer and\na phone, both ways up, while a round is on and somebody says something in chat.\n\nThen `npm run build`, `npm run dev`, and look at `http:\u002F\u002F127.0.0.1:8787\u002F\u003Cid>\u002F` as a stranger would:\na computer (1440 wide) and a phone (390 wide, and turned sideways), from the top, scrolling to the end.\nThe `playtest` skill takes the screenshots. The hero reads at a glance, Play is above the fold on a phone,\nnothing is cut off or runs off the side. Fix what you see; build again.\n\nA whole landing of the studio's own (`site\u002Fpages\u002F\u003Cid>\u002Findex.html`) replaces the generated one: only when\nthe person asks for a hand-made page, and start from the generated one's HTML so Play, the TV road and\n\"Made with Homie\" stay.\n\n## Physics\n\nFor movement against a static GLB's triangles, use the opt-in physics bridge in\n[RULES.md](RULES.md#physics). Install `@homie-rocks\u002Fphysics` 0.1.2, set\n`map\u002Fmain.json`'s `physics.level` to the game's GLB, and call\n`ctx.physics.sweep(body, delta, radius, height)` inside the game's movement.\n`ctx.substeps(body, 300, step => { ... })` shares its existing handler budget and\npredicts the same baked world in the browser. The full example, cost table and\nsave contract are in that section. Prefer kernel collision for its primitive\nmaps; use physics for arbitrary static triangle levels. Initialization is awaited\nbefore the first room tick, calls in handlers are synchronous, and the complete\nphysics snapshot is saved with the room. No opt-in means no physics load or cost.\n\n### Input under loss\n\nRules games inherit redundant sequenced input, late movement replay and applied-tick\nreceipts. Do not add a game-side resend loop or interpret negative held values as\nlate-release repayment. Use `f.held()` for duration, sampled fields for latest\nstate and `f.pulse()` for ordered actions. Choose `player.pulses: 'hold'` when a\nknock should buffer an action; the default drops it. See RULES.md, “Input during\nloss and stalls”, for timestamps, replay boundaries and visual correction settings.\n",{"name":5,"metadata":46,"description":7,"compatibility":48},{"providers":47},"cloudflare github ollama","Node 22 and Chrome. The studio's pinned Wrangler runs the dev site; the GitHub CLI (gh) opens a pull request when the studio publishes that way; Ollama with clef-flash, optional, answers a game's AI decisions on this computer under dev (downloaded only after the person's yes).","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002Fhomie-rocks\u002Fhomie\u002Fskills\u002Fgame",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill game",{"tool":65,"command":66},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill game",{"tool":68,"command":69},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill game","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fhomie-rocks\u002Fhomie\u002Fskills\u002Fgame\u002FSKILL.md",true,[73,79],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"REWRITE.md","REFERENCE","参考文档",7010,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fhomie-rocks\u002Fhomie\u002Fskills\u002Fgame\u002FREWRITE.md",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"RULES.md",96220,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fhomie-rocks\u002Fhomie\u002Fskills\u002Fgame\u002FRULES.md",[84,94,102,110,118,126],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":93},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":93},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":93},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":114,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":93},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":122,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":93},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":130,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":93},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]