# The three.js starter

Garden, a small low garden you walk through and look around: three.js as a module page. Its zip: [three.zip](https://www.joinplayspace.com/sdk/kit/three.zip)

## The files

- `.claude/skills/playspace/SKILL.md` (4,262 bytes)
- `AGENTS.md` (38,086 bytes)
- `CLAUDE.md` (38,086 bytes)
- `LICENSE` (1,066 bytes)
- `THIRD_PARTY.md` (605 bytes)
- `index.html` (11,672 bytes)
- `playspace.json` (773 bytes)
- `vendor/LICENSE` (1,081 bytes)
- `vendor/three.core.js` (1,474,799 bytes)
- `vendor/three.module.js` (658,900 bytes)

`AGENTS.md` and `CLAUDE.md` are the same file, the kit's guide.

## What `playspace.json` wires

Its `controls` (the control manifest, version 3) tell Playspace which of the starter's own keys each control presses:

- The stick (W A S D or the arrows) "Walk": presses `KeyW`, `KeyS`, `KeyA`, `KeyD`, or `ArrowUp`, `ArrowDown`, `ArrowLeft`, `ArrowRight`
- A (Space) "Plant": presses `Space`
- B (Shift) "Breeze": presses `ShiftLeft`
- The menu pill (Esc) "Help": presses `Escape`
- The pointer: `"look"` (a drag turns the view, through `playspace.camera.onLook`)

## The library

three.js r187, vendored in `vendor/three.module.js` and `vendor/three.core.js`, under the licence in `vendor/LICENSE`. Write for this version's API, not a newer or older one; `THIRD_PARTY.md` names it.

## The engine's recipe

The cookbook's section "2.1 three.js", in [cookbook.md](https://www.joinplayspace.com/sdk/docs/cookbook.md).

## The reading order

1. `AGENTS.md` in the zip, whole (the same file as [AGENTS.md on the site](https://www.joinplayspace.com/sdk/kit/AGENTS.md)).
2. Without the zip only: [start.md](https://www.joinplayspace.com/sdk/docs/start.md), then [controller.md](https://www.joinplayspace.com/sdk/docs/controller.md) (`AGENTS.md` already holds both).
3. `index.html` and `playspace.json`: the starter's code follows the guide.
4. The engine's recipe above, and [autoplay.md](https://www.joinplayspace.com/sdk/docs/autoplay.md) and [analytics.md](https://www.joinplayspace.com/sdk/docs/analytics.md) where the work needs them.
5. [publishing.md](https://www.joinplayspace.com/sdk/docs/publishing.md) when the work is ready; [contract.md](https://www.joinplayspace.com/sdk/docs/contract.md) whenever a name is unclear.
