Learn › DS Beginner

Lesson 3 of 6 · About 6 min

A level of numbers

Everything on these two screens comes from five short lists of numbers.

The hero of Meadow Hop picks up coins over the first slime.

How Meadow Hop's whole level is five short lists of numbers: ground, planks, coins, slimes and the flag. Then add coins over the first slime.

Five lists

The level runs left to right, measured in tiles of 16 pixels. SPAN lists the stretches of ground, start and end; between two stretches is a pit. PLAT lists the planks you can jump up onto: where, how high and how wide. COIN lists the coins: where and how high. ENEMY lists where each slime patrols, from and to. FLAG_X is where the flag stands, at tile 146.

Each list has a count beside it, like NCOIN for the coins, and the two must agree.

Checkpoints

Reaching a new stretch of ground sets a checkpoint, shown as a signpost that turns green and a mark on the bottom screen's progress bar. Falling into a pit costs a life and puts you back at the last checkpoint.

Coins over a slime

In the session you will add three coins in the air over the first slime, so jumping over it is rewarded.

Meadow Hop in the editor, with the AI's reply about the three new coins in the chat.
Add 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. COIN is pairs of numbers: a tile across and a height. NCOIN says how many coins there are.
  2. Add three coins in the air over the first slime.
  3. Play and jump the first slime: you collect the three new coins on the way over.
Start makingDownload on the App StoreGet it on Google Play