Pebble3D docs
Pebble3D is a browser 3D game engine: scenes are JSON files validated by a zod schema, rendered with the three.js WebGPU renderer and simulated by Rapier physics compiled from Rust to WebAssembly.
Every page here also exists as plain markdown (add .md to the path, or use the link under each title), and llms.txt indexes them all. llms-full.txt is every page in one file.
Start here
Section titled “Start here”- Getting started: from nothing to a JSON scene in the playground, then a minimal game app.
- AGENTS.md: working rules for coding agents: layout, commands, invariants and the before-you-finish checklist.
Reference
Section titled “Reference”- Scene reference: every scene JSON field with its type, default and meaning.
- API reference:
createGame, theGameobject, state buffers, raycasts and the package exports. - Examples map: where each engine feature is used in the showcase games, by file and line range.
Verify and debug
Section titled “Verify and debug”- Verification:
pnpm shot, determinism hashes, demo bots and fps benches. - Troubleshooting: error messages and symptoms, each with cause and fix.
Cookbook
Section titled “Cookbook”Short recipes, each pointing at a game that uses it: browse the cookbook.