01.obstacle-course-part-3-introduction

Obstacle course, part 3: Introduction

In this series, we return to the obstacle course to explore the last piece you’re missing to create complete games with Godot: saving, loading, and sharing data.

To achieve that, we will use Godot’s resources. You didn’t know, but you’ve already used several built-in resources: fonts, textures, themes, animations, tilesets, and others. In this series, you will learn how to create your own custom resources.

Resources can represent dialogues, spells, items, player settings, or anything we would like to save or load.

To illustrate those concepts, we will look at character customization and save functionality. Along the way, we’ll also add a local co-op.

We will build this knowledge in four steps:

We’ll first create an RPG stats upgrade screen. We will use a Resource to save the data to disk and read it in the editor.

Then, we’ll see how to create a resource to save player keybindings. This is where we’ll introduce local co-op, and we’ll reuse the keybindings Resource for two different players.

After that, we will move on to character customization. We will use a Resource to retain the character’s look. We will also learn how a Resource can be read from two different scenes: the customization screen, and the game screen.

Finally, we will code a robust save system. You will learn how and where to save your players’ data when working with Godot.

In this series, we want to focus our attention entirely on resources as they’re an essential topic. You’ll see it’s already plenty complex by covering just that!

That’s why we created two menus for you: one to edit stats and another to customize the characters’ looks.

We also added a split-screen view to the obstacle course.

It is beyond the scope of the series, but if you would like to learn how to create split-screen views, please let us know, and we’ll work on bonus lessons.

In the next lesson, we’ll start with the character stats resource.

Locating the Lesson Files

To get started, open the project “Learn to Code with Godot: Practices” in Godot and, in the FileSystem dock, expand the ObstacleCourse_Part3 directory, and double-click the ObstacleCourse.tscn file. See you in the lesson!