-
Notifications
You must be signed in to change notification settings - Fork 3
Background
The Super Nintendo supports up to 4 background layers. The actual number of available background layers depends on the selected background mode, ranging from mode 0 through mode 7. The background mode is set in bits 0-2 of BGMODE.
Each background layer is made up of a set of tiles organized into two-dimensional (32×32) tilemaps. An individual background layer can be set to one of 4 possible dimensions: 32×32, 64×32, 32×64 or 64×64 tiles. The dimensions for each background layer are set in the lower 2 bits of BG1SC, BG2SC, BG3SC and BG4SC. The higher order bits set the VRAM segment that contains the background layer's (first) tilemap.
All tiles for a background layer are either 8×8 (default) or 16×16 pixels. The tilesize for background layer 1, 2, 3 or 4 is set by bit 4, 5, 6 or 7 respectively of BGMODE.