Skip to Content
The Alchemy Project

Structures: W

The structures and unions of The Broken Seal from W, with their briefs.

  • WAVE_EFFECT_SPR: Read set on it; each member says which Sprite fields it covers.
  • WEATHER_PARTICLE: One weather particle: depth-slot link and OAM attributes (written whole by start functions as semi-transparent, size 1, priority 1 and palette 13), followed by its world position.
  • WEATHER_STATE: HEAP_SLOT_WEATHER while ground particles, motes or sparkles run.
  • WIN_STATE: The window system's state: the windows' tilemap, the windows, the three text messages, the 64 window sprites, and the decoded message and its arguments.
  • WINDOW: A window: a bordered rectangle of the tilemap with its window sprites, its opening or closing animation and the rectangle it last drew.
  • WINDOW_BUFFER: A page of the screen transition's window edges (SCREEN_TRANSITION_STATE.pages): WININ and WINOUT, then each line's edges.
  • WINDOW_LINE: One line's horizontal window edges, each a WIN_RANGE value.
  • WINDOW_SPR: A window sprite: a sprite in a window's sprite list (a character, an icon or a portrait), with its VRAM cache slot, depth slot (syOAMAddSpriteAtDepth: higher draws in front; glyphs use 254) and OAM attributes.
  • WINDOW_SPR_LIST: A list of window sprites: its first sprite and the link to append after.
  • WINDOW_ZOOM_SCRATCH: Scratch values for a stage of a window's zoom: the scaled part of a side, the scaled duration and their ratio.
  • WORLD_MAP_AFFINE_LINE: One screen line's affine parameters for a background, as the HBlank DMA copies them into the BG2 or BG3 registers, BG2PA to BG2Y.
  • WORLD_MAP_AFFINE_PAIR: One screen line's affine parameters for BG2 and BG3.
  • WORLD_MAP_AFFINE_STATE: The world map's affine state in HEAP_SLOT_WORLD_MAP_AFFINE: the scanline terms and two pages of per-line affine parameters, one built while the other is shown.
  • WORLD_MAP_ENCOUNTER_RULE: The World Map's encounter zone for an encounter region and battle environment.
  • WORLD_MAP_METATILE: One 32-pixel metatile of the world map: its tile, its kind (WORLD_MAP_ENCOUNTER_REGION) and a flag.
  • WORLD_MAP_SCANLINE: One screen line's ground-plane terms on the world map: its width scale and distance, from which its affine parameters are built (fdWorldMapBuildScanlineTable, when the pitch changes).
  • WORLD_MAP_VIEW: The world map's perspective view: the followed position, screen shake, view position, window, pitch and yaw, tile ids and zoom, in HEAP_SLOT_MAP_GRID where a map keeps its MAP_GRID_SCROLL_STATE.
  • WORLD_POS: A position on the world map, as its walkability check reads it.