Skip to Content
The Alchemy Project

Structures: C

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

  • CANVAS_SPR_STATE: A field Psynergy's canvas sprite: its effect sprite, the tick it is on and how long it has drawn, and where, how large, at what angle and depth it is drawn.
  • CELL: A map metatile, or a step between metatiles, kept as one 8-byte pair.
  • CHAMPA_CLIFF_CAVES_STATE: The state of the fire over Obaba's forge (heap slot HEAP_SLOT_MENU): the pictures of the glow, a glowing disc, and the column of fire, their sprites at the forge's spot, and their scales, each one's height trailing its width.
  • CHARACTER_DEFINITION: A character's definition: the growth curves of its stats, its element bonus, starting level and starting equipment.
  • CHASE: A point on the screen chasing its target, 16.16 pixels, as fdCameraWorldToScreen gives one: z down the screen.
  • CLASS_ABILITY: An ability a class teaches, and the level it is learned at; The Broken Seal's holds the ability in one byte.
  • CLASS_DEFINITION: A class: its series, the element levels it needs, its stat multipliers and the abilities it teaches.
  • CLOCK_WORK: The offering's countdown clock, MM:SS:T drawn as sprites: the digits that change shrink and grow back each second as it ticks.
  • COMMAND_ROW_AFFINE: The pulsing icon's transform: its scale, 8.8 fixed point, and angle.
  • CONTAINER_ROW: A row of the scene's container table (fdSceneItemGetRows), numbered from actor 64.
  • CORNER: One corner of the plume: signed x, y and depth.
  • CORNER_ROW: Two corners of a row of the strip.
  • COUNTER_BITS: The sparkle's tick counter in ACTOR.sceneByte: bit 0 alternates, the rest picks the colour.
  • CUE: A row of a scene's cue table.
  • CUE_VIEW: A cue as the field reads it while the scene runs: the target is one byte.
  • CURSOR_SPR: A menu cursor's sprite: its render slot link and OAM attributes 0 to 2.
  • CYCLONE_STATE: Cyclone's state (heap slot HEAP_SLOT_BATTLE_EFFECT): the particle burst (PARTICLE_BURST_STATE) at its start (run when kind is nonzero for a nearby kind-1 metatile from fdPsynergyGatherNearbyMetatiles), then the leader's ride on the whirlwind.