-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
- Node.js 20+
- npm, pnpm, or yarn
npm create @chemicalluck/sim-game my-game
cd my-game
npm installThis creates a minimal but complete game — a couple of locations, an item, and all the
required content files — wired to @chemicalluck/engine and the sim CLI.
npm run dev-
http://localhost:5173/— the game. -
http://localhost:5173/editor— the Content Editor, a visual tool for editing yourdata/*.json. Changes save straight to disk and hot-reload.
npm run buildProduces a single self-contained dist/index.html — no external assets, no server. Open
it directly or host it anywhere static.
npm run checkScans your content for broken references (an effect pointing at an item id that doesn't exist, a quest referencing a missing location, …) and exits non-zero if any are found — useful in CI. See CLI.
Everything gameplay-related lives in src/game/ (see Project Structure):
-
src/game/data/*.json— your world. Start withlocations.json,items.json,scenes.json. See Authoring Content. -
src/game/extensions/— optional custom features. See Extensions. -
src/main.tsx— swap in your own sidebar or register extra views.
You do not manage a vite.config.ts, a Tailwind config, or the engine build — the
sim CLI owns all of that.
Built with the sim framework · Edit these docs in docs/wiki/ and run docs/sync-wiki.sh.
sim
Building a game
Reference