Learn › Make games

Lesson 3 of 6 · About 6 min

Building a level

A level is a list of things in places, and you are going to add some.

A level of Feather Jump: platforms, coins, gaps and two foes.

A level is a list of things in places. A good one teaches an idea, tests it, then twists it.

A level is data

The rules of a game live in its code. A level is different: it is a list. Ground from here to here. A platform at this spot. Coins at these points. An enemy that walks between these two marks. A flag at the end.

Because a level is a list, changing it is safe and quick. Adding a coin cannot break the jump. Moving a platform cannot break the score. You can try an idea, play it, and take it back.

Feather Jump keeps its three levels in one table near the top of its code. Each row holds the ground, the platforms, the coins, the stars and the enemies of one world.

Teach, test, twist

Good levels are built around one idea at a time, in three beats.

Teach: show the idea where it is safe. The first gap in a platformer usually has solid ground below it, so a missed jump costs nothing.

Test: ask for the same move where it matters. Now the gap has a drop.

Twist: combine it with something else. The gap again, with an enemy waiting on the far side.

The player is never told any of this. They learn by doing, and the level is the teacher.

Coins are signposts

Pickups are not only a reward. A line of coins is the clearest way to say "go this way" without a single word, and an arc of coins over a gap shows the exact jump you want the player to make.

Enemies do the opposite job. Put one where the player lands and a simple jump becomes a decision.

In the session you will add both to the first world of Feather Jump: a trail of coins over the first gap, and a walker on the far side of it.

The first world of Feather Jump in the editor with the chat showing the AI adding coins to the level table.
Add to the first level

Try it yourself

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

  1. The first world's ground has a gap a little way in from the start. Right now nothing tells the player how to cross it.
  2. Add a trail of three coins in an arc over the first gap of the first level.
  3. That is the teach beat: a safe jump with a clear line. Now the twist. An enemy near the landing makes the same jump a decision.
  4. Put a walker enemy on the ground just after the first gap.
  5. Two rows of data, and the opening of the game reads differently. When you build your own levels, add one thing, play it, and only then add the next.
Start makingDownload on the App StoreGet it on Google Play