Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Overview

Note

This page is currently a stub and needs more detail.

  • 240x240 screen size (30 tiles across, 30 tiles vertically)
  • 8x8 tiles and sprites
  • 5 tile layers (layer 0 is the topmost), each with a 64x64 tile map and its own scrolling
  • 128 sprites
  • 16 palettes
  • A background color, which is separate from the palettes

Where each of these lives in memory is described in VRAM Layout.

Draw Order

Everything on screen is drawn back to front:

StepDrawn
1Background color
2Sprites with layer offset 9
3Tile layer 4
4Sprites with layer offset 8, then 7
5Tile layer 3
6Sprites with layer offset 6, then 5
7Tile layer 2
8Sprites with layer offset 4, then 3
9Tile layer 1
10Sprites with layer offset 2, then 1
11Tile layer 0
12Sprites with layer offset 0

Sprites that share a layer offset are drawn in the order they appear in the sprite table, so later sprites are drawn on top.

A tile layer that is disabled (see Layer Registers) is skipped, and everything else is drawn in the same order.

How things blend as they are drawn is purposely undefined for now. See Blending.