Rebuilding Procedural Playground by hand
All the posts
  1. Before you start
  2. 1A new project
  3. 2Leela's model and texture
  4. 3The ground, the sun and the dusk
  5. 4Second-order dynamics
  6. 5The camera
  7. 6The picture
  8. 7Leela's scene
  9. 8Standing and walking on physics
  10. 9Her bones
  11. 10The player's keys
  12. 11Going further
  13. Last: full screen
  14. How this was checked

How this was checked

An honest account, so you know how far to trust each kind of claim in these posts. If your screen and a post disagree, trust your screen, and fix the post (the last section says how).

Done in a real editor: the clips

On 2026-12-05 fourteen of the steps were done for real in the Godot 4.7.2 editor, and recorded. Those recordings are the clips.

  • The editor is the real one: Godot's own 4.7.2 build for Linux, unchanged.
  • The project is where the posts have got to. A script builds a fresh project up to the step before each clip, from the values the posts give and the repo's own files. Only the step itself is done in the editor.
  • The pointer and the keys are real. A script sends them, as a mouse and a keyboard would. To know where to point, it asks a small plugin in the editor what's on screen: each button, row and field, and where it is. The plugin only reads. It changes nothing in the project or the editor.
  • A take is checked before it's kept. After the step, the script looks at what the editor saved or shows. A take that fails its check is thrown away.
ClipPostWhat was doneWhat was checked afterwards
new-scriptBefore you startA folder and a script made from the FileSystem dock, and the repo's proc/second_order.gd pasted over the templateThe saved script is the repo's, byte for byte
input-mapStage 1move_forward added, with its key, its arrow and its stickproject.godot has the action with the same three events as the repo's
modelStage 2Leela's .blend opened in the import window, Walk played, then her bones looked at in a scene made from the fileThe clip's slider moved, the Bones tree has her seventeen, and the scene shut unsaved
materialStage 3floor.tres made from nothingThe saved file has the repo's four values, and the PNG as its picture
environmentStage 3The WorldEnvironment, its Environment saved as a file, and the Sky, its material and that material's shaderThe shader's own values show in the Inspector, so it's in
fogStage 3Every row of the Fog sectionEach number reads back from its field
cameraStage 5The Camera3D, its script dragged on, the box, and Target chosen with Assign...The script's heading is in the Inspector, and Target reads StandIn
autoloadsStage 6The three autoloads addedThe list shows Outline, Psx, Crt, in that order
groupsStage 6A new group in the Groups dockoutline is ticked for StandIn
leela-sceneStage 7Her scene from an empty tab: root, collider, modelThe saved scene has the repo's values for those three nodes (her half turn is off in the eighth decimal place, from typing 180)
leela-weightStage 7The whole "Her weight" tableThe saved scene has the repo's eight values
remote-treeStage 8The game run, Controlled ticked and Grip changed in the Remote treeThe box reads ticked and Grip reads 0.2
part-massesStage 10The Parts node, its script, and three entries typed into the dictionary editorParts is below Rig with parts.gd on it, and the dictionary's size went 1, 2, 3
level-piecesStage 11A Stairs and the Platform block, placed under LevelThe saved scene has the repo's lines for both

What was done to the recordings afterwards. Nothing is sped up and no picture is redrawn.

  • A ring is drawn at each click, and a label for each key, from the script's own record of what it sent.
  • Where the editor kept the recording waiting (an import, a window opening), the wait is cut out.
  • The still moments at each end are trimmed.

What's different from your screen is in Before you start: a Linux machine with no graphics card, a small window, and dialogs inside the main window.

Two more things were done in that editor and not recorded:

  • Stage 6's "watch them work": with the game running, the camera's Projection was set to Perspective and its FOV to 6.7 in the Remote tree. The view framed almost the same, and a thin dark line showed along the box's edges. Leela's half of that note (her outline, and the wobble) wasn't done.
  • The FileSystem dock's Create New menu: it lists Folder..., Scene..., Script..., Resource... and TextFile....

What doing them changed in the posts

The first version of this tutorial took the editor's labels from Godot's source. Doing the steps put these right, or filled them in:

  • Stage 2 was wrong twice. The import window doesn't name her bones, and Space doesn't play a clip in it. The post now plays Walk with the button under her picture, and shows her bones another way: a scene made from the file, and its Skeleton3D's Bones tree.
  • Stage 3, the fog: its section stays shut until its On box is ticked, Density goes to 1 by itself when Mode becomes Depth, the three Depth rows only show then, and the Depth Curve takes a number after a double click.
  • Stage 3, the materials: the dialogs' names, the name the save dialog offers, dragging the picture onto the Texture slot, and typing a scale into x alone (the three are linked).
  • Stage 3, the environment: each resource inside it opens in a box of its own when clicked, and the shader is chosen with Quick Load.
  • Colours: a space typed into the picker's Expr field shut the picker, so the posts say to type none.
  • Stage 5: the Inspector of a Camera3D begins with a Camera Preview, the script's values come under a heading with the script's name, and Target is chosen with Assign... in a Select a Node dialog that lists only the nodes it can take.
  • Stage 6: autoloads are added with Select Script/Scene. The Groups dock's +, its Create New Group dialog with a Global switch, the Scene Groups heading, and the tick that puts the node in the group.
  • Stage 7: the save dialog already offers leela.tscn. The chain-link button and its Select Scene list. Center of Mass only shows once the mode is Custom. The layer boxes: two blocks of eight to a row.
  • Stage 8 and "Before you start": the game pops out in a window unless one box is unticked. Controlled is the first row under Members. The game needs a click before it hears the keyboard. A script's exported values are a long way down the Remote Inspector, so Filter Properties is the way to them. The game draws an orange box round the node that's selected.
  • Stage 10: the dictionary editor's steps: the Dictionary (size 0) button, the pencil that sets a key's or a value's type, and Add Key/Value Pair. A new node goes last, below Rig, which is where Parts has to be.
  • Stage 11: a new Stairs goes down, under the floor, until its Rise is above 0. Chasing's numbers are under Chase → Follow Spring.
  • Making a script: the Create Script dialog comes with the folder in its Path and new_script selected, so only the name needs typing.

Measured: Leela's numbers

A fresh project was built up stage by stage with the values the posts give, by a script that made the same nodes, and each halfway state was run in Godot 4.7.2 without a window. Leela's heights, speeds and timings in the checkpoints are measurements from those runs, and so are the "Try it" numbers marked "measured".

Compared: the finished rebuild

The finished rebuild's scenes and resources were compared with the repo's, value by value. They match, apart from George (left out), the sun's angle (0.04° off, from rounding) and the checkers' pixels living in PNG files.

Checked at every build: the code

Every run of code in the posts is looked up in the repo's file it names when the pages are built, as whole lines, tabs and all. A quote that has drifted from its file stops the build.

Seen on the owner's PC: the outline

That no outline draws through this camera was first read from the shader. Then one paused frame of the repo's game was pictured on the owner's PC with the outline switched on and off: through the game's camera not one pixel differs, and through a camera with perspective 11,732 do.

Still not seen

  • Steps with no clip were not done in a real editor. A script set their values, and their labels are read from Godot's source. They are:
    • Stage 1: creating the project, the six project settings, the other three actions, and telling the editor where Blender is.
    • Stage 2: her material.
    • Stage 3: the Import dock's step for the three pictures, dark.tres and light.tres, the main scene and its Ground, the sun, and the environment's rows other than the sky's and the fog's.
    • Stage 5: the game's first run.
    • Stages 7 to 10: Leela's groups, putting her in the playground, and putting robot.gd, rig.gd and robots.gd on their nodes. (The same moves as the camera's script and the box's group, which were done.)
    • Stage 11: the other six pieces.
    • Stage 12: the full-screen setting.
  • Most "Try it" changes. Only Controlled, Grip, Projection and FOV were changed in a running game on screen. The numbers the others give are measured, without a window.
  • Windows, and a real graphics card. Every clip is from Linux, drawn by software. The editor's docks, dialogs and labels are its own and should be the same. How the 3D view and the game look and move on a graphics card wasn't seen here.
  • Full screen and the Game workspace (stage 12). That a game which starts full screen isn't shown inside the editor is read from Godot's source.
  • The wobble under a perspective camera (stage 6's note). That it runs then follows from the shader's test, which is the outline's test the other way up. Its jitter wasn't watched.
  • Why a space shuts the colour picker. It did in the recording editor. Whether it does on Windows isn't known.

How to fix a post

The posts are the Markdown files in blog/src. Change one, run python3 blog/build.py, and the pages are written again. The clips are in blog/clips, and what recorded them is in blog/record: AGENTS.md says how a clip is recorded again.