Learn › Godot 3D Beginner

Lesson 4 of 6 · About 5 min

Things to find

Crystals, chests and villagers: put more to find in the valley.

Glowing crystals in front of the explorer in Sunny Valley.

Places, crystals, chests and villagers are lists of positions. Add crystals near the start.

Positions on a map

The things to find are lists of x and z positions. PLACES are the 5 goals, each with a name, a position, the builder that draws it and a note shown when it is found. CRYSTALS is a list of [x, z] pairs, CHESTS another.

Crystals are loot. Loot earns stars (10 for the second star and 26 for the third), and a villager trades crystals for more.

Keep them reachable

Everything must sit inside the walkable valley, which reaches 26 metres from the centre (LIMIT), and not inside a house. The player starts at x 0, z 10, near the middle of the south side.

Three more crystals

In the session you will add three crystals near where the player starts.

Sunny Valley in the editor, with the AI's reply about the three new crystals in the chat.
Add crystals

Try it yourself

In the app this lesson opens a real game for you, with a guide that walks you through these steps:

  1. CRYSTALS is a list of [x, z] positions. The player starts at x 0, z 10.
  2. Add three crystals near where the player starts.
  3. Walk forward from the start to pick them up. Every list of positions in the game works the same way.
Start makingDownload on the App StoreGet it on Google Play