Skip to Content
The Alchemy Project

Structures: W

The structures and unions of The Lost Age from W, with their briefs.

  • WAITING_ACTOR: The actor as SC_SYNC clears it when it gives up waiting: its target, arrival axis and blocked count.
  • WATER_TRIANGLE: One triangle of the water's mesh: three vertex indices, then a texture coordinate for each.
  • WATER_VERTEX: A corner of the water sheet: x, y and depth, a byte each.
  • WEATHER_PARTICLE: A ground particle: an OAM entry linked by depth, its place (16.16 pixels), its delay and its tick count.
  • WEATHER_STATE: The heap slot weather while the ground particles run: their tiles' VRAM cache entry and first tile, and the particles.
  • WHIRL_SPARK: A spark that circles a centre: the centre in 16.16 fixed-point pixels, the angle and radius it is drawn at, and its age in ticks (-1 while unused).
  • WIN_STATE: The window system's state: its text tile and upload 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 sprite outputs, its opening or closing animation and the rectangle it last drew.
  • WINDOW_BUFFER: A page of the icon menu's window shape: one WINDOW_LINE for each of the screen's 160 lines.
  • 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 and OAM attributes.
  • WINDOW_SPR_BYTES: A window sprite (WINDOW_SPR) as mnWindowSpriteUpdateAll reads it: its kind, motion and index unsigned, and its queued sprite as QUEUED_SPR_BYTES.
  • 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, as in The Broken Seal: the scaled part of a side, the scaled duration and their ratio.
  • WIRE_FACE: A triangle of the wireframe model: where its three corners start in the vertex buffer (in words) and the colour its edges are drawn in.
  • 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.
  • WORLD_MAP_AFFINE_PAIR: One screen line's affine parameters for BG2 and BG3.
  • WORLD_MAP_AFFINE_STATE: The world map's affine state (heap slot worldMapAffine): the scanline terms and two pages of per-line affine parameters, one built while the other is shown.
  • WORLD_MAP_BLOCK: One 32-pixel block of the World Map, an entry of WORLD_MAP_BLOCKS: its metatile behavior and its terrain.
  • WORLD_MAP_BLOCKS: The World Map's blocks, a row of 32 for each z, in the metatile tiles buffer (MetatileTiles) while the World Map is shown.
  • WORLD_MAP_CHOICE: MainRoutineStateWork.mapScreenFlag under a label of its own, MapScreenChoice: the destination last chosen on the map screen.
  • WORLD_MAP_ENCOUNTER_RULE: The World Map's encounter zone for an encounter region and battle environment.
  • WORLD_MAP_MARKER: A marker sprite's OAM entry, after a word of its own.
  • WORLD_MAP_METATILE: One 32-pixel metatile of the World Map: its tile and its encounter region; RamMapBlocks holds WORLD_MAP_VIEW_METATILES by WORLD_MAP_VIEW_METATILES of them.
  • WORLD_MAP_OAM: A FIELD_SPR read as its sprite attribute 1, whose top two bits are the sprite size where FIELD_SPR names them its flips.
  • WORLD_MAP_PLACE: A World Map destination, keyed by its number (fdWorldMapMarkPlaceVisited sets FLAG_PLACE_VISITED(place)); fdWorldMapPlacesGetTable returns them, ended by a place 0.
  • 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_STATE: WorldMapStateWork, the map screen's state while it is open: its resources, the cursor and the marker sprites.
  • WORLD_MAP_VIEW: The world map's perspective view, in the map's heap slot: the followed position, screen shake, view position, window, pitch and yaw, a 32 by 32 grid of tile ids and zoom, then the still image's state and the region tint.
  • WORLD_POS: A position on the world map, as its walkability check reads it.