Godot 4.1 Tower Defense Tutorial - Part 03 (Resources and Singletons)

Subscribers:
2,380
Published on ● Video Link: https://www.youtube.com/watch?v=mAQSvWDEAaw



Category:
Tutorial
Duration: 18:49
725 views
54


Hi again. I admire your persistence!

If we're going to make life easier for ourselves, we need to start thinking about making the Path Generator as a Singleton. So today, we're going to look at how Godot can autoloads scripts (aka Singletons), and how we can use resources to reference data saved to a file.

As always I appreciate feedback in any way (good or bad, but prefer good!). Please throw a like if you're enjoying... And maybe a subscribe if you're REALLY enjoying and want to see more!

Enjoy!

Github link: https://github.com/WideArchShark/godot-tower-defense/tree/tutorial_03a

Chapters:
0:00 Introduction
1:00 Community feedback
2:09 Singletons Introduction
4:30 Singletons in Godot (Autoloading)
7:40 Resources Introduction
8:35 Creating a Resource Script
10:38 Creating a Resource .res File
11:44 Referencing the Resource File From Path Generator
14:50 Refactoring Path Generator
15:26 Refactoring Main
16:15 Bit more tidying!
18:00 Prologue!




Other Videos By Wide Arch Shark


2023-11-15Godot 4.2 Tower Defense Tutorial - Part 11 (Particle Effects)
2023-11-12Godot 4.2 Tower Defense Tutorial - Part 10 (Sound Effects)
2023-11-07More Godot YouTubers you should go take a look at !
2023-11-06Godot 4.X Tower Defense Tutorial - Part 09 (Cannon Firing)
2023-10-28Godot 4.X Tower Defense Tutorial - Part 08 (Turret Rotation)
2023-10-25Godot 4.X Tower Defense Tutorial - Part 07 (Collision Layers and Masks)
2023-10-21Godot 4.X Tower Defense Tutorial - Part 06 (3D Drag and Drop)
2023-10-16Godot 4.1 Tower Defense Tutorial - Part 05 (Raycasting)
2023-10-13Godot YouTubers you should go take a look at!
2023-10-11Godot 4.1 Tower Defense Tutorial - Part 04 (Enemy Waves and States)
2023-10-03Godot 4.1 Tower Defense Tutorial - Part 03 (Resources and Singletons)
2023-09-30Godot 4.1 Tower Defense Tutorial - Part 02 (Adding Loops!)
2023-09-27Godot 4.1 Tower Defense Tutorial - Part 01 (Random Path Generation)
2023-09-23Align Camera With View in Godot - Yes it is possible!!
2023-09-23Godot 4.1 - New pricing strategy! Oh, and creating a complete game - Part 3 - Deploying to itch.io
2023-09-225 Godot editor tips that you might not know! #godot #tips
2023-09-21Godot 4.1 - Creating a complete (and fun!) game - Part 2
2023-09-20Godot 4.1 - Creating a complete (and fun!) game - Part 1
2023-09-17Godot 4.1 Version Control in Git in Less than 2 Minutes!
2023-09-16Godot 4.1 - Creating Menu's Part #2 - REAL POWER!
2023-09-14Godot 4.1 - Creating Menu's Part #1 - Welcome all ye' Unity devs !



Tags:
godot
tower defense
tutorial
resources
singletons