Make a 3D Top Down Shooter with Godot - Part 2.4 Map Connectivity with a Flood Fill Algorithm @AgeOfAsparagus
Make a 3D Top Down Shooter with Godot - Part 2.4 Map Connectivity with a Flood Fill Algorithm  @AgeOfAsparagus
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
Make a 3D Top Down Shooter with Godot - Part 2.4 Map Connectivity with a Flood Fill AlgorithmMake a 3D Top Down Shooter with Godot - Part 3.4 Gun Variations (1 of 2)Krita meets Bob Ross 11. Happy Accidents (OLD)Make a 3D Top Down Shooter with Godot - Part 3.13 Weapon Selector (1 of 2)Make a 3D Top Down Shooter with Godot - Part 3.14 Weapon Selector (2 of 2)
Age of Asparagus |

Make a 3D Top Down Shooter with Godot - Part 2.4 Map Connectivity with a Flood Fill Algorithm

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER