Sega Mega Drive/Priority
From Sega Retro
The Sega Mega Drive VDP draws planes and sprites on the screen in a specific order. In addition, each tile within a plane and each sprite has a priority bit which can be set to draw it in front of those without. The drawing order is as follows:
- Background colour (set by VDP register 07)
- Background (Plane B) with priority bit clear
- Foreground (Plane A) with priority bit clear (also shadowed in shadow/highlight mode)
- Sprites with priority bit clear
- Window Plane with priority bit clear
- Background (Plane B) with priority bit set
- Foreground (Plane A) with priority bit set (also normal in shadow/highlight mode)
- Sprites with priority bit set
- Window Plane with priority bit set