Learn › GBA Beginner

Lesson 4 of 6 · About 6 min

A level made of letters

You can draw a level like this with letters.

The first level of Spring Jump with its coins and platforms.

Spring Jump's levels are 12 rows of 64 letters. What the letters mean, and the numbers that must change with them.

Twelve rows of letters

Each level of Spring Jump is 12 rows of 64 letters, one letter for each 8 by 8 tile, 512 pixels wide in all. A dot is air, # is ground, = is a platform you can jump up through and ^ is spikes.

The rest are things in the level: o is a coin, s is a spring, c is a checkpoint, p is the double-jump boots, M is a moving platform, S is where the hero starts and F is the flag. The foes are e (a walker), b (a roller that cannot be stomped) and f (a flier). Things stand on the cell below them.

Numbers that go with the letters

Some letters have a number that must agree with them. Every coin is a sprite, and the game keeps MAX_COIN of them for a level, 20 today. The end screen counts coins out of ALL_COINS, the total in all three levels.

So adding coins can mean raising MAX_COIN, and it means raising ALL_COINS by the same amount, or the count at the end will be wrong. This is a good example of a change the AI can make safely: it reads the whole game and changes everything that goes together.

Coins and a spring

In the session you will add a spring to the first level and a row of five coins above it.

Spring Jump in the editor, with the AI's reply about the new spring and coins in the chat.
Add a spring and coins

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 level is 12 rows of letters in MAPS. An o is a coin and an s is a spring.
  2. Add a spring near the start of the first level with a row of five coins above it.
  3. Press Start and run to the spring. A level change that also needs a number changed is a good thing to ask the AI for: it changes them together.
Start makingDownload on the App StoreGet it on Google Play