Learn › GBA Intermediate

Lesson 2 of 5 · About 7 min

A second level

How Sword and Key keeps its levels one after another in one map, what happens at the gate, and how to add an old forest behind it.

Levels one after another

Sword and Key keeps all of its levels in one list of map lines. Each level is 16 lines of 24 letters, and LEVELS says how many there are. Level 1 is lines 1 to 16, level 2 lines 17 to 32, and so on.

When a level starts, the game reads its 16 lines once: it draws every cell into the background layer, puts the hero on S, a slime on each digit, and notes where the gate is.

GBA Intermediate is a course for paid accounts. The rest of this lesson, and its guided session, are in the app.

Start makingDownload on the App StoreGet it on Google Play