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
- In the Project Manager press Create. The dialog is titled Create New Project.
- Project Name:
Procedural Playground. Project Path: an empty folder of your own. - Renderer: Forward+. It's the desktop renderer, and the environment in stage 3 leans on it (glow, ambient occlusion, depth fog).
- 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.
| Where | Setting | Value | Why |
|---|---|---|---|
| Display → Window → Size | Viewport Width | 1280 | The size the game is laid out for. |
| Viewport Height | 720 | ||
| Display → Window → Stretch | Mode | canvas_items (already) | So the full-screen 2D layers of stage 6 cover any window. |
| Aspect | expand (already) | The same. | |
| Physics → 3D | Physics Engine | Jolt Physics (already) | The engine Leela's numbers were tuned on. |
| Rendering → Rendering Device | Driver.windows | vulkan | See 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:
- Type
move_forwardinto Add New Action and press Add. - 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.
- Press + again and press the Up arrow key.
- Press + again and tilt a pad's left stick up, or pick the entry with Left Stick Up in its name under Joypad Axes.
- Do the same for the other three:
| Action | Key | Arrow | Stick |
|---|---|---|---|
move_forward | W | Up | Left Stick Up |
move_back | S | Down | Left Stick Down |
move_left | A | Left | Left Stick Left |
move_right | D | Right | Left Stick Right |
Leave each row's Deadzone at 0.2.
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.