Skip to main content

Module window_layer

Module window_layer 

Source
Expand description

Window layer — the Game Boy’s WINDOW overlay.

The Game Boy WINDOW is an overlay that can cover part of the screen. It has its own tile map and is positioned via WX (window X + 7) and WY. When enabled, it replaces the BG for all pixels at and below WY, starting from screen column (WX - 7).

Unlike BG, the window does NOT wrap — it renders from top-left of its own tile map, with no scroll offset.

Structs§

WindowLayer
Window layer state.