Voxel Game Maker

Docs Tutorials

Take apart: Endless Delve

Dive into a dungeon that is new every run, then open its Generate graph to see how floors, goals and monsters are chosen.

In the editor: Welcome ▸ Tutorials ▸ 3.6 ▸ ▶ Start opens a fresh copy of Endless Delve with this lesson's checklist.

Take apart · about 40 minutes · Advanced mode

What you'll learn: how a finished roguelite picks a random goal each floor, adds monsters as you go down, switches between two kinds of level, and brings in a boss.

Before you start: do Generated dungeons.

#1. Play it first

Make a new project from the Endless Delve sample (File ▸ New Project…) and press F5. You're a wizard with an Oak staff. Each floor has a goal; finish it and the stairs open. Go down three floors. Note what changes on each floor.

#2. Open the crypt's graph

Stop with Shift+F5. Open the level The Delve and press F12.

  • The Dungeon node makes the rooms. Its + rooms each floor down is 1, so every floor is bigger.
  • The Exit places the Stairs down prefab, Locked until goals are done.
  • Three goal nodes, collect 3 soul gems, find the crypt key and defeat 4 skeletons, share the One of group "Floor goal". Each floor picks one, by their Chance %: 50, 30 and 20.
  • Goal: defeat the boss places the Bone Queen. Its When fields bring her on floor 4 and every 4th floor after.

#3. Monsters that join later

Click the Scatter nodes. Skeletons and slimes come on every floor, with + more each floor down % at 50. The fireball turrets' Scatter has From floor 2, and the slime nest's Place one has From floor 3. Set the Floor box on the toolbar to 1, then 3, and watch the preview change.

#4. Two kinds of level

Open the level Lava Caves and press F12. It uses a Caves node instead of Dungeon. Taking the stairs picks the next level by weight, so most floors are crypts and some are caves.

#5. Change it

  1. In The Delve's graph, change Goal: collect's How many from 3 to 5.
  2. Set the fireball turrets' From floor to 1.
  3. Press ✓ Check 20, then ▶ Play this layout.

Play it now: the turrets are there on the first floor. The goal is random, so press the dice button (🎲) and play again until you get the soul gems. Now it asks for 5.

#Try it yourself

  • Place a Skeleton from the Prefabs panel, give its Health behavior more health, and click Apply to all in its ◆ Prefab card in Properties. Then delete the one you placed.
  • Add a fourth goal to the "Floor goal" group, such as Goal: pull levers.

#Learn more

#Next

Music, sounds and particles.