Skip to Content
The Alchemy Project

Structures: M

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

  • MAGMA_ROCK_CRUMBLING_PILLAR: A crumbling pillar of Magma Rock (scMagmaRockCrumblePillar): its actor and its flag.
  • MAIN_ROUTINE_STATE: The game's blocks the system library's RAM holds, complete here so that each variable globals.h declares has its whole type.
  • MAP_ANIMATION: One of a map's 16 tile animations (fdTilesetAnimationStartAll): the start of its script, where it is, the ticks left before its next step, and whether it is paused.
  • MAP_BITS: The map state (MAP_STATE) with its ground marks as bit-fields, for rooms that set the kind of wading.
  • MAP_BOUNDS: A map's view bounds, in 8-pixel units.
  • MAP_EDIT: A map edit, such as a door opening: its steps and the metatile they are copied to (fdMapGridPlayMapEdit, which blocks until the last).
  • MAP_EDIT_STEP: One step of a map edit: the rectangle of metatiles to copy from and the wait after it.
  • MAP_GRID_TILE_POS: A map layer's scroll position in whole 16-pixel metatiles.
  • MAP_GROUND_EFFECTS: MAP_STATE.groundEffects read as its bit-fields: the footprints, and the kind of wading (1 in rooms with a second level).
  • MAP_HEADER: A layout's header: the camera's bounds, the layers' priorities, tile bases and setup, and the offsets, from the header's start, of its packed metatile tiles, collision, metatiles, shapes, tileset animation, blend script and script.
  • MAP_HEADER_LAYER: One background layer's setup in a layout's header: its origin, its parallax and drift, and where it wraps.
  • MAP_LAYER: One background layer of the field map: its scroll position, origin, parallax against the view, drift and wrap, and its window of metatiles.
  • MAP_METATILE: One metatile of a map layer: its metatile tiles and flags, its collision code and a second attribute byte.
  • MAP_MUSIC_RULE: A rule choosing a scene's field music, ended by id -1: a scene or an area (byScene), an entrance (-1 for any), a flag that must be set (-1 for none) and the music.
  • MAP_REGION: A box of the map in whole metatiles (16.16 when compared) and the value it selects while its condition holds; a row with minX -1 ends the list.
  • MAP_RESOURCES: A row of MapsWork: a layout's resources, each counted from ResourceIdEmptyMap.
  • MAP_STATE: The map grid's state (heap slot HEAP_SLOT_MAP_GRID): the point the view follows, the screen shake, the tile animations and blend script, and the view.
  • MAP_STATE_GROUND_EFFECTS: The map state as the two water rooms write it: MAP_STATE.groundEffects as its two fields, the footprints and the kind of wading, which they set to 1.
  • MAP_STATE_GROUND_EFFECTS: MAP_STATE as far as groundEffects, read through its bits.
  • MAP_VIEW_STATE: A view of the map state as the screen transitions read it: the display control bits, the window edges and interrupt lines of a transition, and the map's resources.
  • MARS_LIGHTHOUSE_AERIE_SPR: A field sprite (FIELD_SPR) read a byte at a time, as the aerie's flames take the beacon fire's priority and the Mars Star's sprite its colours and the star's icon.
  • MENU_CURSOR: Cursor that approaches its target, shared by shops, the name entry screen and the settings menu.
  • MENU_CURSOR_REF: A menu cursor: its window sprite, or the cursor that approaches its target.
  • MENU_POINT: A point on the screen, in pixels.
  • MENU_SPR: A menu sprite: a list link and its OAM attributes, as two words or as fields.
  • MESH_POLYGON: One mesh face: its three corners as word offsets into the vertex buffer (vertex index * 3), padded to an effect step's 28 bytes.
  • MESH_TRIANGLE: A mesh triangle: its three vertex numbers and the texture coordinates of each corner.
  • MESH_VERTEX: A corner of a strip as an effect builds it, in signed bytes: the smoke band of Catastrophe's last act, Haures's bands.
  • MESSAGE: A message, one of the three in WIN_STATE.msgs, which types decoded text into a window a few characters a tick and runs its control codes. spacing[] holds each line's extra advance in 1/256 pixels: after every character in Japanese, after a space in the other editions except German, which takes none.
  • METATILE_MARKER: A marker drawn over a metatile of the spring: its place, the height it rests at, its kind (the metatile's collision code less METATILE_BEHAVIOR_SPRING), its state and its sprite's attributes.
  • METATILE_MARKER_SET: scApojiiIslandsDrawMetatileMarkers's table: the markers' VRAM cache entry and the markers.
  • METATILE_POINT: A map grid metatile, its column and row.
  • METATILE_TARGET: A map's watched metatiles and the sprite drawn over the current one.
  • METATILE_TARGET_ENTRY: One watched metatile, in map metatiles.
  • METEOR_STAR: One star of the sky the meteor flies through: a point on a sphere and the picture it is drawn with, or METEOR_BLOW_PIXEL_STAR.
  • MIND_READ_STATE: Mind Read's wave (heap slot HEAP_SLOT_MIND_READ): each scanline's BG0 scroll on two pages, the hue it tints the screen with, its caster and target, and its delay and particle cycle.
  • MODEL_TEXTURE: A texture for the ARM model renderer: its size as powers of two and the address of its pixels.
  • MODEL_VERTEX: A corner of a model, as btRenderTransformVertices and btRenderProjectVertices read it: signed whole pixels, padded to a word.
  • MOTION_OBJECT: An effect object that moves and draws one sprite: its position, scale, velocity and target, and its per-tick update.
  • MOUND_VERTEX: Two corners of the mound: its upper edge, then its lower.