A level made of letters
Every block and ember in this level is one letter you can type.

Fox Run's levels are grids of letters. Learn what each letter means, the rules that keep a level fair, and add to one.
The level is a grid
A level in Fox Run is a grid of letters, 9 rows tall and 160 columns long, one letter for each 8 by 8 tile. A dot is air, # is ground, = is a plank you can jump up through, B is a block and ^ is spikes.
The rest are things in the level: o is an ember to collect, h is a heart, c is a lantern (a checkpoint), F is the flag at the end, and e, b and r are the three foes: a walker, a bat and a burr.
Rules that keep a level fair
Fox Run's code lists rules that keep each level playable. A pit is at most 8 tiles wide and a wall at most 4 tiles high. A level has at most 14 foes, 4 hearts and 3 lanterns. After a drop there are 6 tiles of flat ground before the next pit.
Foes and decorations stand on the cell below them, so a walker needs ground under its letter. Embers can float in the air.
Long levels on a small machine
When a level starts, the game turns its letters into tiles once. The GBC's background map is only 32 tiles wide, so as the camera moves the game copies the tiles just ahead of the screen into that map, a little each frame. That is how a level 160 tiles long scrolls smoothly.
In the session you will add a line of embers and a second walker near the start of 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:
- The first level is nine rows of letters in a table called MAPS. Each letter is one tile.
Add a line of five embers in the air near the start of the first level, and one more walker before the first pit.
- The map changed by six letters and the level changed with it. The game turns letters into tiles when a level starts, so nothing else needed to change.
