Skip to Content
The Alchemy Project

Structures: S

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

  • SAND_STATE: Sand's state (heap slot HEAP_SLOT_BATTLE_EFFECT): the leader's picture and the copy it sinks into the ground, the grains of sand thrown up round it and the sprite the sinking leader is drawn with.
  • SAVED_BATTLE_OBJECT: What btMotionCallBeast saves of the battle object a called beast borrows, for btMotionDismissBeast to put back.
  • SAVED_COL: The 14 colours of BG palette 3 (entries 1 to 14) that the fade returns to, copied from palette RAM by scInit and rotated by scSeaOfTimeAnimateSea in step with BG palette entries 49 to 62.
  • SCALE: A sprite's scale across and down, 16.16, as an effect keeps it in a local (SPR_SCALE is the same pair as a union with an array).
  • SCATTER_STATE: The scatter's state (heap slot HEAP_SLOT_BATTLE_EFFECT): its tiles, 64 sprites and particles, the actor it scatters from, and its stage.
  • SCENE: A scene's row in ScenesWork: its overlay's resource, its area, its scene type, its map and its attributes.
  • SCENE_ENCOUNTER_RULE: A row of the scenes' encounter rules (SceneEncounterRules): a scene and entrance and, while a flag is clear, the encounter zones of its two kinds of ground.
  • SCENE_ENTRANCE: Where the party arrives by one of a scene's entrances, which way the leader faces, and the camera's bounds there.
  • SCENE_ENTRY_TABLE: The table a scene overlay starts with (OverlayArea): a stub word and an entry point for each of its tables.
  • SCENE_REGION: A scene's exit region: the box that, while its condition holds, takes the party leader out through the exit whose number is its value (fdCheckExitRegions).
  • SCENE_STATE: The channel puzzle's state: its grid of pieces, laid from a random seed, and the blocks and arrows drawn over it.
  • SCENE_STATE: The swamp's state outside: where Felix stands, how deep he has sunk (MUD_DEPTH_ROW to a row of the sprite) and the middle of the last firm metatile he stood on.
  • SCOOP_STATE: Scoop's state (heap slot HEAP_SLOT_BATTLE_EFFECT): the dust and sparkle tiles, the picture that ripples as the ground is dug, 64 particles, the sprite that digs and the one left where it dug, and the stage of the cast.
  • SCREEN_POINT: A point projected onto the screen, with its depth.
  • SCREEN_TRANSITION_DISSOLVE_STATE: The screen transition state as the dissolve reads it: the solid tile as bytes, two 4-bit pixels to a byte, so that it can set one pixel at a time.
  • SCREEN_TRANSITION_STATE: The screen transition state: two pages of window edges for every line, the dissolve's solid tile, and the transition's mode and progress.
  • SCRIPT_LINE: A script's message counter, read as a word or as its halfword (Gabomba Catacombs' centred lines).
  • SCRIPT_OPERANDS: ACTOR as the actor script's SC_SET, SC_ADD and SC_CMP commands reach it, every field a plain number (ACTOR_SCRIPT_VALUE numbers them).
  • SELECTION_MENU_STATE: The selection screen (HEAP_SLOT_SELECTION_MENU): the row of icons the player picks from, with arrows at each end and a pointing hand over the chosen target.
  • SELECTION_NODE: An icon of the selection screen: its list links, the entry it shows, its place and its slide toward a target, its zoom and its sprite.
  • SELECTION_SPR: A selection screen sprite: a list link and its OAM attributes.
  • SERIAL_HALFWORD: A halfword in a record of its own, which sySerialStepBlockTransfer keeps its constant 1 in.
  • SERIAL_PACKET: The serial group.
  • SERIAL_STATE: The link cable's runtime: its mode and phase, the consoles heard from, the send position and the packet buffers the interrupt handler fills.
  • SERIAL_TRANSFER_STATE: A console's block transfer state, exchanged with the partner each VBlank: its block number, its status and flags, and a 20-byte block.
  • SETTINGS_MENU_STATE: The settings menu's state (HEAP_SLOT_SETTINGS_MENU): the settings being edited and how many values each takes, the row the cursor is on, and the cursor, markers and icons.
  • SETTLEMENTS_VECTOR: Three 16.16 fixed-point components.
  • SEVEN_WIDTHS: The seven widths a widening pillar takes.
  • SHAPE_METATILE: A metatile of the map's shape grid: one byte, the tag of the metatile's collision shape.
  • SHEARS: The shears, in the state's first particle: roll is its z, snip its velocityZ and timer its variant.
  • SHOP_STATE: The shop's state (heap slot 220, the menus' state), as The Broken Seal's SHOP_STATE, its lists longer here: the windows, the party row, the stock, the hand cursor and its icons, what the player chose, the sanctum service's particles and the item icon grid.
  • SHRINE_OF_THE_SEA_GOD_SPOT: A footprint of the Shrine of the Sea God (ShrineOfTheSeaGodFootprintsTable): where it lies in 16.16 pixels, its scale and its turn.
  • SNAPSHOT: What btScriptedBattleSaveUnits keeps of the five units of the scripted battles between them: whether each was listed, the first three's summon boosts, each one's statuses and the last two's HP and PP.
  • SNAPSHOT_COPY: A unit's 25 status bytes, from its curse to its challenge, kept between the scripted battles.
  • SNAPSHOT_VITALS: A unit's HP and PP as btScriptedBattleSaveUnits keeps them.
  • SOLID_FACE: A triangle of the model: where its three corners start in the vertex buffer (in words) and its colour.
  • SONG_RUNNER_STATE: A song game runner's ACTOR fields of the same names, kept while the game waits between songs.
  • SOUND_TEST_SOUNDS: The three sounds the sound test's selectors start on.
  • SOUND_TEST_VALUES: The sound test's four values: music, jingle, sound effect and sound preset.
  • SoundVBlankState: How the tick wait and the VBlank handler share the sound driver's update, so that it runs once a VBlank, from whichever reaches it first.
  • SPARK: One of the star field's sparks, drawn inward to the centre.
  • SPARK: A spark sent spiralling in to a Djinni's plate, as an actor's motion fields hold it: the plate it closes on (originX, originZ), the radius, angle and spin of its spiral, and its height, which drops by fall each step.
  • SPARK: One spark of the ring: its sideways and upward swing, in pixels, and its age along the way from one end to the other; it is drawn only while its age runs from 0 to its duration.
  • SPARK_MOTION: How each element card's sparks move (ElementCardsSparkMotions).
  • SPARK_OAM: The sprite words as one stored pair, or the attributes field by field.
  • SPARK_ORBITER: A spark circling Jenna as she learns Blaze, as its script reads the actor: its place, the radius it circles at, the steps it has left, its angle and speed, and the actor it circles.
  • SPARK_RING_STATE: The spark ring in its heap slot: the orbs' pictures, the sparks and their sprites, the ring's two ends and its VRAM entry.
  • SPARK_STATE: A spark of Venus Lighthouse's entrance: its position and velocity in 16.16 pixels, and its tick.
  • SPARKLE_PICTURE: One step of a sparkle's rise (FieldEffectSparklePictures): its height above its spot in screen pixels, and its tile.
  • SPARKLE_STATE: The sparkle over an object: its two pairs of sprites, how far each pair has risen (from 0 to RING_CLIMB - 1; RING_NOT_STARTED before it starts) and the pair to start next.
  • SPAWN_ACTOR: An actor's home, as an actor placement sets it (ACTOR.homeX and homeZ).
  • SPEAKER_DEFINITION: A row of SpeakerDefinitions: a sprite's voice and the lines it says while Halted.
  • SPLASH: A splash the streams leave on an open metatile, and its sprite's attributes.
  • SPOT: A place on the Sea of Time's lap, in 16.16 pixels.
  • SPOTS: The six places of the Sea of Time's lap where spray rises once the lap has been run more than three times.
  • SPR: An animated sprite: its image, scale, rotation, size, its shadow and up to four sprite animations.
  • SPR_ANIMATION: One animation layer of a sprite: its animation id, pictures, running script and timer.
  • SPR_ATTR: A sprite's first ten bytes, its attribute 2 fields after eight others.
  • SPR_ATTR2_HIGH: A field sprite's byte 9: the top of its first tile and its priority (OAM attribute 2), read as bit-fields.
  • SPR_LAYER_VIEW: A sprite (SPR) whose image priority, its layer, is copied a byte at a time, under SPR's names: a wading splash's.
  • SPR_PICTURE_CACHE: A sprite picture cache: the tag of the animation loaded into it (slot number and animation id) and the buffer holding its pictures.
  • SPR_PICTURE_CACHE_SOURCE: A row of SpritePictureCacheSources: the packed resource that holds an animation number's pictures, which fdSpritePictureCacheLoad decodes into a sprite picture cache; a number of 0 ends the table.
  • SPR_PLACEMENT: A sprite's screen position and its two vertical offsets, in 16.16 pixels.
  • SPR_SCALE: Horizontal and vertical sprite scale; toFIXED(1) is the original size.
  • SPR_VIEW: A sprite as the depth queue takes it (QUEUED_SPR), its affine mode and matrix written as bytes.
  • SPR_VIEWER_LAYER: One sprite animation the sprite viewer edits.
  • SPR_WORDS: A SPR as btEffectSpriteCreateWithTiles searches and fills it: its OAM attributes and its shadow's written as words.
  • SPRING_OBSTACLE: One of the spring's moving obstacles: its position and heading, and the timers its motion and its hits keep.
  • SPRING_TOSS_MOTION: Lemuria spring's toss (LemuriaSpringToss): the tick the coin is let go, its trail of positions and its shadow, its velocity, and the ticks the spring still draws it in.
  • STAR_FIELD_STATE: The star field's state, for the 45 ticks of a cast's glow.
  • STAT_CURSOR: The Status screen's cursor: its place in each group, the help entry it shows and where it points.
  • STAT_STATE: The running totals gmUnitCalculate builds a unit's stats in.
  • STATUS_SCREEN_STATE: The state of the party member chooser and the Status menu (HEAP_SLOT_MENU), which each takes as it opens and frees before it returns.
  • STREAK_POINT: A point of a streak: x, y and z.
  • STREAM_HEAD: The head of one of the two streams a Water Stone sends: its place and the way it runs, in quarter turns from east.
  • STREAM_STATE: The streams and their splashes, which scAquaRockInsideDrawSplashes draws.
  • STRIKE_ROCKET: The rocket's display fields that the strike sets: a SPR from its rotation on.
  • STRIP_QUAD: One quad of a vertex strip: its upper and lower triangles.
  • STRIP_VERTEX: A strip's vertex, as btRenderTransformVertices reads it.
  • STUB: The stub group.
  • SUMMARY_OAM: A sprite as the summary screen queues it (syOAMAddSpriteAtDepth): the depth queue's link, then its OAM attributes as words or as fields.
  • SUMMARY_POINT: Where the Status screen's cursor points, in pixels.
  • SUMMON_DEFINITION: A summon: its name and the Djinn of each element it needs.
  • SUMMON_TABLET_STATE: The summon tablet's state (heap slot battleEffect): the decoded pictures, the pebbles and runes that fly between the tablet and the leader, and the circle the runes gather on.
  • SWAY_STATE: The platforms' sway (scGaiaRockInsideSwayPlatforms).
  • SYSTEM_STUB_TABLE: The start of the system module's stub table, as far as syCos.