Skip to content

Commit fc236c3

Browse files
authored
Merge pull request #61 from theprototype-app/docs-54-int
Docs: 1.54.3 — Add files…, sleeve pull-out, possess jump, Wander ground, 3D view does not start
2 parents 202ee13 + 8d3d871 commit fc236c3

11 files changed

Lines changed: 109 additions & 10 deletions

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ source venv/bin/activate
2424

2525
pip install -r requirements.txt
2626
mkdocs serve # http://127.0.0.1:8000, live reload
27+
mkdocs build --strict # what CI runs: any warning (a broken link, an image rule) fails it
2728
```
2829

30+
`requirements.txt` pins everything `mkdocs.yml` needs — the Material theme, the git-revision-date and glightbox
31+
plugins (glightbox needs `selectolax`); the hooks in `tools/hooks/` use only PyYAML, which comes with MkDocs — so a
32+
fresh venv builds without extra installs. A plugin or hook that needs a new package adds it there in the same change.
33+
2934
<details>
3035
<summary>Python on Windows</summary>
3136

‎docs/characters-and-motion.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,9 @@ longer than 90° between two keys is split so a full turn spins. `play: false` a
254254
## Limits (motion)
255255
- Blend by Speed and the states graph blend at most the clips they name; their phases are per
256256
device (a walk's step can be a fraction of a cycle apart between two screens).
257-
- Possess (the Player) has no jump of its own: a jump comes from vertical motion (a physics hop,
258-
logic) or the `jump` trigger (Set Animation Parameter, the window's *Fire*).
257+
- Possess (the Player) jumps with <kbd>Space</kbd> or gamepad A since 1.54.3 — a hop to the
258+
[Possess Object](nodes/possessnode.md#driving) node's **Jump height**. Any other jump comes from vertical motion (a
259+
physics hop, logic) or the `jump` trigger (Set Animation Parameter, the window's *Fire*).
259260
- A part clip binds by node name: renaming a part in the model breaks the clip for that part.
260261
- A clip whose share weight in a blend falls under 1 % is skipped (the rest renormalize), so a
261262
settled Move state costs one clip, not three.

‎docs/explorer.md‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,32 @@ Drag files from your computer anywhere onto the Explorer panel:
3636

3737
Items are capped at **25 MB** each. Images and models get generated thumbnails; audio and text show icon cards.
3838

39+
### Add files… and New file
40+
41+
*Since 1.54.3.* Phones and the Quest browser have no drag and drop, so the Explorer also opens your device's own file
42+
picker. **Add files…** is in the right-click menu of the grid background, of a folder, of a mounted
43+
project and of a folder inside one, and an empty folder shows it as a button under *Nothing here yet*. The files you pick
44+
land where the same files dropped there would: in that folder, in a mounted project's unsaved changes until you press
45+
**Save**. The same rules apply as for a drop — the 25 MB cap, a `.tp` added as a folder,
46+
and [the question about files you already have](#importing-files). Where nothing can be added (the read-only Scene view,
47+
a session you can only view) the entry does not appear.
48+
49+
![The Explorer's right-click menu with Add files… and New file opened on Script, Note, JSON and Text](img/explorer/add-files-menu.webp)
50+
51+
**New file ▸** (in the same menus of the grid background and of a folder) creates a text file from a template and opens
52+
it in the code editor:
53+
54+
| Entry | Starts as |
55+
|---|---|
56+
| **Script (.js)** | a behaviour with its handlers stubbed out — bind it to a [Behaviour node](nodes/behaviour.md) to run it |
57+
| **Note (.md)** | a Markdown note with a heading, which everyone in the session can edit together |
58+
| **JSON (.json)** | an empty JSON object, for settings or data a script reads |
59+
| **Text (.txt)** | an empty plain text file |
60+
61+
New file is greyed out for a viewer: only editors can change files.
62+
63+
![An empty folder on a phone: Nothing here yet, with the Add files… button under it](img/explorer/add-files-empty-phone.webp){ width="390" }
64+
3965
**Importing something you already have.** A file is identified by its contents, so re-importing the same bytes is not a new file. The app tells you what it already has and lets you skip it, reveal it, or — for a scene — take a real copy. The rule lives in **Settings ▸ Explorer ▸ "When importing files already in your library"** (Ask / Skip them / Import as copies); see [Projects](projects.md#importing-something-you-already-have).
4066

4167
**Big models are optimized as they come in** (1.37): over 50k triangles or with a texture over 2048 px, an import gets
26.9 KB
Loading
22.4 KB
Loading

‎docs/index.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ with a contributing guide and an `llms.txt` for coding agents.
5252

5353
## What's new
5454

55+
**1.54.3 — sessions that keep up, friendlier failures, small wins.** A new object's logic reaches everyone in a session
56+
within seconds instead of about half a minute, a button that toggles a shared variable flips it exactly once for
57+
everybody, and cancelling a library download really stops it. A browser that can't run 3D now
58+
[says what to try](performance.md#3d-view-does-not-start) instead of showing a blank page, and a tab left open across an
59+
update offers **A new version is ready – Reload**. In play, [Possess](nodes/possessnode.md#driving) jumps with
60+
<kbd>Space</kbd> or gamepad A (**Jump height** on the node), pausing the game pauses behaviour timers (`this.after`), and
61+
[Wander](nodes/wander.md) keeps objects on the ground with its new **ground** toggle. The Explorer has
62+
[**Add files…**](explorer.md#add-files-and-new-file) — a file picker for phones and the Quest browser — and
63+
**New file ▸ Script / Note / JSON / Text**. The experimental [VR sleeve](vr.md#the-sleeve-palette) grows a shape from a
64+
ghost to true size as you pull it out, latches with a click and cancels at your wrist. Also fixed: windows no longer open
65+
under the bell and profile buttons on tablet-wide screens, the Connect Claude welcome fits a folded or unfolded phone,
66+
shortcuts work right after adding a node, a quick tap selects on large phones and foldables, leaving VR on Quest no
67+
longer throws an error, and Dungeon Realms players no longer start inside the entrance arch.
68+
5569
**1.54 — first win and community.** Your first visit asks
5670
[one question](tours.md#your-first-visit) — Play a game, Remix a game, Start from a template or Describe it — and a
5771
three-step [first-game quest](tours.md#the-first-game-quest) walks you through changing it, playing it and inviting a

‎docs/module-sdk.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ api.possessModes // e.g. ['chase','orbit','none','first'] —
499499
// values degrade silently on older builds
500500
```
501501
502+
WASD / arrows, a gamepad's left stick or the VR left stick drive the object (tank controls);
503+
<kbd>Space</kbd> or gamepad A hops it `jumpHeight` metres (default 1.2, `0` = no jump, since 1.54.3).
502504
With `camera: 'first'` the eye sits at the object plus `eyeHeight`;
503505
`mouseLook: true` requests pointer lock — horizontal look turns the **object**
504506
(movement follows the view), vertical pitches the camera, and leaving pointer

‎docs/nodes/possessnode.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ the owner of the [object flow](../object-flows.md) the node sits in.
2626
| turnSpeed | 2.5 | 0.1 – 10: how fast it turns, in radians per second |
2727
| eyeHeight | 1.7 | 0.2 – 3 m above the object: the eye for the `first` camera |
2828
| mouseLook | off | `first` camera only: the mouse turns the object and tilts the view |
29+
| jumpHeight | 1.2 | 0 – 5 m: how high <kbd>Space</kbd> or gamepad A hops the object (**Jump height** on the card; 0 = no jump) |
2930

3031
| camera | What the view does |
3132
|---|---|
@@ -38,8 +39,12 @@ the owner of the [object flow](../object-flows.md) the node sits in.
3839

3940
While you hold an object, the keys drive **it** instead of you. The controls are tank-style:
4041
<kbd>W</kbd> / <kbd>S</kbd> (or <kbd>↑</kbd> / <kbd>↓</kbd>) drive forward and back along the way it faces, and
41-
<kbd>A</kbd> / <kbd>D</kbd> (or <kbd>←</kbd> / <kbd>→</kbd>) turn it. In VR the left stick does the same. Your own
42-
movement pauses until you let go.
42+
<kbd>A</kbd> / <kbd>D</kbd> (or <kbd>←</kbd> / <kbd>→</kbd>) turn it. A gamepad's left stick does the same (and in VR,
43+
the left controller's stick). Your own movement pauses until you let go.
44+
45+
**Jumping** (*since 1.54.3*). <kbd>Space</kbd> or a gamepad's **A** hops the object up to **Jump height** and the scene's
46+
gravity brings it back down to the height it jumped from. One hop at a time: a press in the air does nothing, and holding
47+
the key or button is still one jump. Set **Jump height** to 0 to switch jumping off — for a turret, say.
4348

4449
You let go when the **release** input pulses, or when you press <kbd>Esc</kbd>. With **mouseLook** on, leaving the
4550
pointer lock also lets go. Entering VR lets go too. If **trigger** and **release** pulse in the same moment, the

‎docs/nodes/wander.md‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Wander
22

3-
Drifts the connected object around a smooth, never-repeating target inside an **area object** (a water volume, a room) or a box around where it was placed — fish, birds, fireflies, idle drones.
3+
Drifts the connected object around a smooth, never-repeating target inside an **area object** (a water volume, a room) or a box around where it was placed — fish, birds, fireflies, idle drones. With **ground** on it walks across the floor instead — deer, a herd, a wandering NPC.
44

55
**Output:** effect (wire into an [Object Selector](objectselector.md), or leave it in an object's own flow)
66

@@ -19,13 +19,20 @@ Drifts the connected object around a smooth, never-repeating target inside an **
1919
| seed | 0 | 0 – 999: 0 = take it from the object, so copies never move in step |
2020
| margin | 0.2 | 0 – 2 m kept clear of the area's sides |
2121
| rx, ry, rz | 1, 0.3, 1 | half-extents of the box when no area is wired |
22+
| ground | on | keep the object at the height it was placed at, wandering across the floor only — see below |
23+
24+
**Ground** (*since 1.54.3*) is for walkers — deer, a herd, a wandering NPC. The object wanders in `x` and `z` and keeps
25+
the height you placed it at: no bobbing within `ry`, and a floor slab wired as the `area` no longer pulls it down into
26+
the slab's middle. A new Wander node starts with ground **on**; switch it **off** for a fish, a bird or a firefly that
27+
should drift up and down too. Wander nodes saved before 1.54.3 keep drifting in 3-D.
2228

2329
The target is three octaves of smooth noise per axis at incommensurate rates — it never repeats, never jumps, and always stays inside the box. It is a pure function of the shared clock, so every peer sees the same wanderer in the same place.
2430

2531
## Practical example
2632

2733
Clownfish that potter about the tank:
2834

29-
1. Give the fish a **Wander** node and wire an Object Selector of the **water volume** into `area`; margin 0.4, speed 0.2.
35+
1. Give the fish a **Wander** node, switch **ground** off, and wire an Object Selector of the **water volume** into
36+
`area`; margin 0.4, speed 0.2.
3037
2. Add [Orient to Velocity](orientvelocity.md) so it faces where it is going, and [Body Wave](bodywave.md) so it swims.
3138
3. Duplicate the fish: with `seed` 0 each copy wanders its own way.

‎docs/performance.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,27 @@ say what is lowered now, instead of a second card stacking under it.
241241
the rest of the scene instead of switching off and on. The chip's tooltip says so. Opening another scene, **Keep full
242242
quality**, or turning automatic quality off and on gives it a fresh start.
243243

244+
## 3D view does not start
245+
246+
*Since 1.54.3.* If the page opens on **"This browser can't show the 3D view"** instead of the editor, the browser refused
247+
to give the page a **WebGL 2** context — the graphics interface every scene is drawn with. Nothing else can run without
248+
it, so the app stops there rather than showing a blank page. It is usually a browser setting, not your device. Try, in
249+
this order:
250+
251+
1. **Turn on hardware acceleration** (also called graphics acceleration), then restart the browser completely:
252+
- Chrome and Edge: **Settings ▸ System ▸ Use graphics acceleration when available**.
253+
- Firefox: **Settings ▸ General ▸ Performance**: untick *Use recommended performance settings*, then tick
254+
*Use hardware acceleration when available*.
255+
2. **Update your browser** and, on a computer, your **graphics drivers** (from your graphics card's or computer
256+
maker's site). Browsers switch WebGL off for some old drivers.
257+
3. **Try another browser** — a current Chrome, Edge, Firefox or Safari. If it works there, the first browser's settings
258+
or an extension are the cause.
259+
4. Press **Reload** on the screen after each change.
260+
261+
Still stuck? In Chrome or Edge, open `chrome://gpu` (`edge://gpu`) and look at the *WebGL2* line: *Hardware accelerated*
262+
is what the app needs; *Disabled* or *Unavailable* says the browser has switched it off. The page also sends one short
263+
[error report](privacy.md#anonymous-error-reports) about the missing WebGL, if reports are on.
264+
244265
## Budgets in CI
245266

246267
For contributors to the core repo: every Games-tab game and every General-tab level is held to

0 commit comments

Comments
 (0)