Uploaded April 2021 | Updated December 2026, 3 hours ago
By the end of this video we’ll be able to seed the random number generation of our tool so our RNG will behave a little nicer and also be reproducible, and we’ll add some random height variations to the obstacles with a couple parameters for control.
Timestamps:
0:00 Intro
0:21 Randomization plan
2:37 Array of coordinates
4:54 GDScript Inner Class
5:37 GDScript _init()
6:51 GDScript _to_string()
8:11 Shuffle and slice the Array
11:18 Adding the obstacles
12:37 Seed the RNG
14:40 Height variability
18:27 Fixing obstacle positions
20:30 Obstacle scene tidy
*******************************
Playlist: youtube.com/playlist?list=PLaGRTLvEbVzyUMwjUPgrreyRE3AY8jhOK
Source code tagged at the end of each episode: github.com/age-of-asparagus/godot3-3dgame/tags
Credits
-----------
This series is a port of Sebastian Lague's awesome Create a Game (Unity 5) playlist: youtube.com/playlist?list=PLFt_AvWsXl0ctd4dgE1F8g3uec4zKNRV0
Get Godot: godotengine.org
Music: Main theme - Thiago Adamo (github.com/SebLague/Create-a-Game-Source/tree/master/Audio/Music)
Editing: nuby nub (youtube.com/channel/UCxvjgA9QSqi8Bve5x_K5cNw)
Tools
---------
Video Editing: Blender
Overlays: Krita, GIMP, Inkscape, Draw on your Screen (Gnome shell extension)
Recording: SimpleScreenRecorder & Audacity
By the end of this video we’ll be able to seed the random number generation of our tool so our RNG will behave a little nicer and also be reproducible, and we’ll add some random height variations to the obstacles with a couple parameters for control.
Timestamps:
0:00 Intro
0:21 Randomization plan
2:37 Array of coordinates
4:54 GDScript Inner Class
5:37 GDScript _init()
6:51 GDScript _to_string()
8:11 Shuffle and slice the Array
11:18 Adding the obstacles
12:37 Seed the RNG
14:40 Height variability
18:27 Fixing obstacle positions
20:30 Obstacle scene tidy
*******************************
Playlist: youtube.com/playlist?list=PLaGRTLvEbVzyUMwjUPgrreyRE3AY8jhOK
Source code tagged at the end of each episode: github.com/age-of-asparagus/godot3-3dgame/tags
Credits
-----------
This series is a port of Sebastian Lague's awesome Create a Game (Unity 5) playlist: youtube.com/playlist?list=PLFt_AvWsXl0ctd4dgE1F8g3uec4zKNRV0
Get Godot: godotengine.org
Music: Main theme - Thiago Adamo (github.com/SebLague/Create-a-Game-Source/tree/master/Audio/Music)
Editing: nuby nub (youtube.com/channel/UCxvjgA9QSqi8Bve5x_K5cNw)
Tools
---------
Video Editing: Blender
Overlays: Krita, GIMP, Inkscape, Draw on your Screen (Gnome shell extension)
Recording: SimpleScreenRecorder & Audacity










