MENU

Fun & Interesting

Saving and loading games with Godot

Godotneers 75,510 1 year ago
Video Not Working? Fix It Now

Hello Godotneers! When you make a game, you will eventually want to add a system for saving and loading games. This can become surprisingly difficult as your game becomes more complex. In this video we're going to explore how we can save all revelant information from our game and load it back, how to make sure we can still load old saved games after we updated our game and how we can deal with security issues surrounding saved games. == Table of Contents == 00:00 Introduction 00:46 A simple approach 10:03 Format choices - JSON 17:58 Format choices - Dictionaries 20:33 Format choices - Resources 26:00 Handling dynamic game elements 32:43 A generalized approach 48:12 Extending the generalized approach 53:48 Saved game compatibility 59:55 Saved game security 1:07:47 Conclusion == Useful Links == Example project - https://github.com/godotneers/saving-loading-video Article on saved game compatiblity - https://raw.githubusercontent.com/godotneers/saving-loading-video/main/godotneers-ensuring-saved-game-compatibility.pdf Godot reference on Resources - https://docs.godotengine.org/en/stable/tutorials/scripting/resources.html Godot JSON class - https://docs.godotengine.org/en/stable/classes/class_json.html Godot FileAccess class - https://docs.godotengine.org/en/stable/classes/class_fileaccess.html

Comment