O'Reilly logo

Sams Teach Yourself, Godot Engine Game Development in 24 Hours: The Official Guide to Godot 3.0 by George Marques, Ariel Manzur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 12. File System

What You’ll Learn in This Hour:

• Special Godot paths

• Creating and saving configuration files

• Saving general files, such as save games

• Using encrypted files

• Managing files and directories with scripting

Godot has capabilities to deal with the file system of the player’s device, which is important when creating and managing configuration and save files. This hour will focus on the scripting API that helps you handle this in a portable, multi-platform way.

Special Paths

Apart from the standard file system paths available from the user’s operating system, Godot provides two special portable file paths: The Resources directory and the User directory.

Resource Path

The root folder of your project is the Resource Root

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required