threedog 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/README.md +4 -4
- package/docs/COMMANDS.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version and how a game upgrades.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 1.0.1 (2026-11-07)
|
|
6
|
+
|
|
7
|
+
- Docs only: the install lines in the package READMEs name 1.0 (0.9 was never on npm).
|
|
8
|
+
|
|
9
|
+
## 1.0.0 (2026-11-07)
|
|
6
10
|
|
|
7
11
|
- A request awaited inside a save load without its `turn` fails with `save-nested` after `engine.loading.timeoutMs` with no sign of life, and the load fails its normal way. It used to wait for good.
|
|
8
12
|
- `detach` is gone from the engine: write `obj.removeFromParent()`. `engine.remove` stays.
|
package/README.md
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
A web 3D game engine on three.js 0.187: **core** (rendering, main loop, input, audio, saving, UI) -> **modules** (terrain, sky and weather, physics, characters, dialogue, inventory, quests... installed on demand); all art is the game's own (`picture/` folder, `assets.js`).
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
|
-
This README describes threedog
|
|
6
|
+
This README describes threedog 1.0 (older releases do not match it; from 0.x read `docs/MIGRATING-1.0.md`, from 0.8.0 `CHANGELOG.md`, from 0.7.0 first `docs/MIGRATING-0.8.md`). To work on the engine itself, clone the [repository](https://github.com/penstic123-code/Threedog.js-Game-Engine), run `npm install`, then `npm run new-game -- my-game`. A game in its own folder:
|
|
7
7
|
```sh
|
|
8
|
-
npm install threedog@
|
|
9
|
-
npm install @threedog/terrain-noise@
|
|
10
|
-
npm install -D vite @threedog/tools@
|
|
8
|
+
npm install threedog@1 three@~0.187.0
|
|
9
|
+
npm install @threedog/terrain-noise@1 # optional: the noise terrain generator terrainPreset() (without one the ground is flat)
|
|
10
|
+
npm install -D vite @threedog/tools@1 # optional: the vite preset and the threedog command line
|
|
11
11
|
```
|
|
12
12
|
Then let it set up the folder: `npx threedog init` (flags: `--open-world` for generated ground, sky, follow camera and a player; the default is a blank scene with a camera and a gray starter picture in `picture/`) writes index.html, main.js, vite.config.js, content/, CLAUDE.md and `.mcp.json` (Claude Code then starts the threedog MCP server by itself), never overwriting a file you have. Finish with `npm install` (for what the new files need) and `npm run dev`.
|
|
13
13
|
`three` is a peer dependency: your game and the engine share one copy. Types for three come with the engine (`@types/three`, same version), so `// @ts-check` JS and TypeScript both see real three.js types.
|
package/docs/COMMANDS.md
CHANGED
|
@@ -36,7 +36,7 @@ export const specs = [{
|
|
|
36
36
|
A test that steers: `frames(n)` and `wait(ms)` follow the machine, so under load the same script takes a different path. Hold the loop with
|
|
37
37
|
`engine.haltLoop('my-test')` and advance game time yourself, `await page.keyboard.down('KeyW'); await ev(() => engine.step(0.25));`: the same steps give the same path on any machine.
|
|
38
38
|
- New game: `npm run new-game -- name [--open-world | --pixel] [--webgl]` (the blank and `--open-world` starts: `recipes/01-new-game.md`; `--pixel` starts a sprite character in a pixel-snapped orthographic view with input, interaction, dialogue and saves wired, gray placeholders, not together with `--open-world`; the game runs on WebGPU and writes shaders in TSL, `--webgl` on WebGL with GLSL).
|
|
39
|
-
- Game in your own folder (outside this repo): after `npm install threedog@
|
|
39
|
+
- Game in your own folder (outside this repo): after `npm install threedog@1 three@~0.187.0 @threedog/tools@1`, run `node node_modules/@threedog/tools/bin/threedog.mjs init [folder] [--open-world] [--webgl]` (folder: the one to create, default the current folder): it copies the new-game template without overwriting anything, merges package.json and writes `.mcp.json`, so Claude Code opened in that folder starts the threedog MCP server by itself.
|
|
40
40
|
|
|
41
41
|
> Git Bash (MSYS) rewrites arguments that start with `/` into a path under the Git install (`/` turns into `C:/Program Files/Git/`). Page arguments (`shot`, `capture`, `--page`) undo that by themselves, through `npm run` too (npm still echoes `> threedog shot C:/...`; shot then prints the page it really opens); if the Git folder cannot be found the error says so: then write `shot styletest`, set `MSYS_NO_PATHCONV=1`, or use PowerShell.
|
|
42
42
|
|
package/package.json
CHANGED