Rebuilding Procedural Playground by hand
Stage 1 of 11: 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

Stage 1 of 11

A new project

By the end

  • A new Godot 4.7 project called Procedural Playground, on the Forward+ renderer.
  • Six project settings as the game has them.
  • Four input actions (move_forward, move_back, move_left, move_right), each with a key, an arrow and a stick direction.
  • An editor that knows where Blender is.

Create it

  1. In the Project Manager press Create. The dialog is titled Create New Project.
  2. Project Name: Procedural Playground. Project Path: an empty folder of your own.
  3. Renderer: Forward+. It's the desktop renderer, and the environment in stage 3 leans on it (glow, ambient occlusion, depth fog).
  4. Press Create.

Project settings

Open Project → Project Settings, tab General. A new 4.7 project already has three of these right; check them and set the rest.

WhereSettingValueWhy
Display → Window → SizeViewport Width1280The size the game is laid out for.
Viewport Height720
Display → Window → StretchModecanvas_items (already)So the full-screen 2D layers of stage 6 cover any window.
Aspectexpand (already)The same.
Physics → 3DPhysics EngineJolt Physics (already)The engine Leela's numbers were tuned on.
Rendering → Rendering DeviceDriver.windowsvulkanSee below. Only shown with Advanced Settings switched on (top right of the dialog).
  • The driver, on Windows. A new 4.7 project starts on Direct3D 12 on Windows. This project runs on Vulkan: in Wagee a tester's PC drew only the sky and grey under Direct3D 12. Changing it asks for a restart; press Save & Restart. On other systems there's nothing to change.
  • Leave Display → Window → Size → Mode at Windowed for now. The finished project runs full screen, but a full-screen game hides the editor, and you'll want the Remote tree beside it. It's the last step of this tutorial.

The input map

Leela is steered through four input actions. In Project Settings, tab Input Map:

  1. Type move_forward into Add New Action and press Add.
  2. On the new row press the + at its right end (Add Event). A dialog opens, already listening: press W, then OK. By default it records the key's place on the keyboard, so the keys are where WASD is on any layout.
  3. Press + again and press the Up arrow key.
  4. Press + again and tilt a pad's left stick up, or pick the entry with Left Stick Up in its name under Joypad Axes.
  5. Do the same for the other three:
ActionKeyArrowStick
move_forwardWUpLeft Stick Up
move_backSDownLeft Stick Down
move_leftALeftLeft Stick Left
move_rightDRightLeft Stick Right

Leave each row's Deadzone at 0.2.

Clip · 0:36 · no sound The first action, move_forward, made and given its three events: the W key, the Up arrow, and the left stick pushed up (picked from Joypad Axes, which does the same as tilting a real stick). The other three actions go the same way.

Only steering goes through the input map, because the scripts ask for it as one stick (Input.get_vector(...)). The other keys (Space, Tab, F, R) are read straight from key events in the scripts.

Tell Godot where Blender is

Open Editor → Editor Settings, and under FileSystem → Import → Blender set Blender Path to your Blender program (on the owner's PC, D:\blender\blender.exe). If you skip this, the editor asks for it with a Configure Blender Importer dialog the moment it meets a .blend file.

Checkpoint

There's nothing to run yet. Close and reopen Project Settings: your six values and four actions should still be there.