Uploaded April 2021 | Updated December 2026, 3 hours ago
By the end of this video our level generator will place objects in such a way so that the center tile will always be open for our player to spawn in, and we’ll use a flood fill algorithm to prevent objects from cutting off any part of our levels, so that all the open spaces remain connected.
Timestamps:
0:00 - Intro
0:23 - Leave the center open
2:26 - Custom equals method
4:50 - The connectivity problem
5:33 - The connectivity solution
6:55 - Flood fill algorithm explained
11:03 - Flood fill walk through
16:44 - Obstacle placement refactor
21:16 - Coding the flood fill
31:04 - Testing it out!
*******************************
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 our level generator will place objects in such a way so that the center tile will always be open for our player to spawn in, and we’ll use a flood fill algorithm to prevent objects from cutting off any part of our levels, so that all the open spaces remain connected.
Timestamps:
0:00 - Intro
0:23 - Leave the center open
2:26 - Custom equals method
4:50 - The connectivity problem
5:33 - The connectivity solution
6:55 - Flood fill algorithm explained
11:03 - Flood fill walk through
16:44 - Obstacle placement refactor
21:16 - Coding the flood fill
31:04 - Testing it out!
*******************************
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



