A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
docs(tools): set_play names the answer a caller has to read
esenginef414f9d0c3b8
diff --git a/desktop/shared/toolCatalog.mjs b/desktop/shared/toolCatalog.mjsindex 5e3f6bd88..6731ed241 100644--- a/desktop/shared/toolCatalog.mjs+++ b/desktop/shared/toolCatalog.mjs@@ -576,7 +576,7 @@ const ATOMS = [method: 'createEntity',args: (i) => [i.template, { parent: i.parent ?? null, x: i.x, y: i.y, z: i.z, name: i.name }], root: 'editor' },{ name: 'set_play', effect: 'ephemeral',- description: "Put the game in a NAMED state and get the one it reached: 'playing', 'paused', or 'stopped'. AWAITED — it resolves once the realm is up (or gone), so there is nothing to poll. "+ description: "Put the game in a NAMED state and get the one it reached: 'playing', 'paused', or 'stopped'. AWAITED — it resolves once the realm is up (or gone), and when it gives up waiting the answer carries a `note` saying so: a realm that never came up is one that `play_probe`, `step` and `play_input` then block on. "+ "A named state rather than a toggle because a toggle needs you to know where it started, and called twice it is a no-op that reads as a failure. 'paused' from stopped boots the realm and freezes it, which is the state to set up in before stepping. "+ 'Play runs the game in an isolated realm and never dirties the edit scene. Once in: `step` advances it by exact frames, `play_input` drives it, `find_entities` / `inspect_entity` read it, `screenshot` shows it.',schema: obj({ state: { type: 'string', description: "'playing' | 'paused' | 'stopped'" } }, ['state']),