Hello, Godotneers! Thank you very much for watching this video. This repository contains the little game we used in the video. You can use it to follow along with the video or to experiment with the code.
There is a start
branch that contains the code as it was at the beginning of the video. You can use this branch to follow along with the video if you'd like.
The main
branch contains the code as it was at the end of the video. It also includes some additional features:
- It adds some things mentioned in the article below, e.g. the
PathFixer
and the handling of deleted or renamed items. - It adds some additional comments to the code, so it's easier to follow even if you didn't watch the video.
- It adds saving and loading for the towers which are part of the later levels. These were not shown in the video. Check the
tower.gd
andsaved_tower_data.gd
scripts for details. - It adds saving and loading the current level, so if you save in level 3, you will continue in level 3 when you load the game. This also was not shown in the video. Check the updated
saver_loader.gd
script for details.
If you don't know how to use git, you can also download the code as a zip file using these links:
- Download the code as a zip file (main branch, at the end of the video)
- Download the code as a zip file (start branch, at the beginning of the video)
Be sure to also check the article on saved game compatibility, it contains a lot of useful strategies to ensure your saved games are compatible across different versions of your game.
If this video and the example code were helpful to you, please consider supporting me on Ko-fi. Thank you very much!
The code and all assets except the article in this repository are licensed under the MIT license. See the LICENSE file for more information. The article is licensed under CC BY-SA 4.0. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.