Skip to Content
The Alchemy Project

src/scene/staff_credit.c

The staff credits, played over the world map after the farewell at Prox: each entrance is one stretch of the credits. More…

Macros

NameDescription
#defineBEACON_BUFFER_SIZE 24576The beacon's buffer: the glow's or the beams' tiles, then from BEACON_MAPS their maps.
#defineBEACON_MAPS 8192
#defineGLOW_GRID_SIZE 64The glow is drawn as a 64-pixel square, one byte a pixel, in levels of light 1 to 15, each a colour of the picture palette.
#defineGLOW_LEVEL_MAX (PALETTE_COLORS - 1)
#defineGLOW_BLANK_PAIR ((Uint8)PIXELS_4BPP(1))Two pixels of colour 1, the glow's darkest: the tiles' blank rows.
#defineBEAM_LIGHT_PALETTE (PICTURE_PALETTE + 1)The beams' brighter colours, in the palette after the picture's.
#defineBEAM_TILES 256The meeting beams' tiles, loaded from tile 0 of character block 0.
#defineGLOW_CLEARED_TILES 256The picture layer's tiles the glow clears before it is drawn.
#defineBEAM_MEET_OFFSET_X (-50)Where the four beams meet, in pixels from where the last flight ends: the light there stands west and north of it.
#defineBEAM_MEET_OFFSET_Z (-30)
#defineFLIGHT_TURN_STEP (TRIG_TURN / 2048)The camera's turn back each tick of the flight home, and each tick of the flight out until the turn ends.
#defineCREDITS_FROM_PAGE (page) ((page) + 2)mnCreditsRun's mode for the scrolling credits from the given page (mode 1 is the title's slide show).
#defineRING_OAM_SIZE_32X16 2The golden rings' sprite, 32 by 16 pixels: size 2 of OBJ_SHAPE_HORIZONTAL (GBATEK, "LCD OBJ - OAM Attributes").

Enumerations

NameDescription
enumBEACON_STAGE { BEACON_MARS, BEACON_MERCURY, BEACON_VENUS, BEACON_JUPITER, B … }The lighthouses whose beacons the credits fly to, in the order they are shown, and last the four beams meeting over Mt. Aleph.
enumanonymous enum { ACTOR_BEACON }The staff credits' one placed actor, a beacon's glow (SPRITE_MARS_BEACON) placed atop Mars Lighthouse; scStaffCreditShowBeacon puts it out of sight, and in the last stage grows it where the four beams meet.
enumSTAFF_CREDIT_ENTRANCE { STAFF_CREDIT_OPENING, STAFF_CREDIT_TO_BEACONS, STAFF_CREDIT_ … }The staff credits' entrances, each a stretch of the credits: the summit enters the first two, and each beacon's stretch enters the next.
enumanonymous enum { SUMMIT_GOLDEN_SUN_FORMS, SUMMIT_ALEX_TAKES_THE_POWER }The summit's entrances the credits return to (mt_aleph_summit.c): Alex sees the Golden Sun begin to form, and Alex takes the Golden Sun's power.
enumLIGHTHOUSE_VIEW { LIGHTHOUSE_VIEW_VENUS, LIGHTHOUSE_VIEW_JUPITER }The lighthouses scStaffCreditPlayLighthouseTransition can show lit, as world_map.c's own: each the row of WorldMapPalettes its picture takes.

Functions

NameDescription
BSS_DATAALIGNED (4)The blend of one turn of the two maps' alternation in the throne room, a step every four ticks: the first map fades up and down, then the second.
voidscStaffCreditRunCredits (Sint32 mode)Scrolls the credits from the page CREDITS_FROM_PAGE gives (mnCreditsRun, through the overlay's own import row).
const SCENE_ENTRANCE *scGetEntrances (void)Where the party can enter: the cave under the spring has its own entrances.
const SCENE_REGION *scGetExitRegions (void)The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room.
const Uint32 *scGetExits (void)The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN.
const ACTOR_PLACE *scGetActorPlacements (void)The scene's actor placements: a room of names for its entrance, else the debug room's.
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscStaffCreditBlendBeacon (void)Sets the layer blend, switching its alpha every two ticks unless StaffCreditBlendSteady is set.
voidscStaffCreditStepPaletteColors ( Uint16 *colors, Sint32 count, Sint32 red, Sint32 green, Sint32 blue)Adds a red, green and blue step to each colour of a palette, clamped to 0 to 31.
voidscStaffCreditDrawGlowRings (Uint8 *grid, Sint32 count, Sint32 scale)Draws the beacon's glow as rings of light about a corner, brightest at the middle.
voidscStaffCreditShowBeacon (Sint32 stage)Flies the camera to a lit lighthouse and shows its beacon's glow, then flies back; BEACON_BEAMS_MEET is the four beams meeting over Mt. Aleph.
Sint32scInit (void)Chooses where the credits go next by the entrance they were entered from: each beacon's entrance first shows its lighthouse's beacon, the last the beams meeting, and each but the last runs the next stretch of credits.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.
voidscStaffCreditFlashPoweringUp (ACTOR *actor)The ship's flicker and its sparks while it powers up (SHIP_POWERING_UP).
voidscStaffCreditGlowInFlight (ACTOR *actor)The ship's glow and its trail in flight (SHIP_IN_FLIGHT).
voidscActorSetFlightMode (ACTOR *actor, Sint32 mode)Sets the ship's look by flight mode (SHIP_FLIGHT_MODE).
voidscStaffCreditEndFlight (void)Unused: the leader's ship lands, plain again.
voidscStaffCreditUpdateTransitionBlend (void)The copy of the world map's scWorldMapUpdateTransitionBlend, which scStaffCreditPlayLighthouseTransition runs each tick: every other two ticks the blend alternates between two strengths.
voidscStaffCreditPlayLighthouseTransition (Sint32 view)Unused: the copy of the world map's scWorldMapPlayLighthouseTransition, the view of a lighthouse lit, which the credits never call.
voidscStaffCreditFlashWithSparks (ACTOR *actor)Unused: the copy of the world map's scWorldMapFlashWithSparks: the actor flashes white, with a pair of golden rings every sixteenth tick.
voidscActorAnimateAndEmit (ACTOR *actor)Unused: steps an actor's sprite through the six colour swaps, SPRITE_COLOR_NORMAL to SPRITE_COLOR_BRG, one every two ticks, with a pair of golden rings every sixteenth tick.
voidscStaffCreditSpawnGrowingPair (ACTOR *parent)Unused: two golden rings rise from the actor, one growing and one shrinking (actor_grow_up.c and actor_grow_down.c); only the unused routines above call it.

Variables

NameDescription
extern Sint32StaffCreditBeamsLightPalette []The beams' palette when they light up.
Uint16StaffCreditBlendLevelThe beacon light's blend over the map (scStaffCreditBlendBeacon), and whether it has stopped flickering.
Uint16StaffCreditBlendSteady
Uint16StaffCreditTransitionBlendThe lit lighthouse's blend over the map (scStaffCreditUpdateTransitionBlend).
Sint16GaugeShown
Sint16GaugeVram
Sint16GaugeCountdown
Uint32GaugeSprite [3]The Psynergy gauge's sprite, its tiles as drawn, and the pictures they are drawn from (world_map_gauge.c).
Uint8GaugeTiles [8][32]
Uint8GaugeSourceTiles [12][32]
extern Uint8StaffCreditBeaconPalettes []The beacon scene's pictures: the beacons' palettes, the beams' palette, their maps and their tiles.
extern Uint8StaffCreditBeamsPalette []
extern Uint8StaffCreditBeamsMaps []
extern Uint8StaffCreditBeamsTiles []
extern Sint16StaffCreditFlightStarts [][2]Where each beacon flight's camera starts, in pixels (scStaffCreditShowBeacon).
extern Sint16StaffCreditFlightEnds [][2]Where each flight ends, over its lighthouse, in pixels.
extern Sint16StaffCreditFlightReturns [][2]Where the camera flies back to from each beacon, in pixels.
extern Sint32StaffCreditStartZooms []Each flight's zoom as it starts, as a 16.16 ratio.
extern Sint32StaffCreditEndZooms []Each flight's zoom over its beacon, as a 16.16 ratio.
extern Uint8StaffCreditFlightTicks []Each flight's length, in ticks.
extern Uint8StaffCreditFlightTurns []How far the camera's pitch turns on each of a flight's last 64 ticks, read from the second entry on by stage; the first is the beams' flight length.
extern Uint16StaffCreditGlowFadeIn []The beacon glow's blend weights as it fades in.
extern Sint8StaffCreditGlowPositions [][2]The glow layer's scroll as each stage starts, which sets it over its lighthouse.
extern Sint32StaffCreditGlowColorStepThe step through StaffCreditGlowColorModes, every other tick.
Sint32WorldMapSparkScript []
Uint32StaffCreditGlowColorModes []The colour modes the ship's glow steps through, one every other tick.
LATE_DATA SCENE_ENTRANCESceneEntrances []The World Map's entrance table, in a copy of its own: from 7 on each row is the spot by a place where the party comes out onto the World Map, numbered as world_map.c's (scene_exits.h's WORLD_MAP_FROM_* names; 72 is by Jupiter Lighthouse), though a few spots lie some pixels apart from the World Map's, 65 and 68 stand elsewhere, and 98 to 103 the World Map has not.
LATE_DATA Uint32SceneExits []The room has no exits of its own.
LATE_DATA ACTOR_PLACEActorPlacements []The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's.
LATE_DATA CUESceneCues []The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers.
LATE_DATA Sint32WorldMapPlacedActorScript []
LATE_DATASint32The tick counts of the four red moai's streams' cycles (scAquaRockTimeStreams).

Description

The staff credits, played over the world map after the farewell at Prox: each entrance is one stretch of the credits. Between them the camera flies to each of the four lighthouses and shows its beacon's light (scStaffCreditShowBeacon), and last the four beams meet over Mt. Aleph and a light falls from where they meet; then the scene goes on to the summit.

The overlay links the world map's flight, gauge and placed actors as well; what of them the credits never call is marked UNUSED.

Macros in detail

BEACON_BUFFER_SIZE

#define BEACON_BUFFER_SIZE 24576

The beacon's buffer: the glow's or the beams' tiles, then from BEACON_MAPS their maps.

Referenced by scStaffCreditShowBeacon().

Definition at line 26 of file staff_credit.c.

BEACON_MAPS

#define BEACON_MAPS 8192

Referenced by scStaffCreditShowBeacon().

Definition at line 27 of file staff_credit.c.

GLOW_GRID_SIZE

#define GLOW_GRID_SIZE 64

The glow is drawn as a 64-pixel square, one byte a pixel, in levels of light 1 to 15, each a colour of the picture palette.

Referenced by scStaffCreditDrawGlowRings() and scStaffCreditShowBeacon().

Definition at line 30 of file staff_credit.c.

GLOW_LEVEL_MAX

#define GLOW_LEVEL_MAX (PALETTE_COLORS - 1)

Referenced by scStaffCreditDrawGlowRings().

Definition at line 31 of file staff_credit.c.

GLOW_BLANK_PAIR

#define GLOW_BLANK_PAIR ((Uint8)PIXELS_4BPP(1))

Two pixels of colour 1, the glow's darkest: the tiles' blank rows.

Referenced by scStaffCreditShowBeacon().

Definition at line 33 of file staff_credit.c.

BEAM_LIGHT_PALETTE

#define BEAM_LIGHT_PALETTE (PICTURE_PALETTE + 1)

The beams' brighter colours, in the palette after the picture's.

Referenced by scStaffCreditShowBeacon().

Definition at line 35 of file staff_credit.c.

BEAM_TILES

#define BEAM_TILES 256

The meeting beams' tiles, loaded from tile 0 of character block 0.

Referenced by scStaffCreditShowBeacon().

Definition at line 37 of file staff_credit.c.

GLOW_CLEARED_TILES

#define GLOW_CLEARED_TILES 256

The picture layer's tiles the glow clears before it is drawn.

Referenced by scStaffCreditShowBeacon().

Definition at line 39 of file staff_credit.c.

BEAM_MEET_OFFSET_X

#define BEAM_MEET_OFFSET_X (-50)

Where the four beams meet, in pixels from where the last flight ends: the light there stands west and north of it.

Referenced by scStaffCreditShowBeacon().

Definition at line 42 of file staff_credit.c.

BEAM_MEET_OFFSET_Z

#define BEAM_MEET_OFFSET_Z (-30)

Referenced by scStaffCreditShowBeacon().

Definition at line 43 of file staff_credit.c.

FLIGHT_TURN_STEP

#define FLIGHT_TURN_STEP (TRIG_TURN / 2048)

The camera's turn back each tick of the flight home, and each tick of the flight out until the turn ends.

Referenced by scStaffCreditShowBeacon().

Definition at line 46 of file staff_credit.c.

CREDITS_FROM_PAGE

#define CREDITS_FROM_PAGE(page) ((page) + 2)

mnCreditsRun's mode for the scrolling credits from the given page (mode 1 is the title's slide show).

Referenced by scInit().

Definition at line 643 of file staff_credit.c.

RING_OAM_SIZE_32X16

#define RING_OAM_SIZE_32X16 2

The golden rings' sprite, 32 by 16 pixels: size 2 of OBJ_SHAPE_HORIZONTAL (GBATEK, "LCD OBJ - OAM Attributes").

Referenced by scStaffCreditSpawnGrowingPair().

Definition at line 963 of file staff_credit.c.

Enumerations in detail

BEACON_STAGE

enum BEACON_STAGE

The lighthouses whose beacons the credits fly to, in the order they are shown, and last the four beams meeting over Mt. Aleph.

EnumeratorValueDescription
BEACON_MARS
BEACON_MERCURY
BEACON_VENUS
BEACON_JUPITER
BEACON_BEAMS_MEET

Definition at line 218 of file staff_credit.c.

anonymous enum

enum { ACTOR_BEACON }

The staff credits' one placed actor, a beacon's glow (SPRITE_MARS_BEACON) placed atop Mars Lighthouse; scStaffCreditShowBeacon puts it out of sight, and in the last stage grows it where the four beams meet.

EnumeratorValueDescription
ACTOR_BEACONACTOR_FIRST_PLACED

Definition at line 230 of file staff_credit.c.

STAFF_CREDIT_ENTRANCE

enum STAFF_CREDIT_ENTRANCE

The staff credits' entrances, each a stretch of the credits: the summit enters the first two, and each beacon's stretch enters the next.

EnumeratorValueDescription
STAFF_CREDIT_OPENINGThen back to the summit.
STAFF_CREDIT_TO_BEACONSThen on to the beacons.
STAFF_CREDIT_MARS_BEACON
STAFF_CREDIT_MERCURY_BEACON
STAFF_CREDIT_VENUS_BEACON
STAFF_CREDIT_JUPITER_BEACON
STAFF_CREDIT_BEAMS_MEETThe four beams over Mt. Aleph, then the summit.

Definition at line 629 of file staff_credit.c.

anonymous enum

enum { SUMMIT_GOLDEN_SUN_FORMS, SUMMIT_ALEX_TAKES_THE_POWER }

The summit's entrances the credits return to (mt_aleph_summit.c): Alex sees the Golden Sun begin to form, and Alex takes the Golden Sun's power.

EnumeratorValueDescription
SUMMIT_GOLDEN_SUN_FORMS2
SUMMIT_ALEX_TAKES_THE_POWER3

Definition at line 647 of file staff_credit.c.

LIGHTHOUSE_VIEW

enum LIGHTHOUSE_VIEW

The lighthouses scStaffCreditPlayLighthouseTransition can show lit, as world_map.c's own: each the row of WorldMapPalettes its picture takes.

EnumeratorValueDescription
LIGHTHOUSE_VIEW_VENUS1
LIGHTHOUSE_VIEW_JUPITER2

Definition at line 812 of file staff_credit.c.

Functions in detail

scStaffCreditRunCredits

void scStaffCreditRunCredits(Sint32 mode)

Scrolls the credits from the page CREDITS_FROM_PAGE gives (mnCreditsRun, through the overlay's own import row).

Referenced by scInit().

Definition at line 76 of file staff_credit.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 78 of file staff_credit.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 83 of file staff_credit.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 88 of file staff_credit.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ActorPlacements.

Definition at line 93 of file staff_credit.c.

scGetCues

const CUE *scGetCues(void)

References SceneCues.

Definition at line 98 of file staff_credit.c.

scStaffCreditBlendBeacon

void scStaffCreditBlendBeacon(void)

Sets the layer blend, switching its alpha every two ticks unless StaffCreditBlendSteady is set.

References scQueueIOWrite16(), StaffCreditBlendLevel, StaffCreditBlendSteady and TickCount.

Referenced by scStaffCreditShowBeacon().

Definition at line 105 of file staff_credit.c.

scStaffCreditStepPaletteColors

void scStaffCreditStepPaletteColors( Uint16 *colors, Sint32 count, Sint32 red, Sint32 green, Sint32 blue)

Adds a red, green and blue step to each colour of a palette, clamped to 0 to 31.

References Sint32.

Referenced by scStaffCreditShowBeacon().

Definition at line 123 of file staff_credit.c.

scStaffCreditDrawGlowRings

void scStaffCreditDrawGlowRings(Uint8 *grid, Sint32 count, Sint32 scale)

Draws the beacon's glow as rings of light about a corner, brightest at the middle.

References Sint32, syCos() and syWordsFill().

Referenced by scStaffCreditShowBeacon().

Definition at line 152 of file staff_credit.c.

scStaffCreditShowBeacon

void scStaffCreditShowBeacon(Sint32 stage)

Flies the camera to a lit lighthouse and shows its beacon's glow, then flies back; BEACON_BEAMS_MEET is the four beams meeting over Mt. Aleph.

References BgScrollWork, fdActorGetById(), fdActorSetAnimation(), fdActorSetBlendMode(), fdActorSetPosFX(), fdActorSetSpriteFlags(), fdCameraMoveToFX(), fdScriptClearFlag(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), fdWorldMapFreeze(), fdWorldMapReloadPendingAreaGraphics(), fdWorldMapUpdateCurrentTileBlock(), MainRoutineStateWork, scFieldCloseEvent(), scFieldWorldMapStartZoom(), scQueueIOWrite16(), scStaffCreditBlendBeacon(), scStaffCreditDrawGlowRings(), scStaffCreditStepPaletteColors(), Sint32, StaffCreditBeaconPalettes, StaffCreditBeamsLightPalette, StaffCreditBeamsMaps, StaffCreditBeamsPalette, StaffCreditBeamsTiles, StaffCreditBlendLevel, StaffCreditBlendSteady, StaffCreditEndZooms, StaffCreditFlightEnds, StaffCreditFlightReturns, StaffCreditFlightStarts, StaffCreditFlightTicks, StaffCreditFlightTurns, StaffCreditGlowFadeIn, StaffCreditGlowPositions, StaffCreditStartZooms, syDecompressTaggedLZ(), syHeapAllocateEWRAM(), syHeapRelease(), syPrintClear(), sySetEvent(), sySynch() and syWordsClear().

Referenced by scInit().

Definition at line 237 of file staff_credit.c.

scInit

Sint32 scInit(void)

Chooses where the credits go next by the entrance they were entered from: each beacon's entrance first shows its lighthouse's beacon, the last the beams meeting, and each but the last runs the next stretch of credits.

References fdScriptClearFlag(), fdScriptSetDestination(), fdScriptSetFlag(), MainRoutineStateWork, scStaffCreditRunCredits(), scStaffCreditShowBeacon(), scWorldMapStartPlacedActors(), Sint32, syResourceReservedNoOperation() and sySynch().

Definition at line 656 of file staff_credit.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 718 of file staff_credit.c.

scStaffCreditFlashPoweringUp

void scStaffCreditFlashPoweringUp(ACTOR *actor)

The ship's flicker and its sparks while it powers up (SHIP_POWERING_UP).

References fdActorSetSpriteColorMode(), scWorldMapSpawnSparkPair() and TickCount.

Referenced by scActorSetFlightMode().

Definition at line 727 of file staff_credit.c.

scStaffCreditGlowInFlight

void scStaffCreditGlowInFlight(ACTOR *actor)

The ship's glow and its trail in flight (SHIP_IN_FLIGHT).

References fdActorSetSpriteColorMode(), scWorldMapSpawnParticle(), StaffCreditGlowColorModes, StaffCreditGlowColorStep and TickCount.

Referenced by scActorSetFlightMode().

Definition at line 747 of file staff_credit.c.

scActorSetFlightMode

void scActorSetFlightMode(ACTOR *actor, Sint32 mode)

Sets the ship's look by flight mode (SHIP_FLIGHT_MODE).

References fdActorSetSpriteColorMode(), fdScriptPlaySound(), scStaffCreditFlashPoweringUp(), scStaffCreditGlowInFlight() and Sint32.

Referenced by scShipTakeFlight(), scStaffCreditEndFlight() and scWorldMapEndFlight().

Definition at line 762 of file staff_credit.c.

scStaffCreditEndFlight

void scStaffCreditEndFlight(void)

Unused: the leader's ship lands, plain again.

References fdActorGet(), scActorSetFlightMode() and scFieldPartyGetLeaderActor().

Definition at line 784 of file staff_credit.c.

scStaffCreditUpdateTransitionBlend

void scStaffCreditUpdateTransitionBlend(void)

The copy of the world map's scWorldMapUpdateTransitionBlend, which scStaffCreditPlayLighthouseTransition runs each tick: every other two ticks the blend alternates between two strengths.

References scQueueIOWrite16(), StaffCreditTransitionBlend and TickCount.

Referenced by scStaffCreditPlayLighthouseTransition().

Definition at line 792 of file staff_credit.c.

scStaffCreditPlayLighthouseTransition

void scStaffCreditPlayLighthouseTransition(Sint32 view)

Unused: the copy of the world map's scWorldMapPlayLighthouseTransition, the view of a lighthouse lit, which the credits never call.

References fdActorGet(), fdScriptClearFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), fdWorldMapFreeze(), MainRoutineStateWork, scFieldCloseEvent(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scQueueIOWrite16(), scStaffCreditUpdateTransitionBlend(), Sint32, StaffCreditTransitionBlend, syDecompressTaggedLZ(), syHeapAllocateEWRAM(), syHeapRelease(), syPrintClear(), sySetTickEvent(), sySynch(), WorldMapPackedPictures, WorldMapPackedTiles and WorldMapPalettes.

Definition at line 820 of file staff_credit.c.

scStaffCreditFlashWithSparks

void scStaffCreditFlashWithSparks(ACTOR *actor)

Unused: the copy of the world map's scWorldMapFlashWithSparks: the actor flashes white, with a pair of golden rings every sixteenth tick.

References fdActorSetSpriteColorMode(), scStaffCreditSpawnGrowingPair() and TickCount.

Definition at line 928 of file staff_credit.c.

scActorAnimateAndEmit

void scActorAnimateAndEmit(ACTOR *actor)

Unused: steps an actor's sprite through the six colour swaps, SPRITE_COLOR_NORMAL to SPRITE_COLOR_BRG, one every two ticks, with a pair of golden rings every sixteenth tick.

References fdActorSetSpriteColorMode(), scStaffCreditSpawnGrowingPair() and TickCount.

Definition at line 947 of file staff_credit.c.

scStaffCreditSpawnGrowingPair

void scStaffCreditSpawnGrowingPair(ACTOR *parent)

Unused: two golden rings rise from the actor, one growing and one shrinking (actor_grow_up.c and actor_grow_down.c); only the unused routines above call it.

References fdSpriteStartAnimation(), scActorGrowDown(), scActorGrowUp(), scFieldActorCreate(), Sint32, syVRAMCacheFreeEntry() and VramCacheEntries.

Referenced by scActorAnimateAndEmit() and scStaffCreditFlashWithSparks().

Definition at line 968 of file staff_credit.c.

Variables in detail

StaffCreditBeamsLightPalette

extern Sint32 StaffCreditBeamsLightPalette[]

The beams' palette when they light up.

Referenced by scStaffCreditShowBeacon().

Definition at line 49 of file staff_credit.c.

StaffCreditBlendLevel

Uint16 StaffCreditBlendLevel

The beacon light's blend over the map (scStaffCreditBlendBeacon), and whether it has stopped flickering.

Referenced by scStaffCreditBlendBeacon() and scStaffCreditShowBeacon().

Definition at line 53 of file staff_credit.c.

StaffCreditBlendSteady

Uint16 StaffCreditBlendSteady

Referenced by scStaffCreditBlendBeacon() and scStaffCreditShowBeacon().

Definition at line 54 of file staff_credit.c.

StaffCreditTransitionBlend

Uint16 StaffCreditTransitionBlend

The lit lighthouse's blend over the map (scStaffCreditUpdateTransitionBlend).

Referenced by scStaffCreditPlayLighthouseTransition() and scStaffCreditUpdateTransitionBlend().

Definition at line 59 of file staff_credit.c.

GaugeShown

Sint16 GaugeShown

Referenced by scGaugeDraw(), scGaugeEnd() and scGaugeInit().

Definition at line 60 of file staff_credit.c.

GaugeVram

Sint16 GaugeVram

Referenced by scGaugeDraw(), scGaugeEnd(), scGaugeInit() and scGaugeUpdate().

Definition at line 61 of file staff_credit.c.

GaugeCountdown

Sint16 GaugeCountdown

Referenced by scGaugeInit() and scGaugeUpdate().

Definition at line 62 of file staff_credit.c.

GaugeSprite

Uint32 GaugeSprite[3]

The Psynergy gauge's sprite, its tiles as drawn, and the pictures they are drawn from (world_map_gauge.c).

Referenced by scGaugeUpdate().

Definition at line 65 of file staff_credit.c.

GaugeTiles

Uint8 GaugeTiles[8][32]

Referenced by scGaugeDraw().

Definition at line 66 of file staff_credit.c.

GaugeSourceTiles

Uint8 GaugeSourceTiles[12][32]

Referenced by scGaugeDraw(), scGaugeEnd() and scGaugeInit().

Definition at line 67 of file staff_credit.c.

StaffCreditBeaconPalettes

extern Uint8 StaffCreditBeaconPalettes[]

The beacon scene's pictures: the beacons' palettes, the beams' palette, their maps and their tiles.

Referenced by scStaffCreditShowBeacon().

Definition at line 70 of file staff_credit.c.

StaffCreditBeamsPalette

extern Uint8 StaffCreditBeamsPalette[]

Referenced by scStaffCreditShowBeacon().

Definition at line 71 of file staff_credit.c.

StaffCreditBeamsMaps

extern Uint8 StaffCreditBeamsMaps[]

Referenced by scStaffCreditShowBeacon().

Definition at line 72 of file staff_credit.c.

StaffCreditBeamsTiles

extern Uint8 StaffCreditBeamsTiles[]

Referenced by scStaffCreditShowBeacon().

Definition at line 73 of file staff_credit.c.

StaffCreditFlightStarts

extern Sint16 StaffCreditFlightStarts[][2]

LATE_DATA Sint16 StaffCreditFlightStarts[][2]

Where each beacon flight's camera starts, in pixels (scStaffCreditShowBeacon).

Referenced by scStaffCreditShowBeacon().

Definition at lines 204 and 1162 of file staff_credit.c.

StaffCreditFlightEnds

extern Sint16 StaffCreditFlightEnds[][2]

LATE_DATA Sint16 StaffCreditFlightEnds[][2]

Where each flight ends, over its lighthouse, in pixels.

Referenced by scStaffCreditShowBeacon().

Definition at lines 205 and 1167 of file staff_credit.c.

StaffCreditFlightReturns

extern Sint16 StaffCreditFlightReturns[][2]

LATE_DATA Sint16 StaffCreditFlightReturns[][2]

Where the camera flies back to from each beacon, in pixels.

Referenced by scStaffCreditShowBeacon().

Definition at lines 206 and 1172 of file staff_credit.c.

StaffCreditStartZooms

extern Sint32 StaffCreditStartZooms[]

LATE_DATA Sint32 StaffCreditStartZooms[]

Each flight's zoom as it starts, as a 16.16 ratio.

References Sint32.

Referenced by scStaffCreditShowBeacon().

Definition at lines 207 and 1177 of file staff_credit.c.

StaffCreditEndZooms

extern Sint32 StaffCreditEndZooms[]

LATE_DATA Sint32 StaffCreditEndZooms[]

Each flight's zoom over its beacon, as a 16.16 ratio.

References Sint32.

Referenced by scStaffCreditShowBeacon().

Definition at lines 208 and 1183 of file staff_credit.c.

StaffCreditFlightTicks

extern Uint8 StaffCreditFlightTicks[]

LATE_DATA Uint8 StaffCreditFlightTicks[]

Each flight's length, in ticks. The beams' flight, the fifth, reads past the end into StaffCreditFlightTurns' first entry: 107 ticks.

Referenced by scStaffCreditShowBeacon().

Definition at lines 209 and 1190 of file staff_credit.c.

StaffCreditFlightTurns

extern Uint8 StaffCreditFlightTurns[]

LATE_DATA Uint8 StaffCreditFlightTurns[]

How far the camera's pitch turns on each of a flight's last 64 ticks, read from the second entry on by stage; the first is the beams' flight length.

Referenced by scStaffCreditShowBeacon().

Definition at lines 210 and 1196 of file staff_credit.c.

StaffCreditGlowFadeIn

extern Uint16 StaffCreditGlowFadeIn[]

LATE_DATA Uint16 StaffCreditGlowFadeIn[]

The beacon glow's blend weights as it fades in.

Referenced by scStaffCreditShowBeacon().

Definition at lines 211 and 1201 of file staff_credit.c.

StaffCreditGlowPositions

extern Sint8 StaffCreditGlowPositions[][2]

LATE_DATA Sint8 StaffCreditGlowPositions[][2]

The glow layer's scroll as each stage starts, which sets it over its lighthouse.

Referenced by scStaffCreditShowBeacon().

Definition at lines 214 and 1207 of file staff_credit.c.

StaffCreditGlowColorStep

extern Sint32 StaffCreditGlowColorStep

The step through StaffCreditGlowColorModes, every other tick.

Referenced by scStaffCreditGlowInFlight().

Definition at line 744 of file staff_credit.c.

WorldMapSparkScript

Sint32 WorldMapSparkScript[]

References scWorldMapRiseFromAnchor() and Sint32.

Referenced by scWorldMapSpawnSparkPair().

Definition at line 1026 of file staff_credit.c.

StaffCreditGlowColorModes

Uint32 StaffCreditGlowColorModes[]

The colour modes the ship's glow steps through, one every other tick.

Referenced by scStaffCreditGlowInFlight().

Definition at line 1035 of file staff_credit.c.

SceneEntrances

LATE_DATA SCENE_ENTRANCE SceneEntrances[]

The World Map's entrance table, in a copy of its own: from 7 on each row is the spot by a place where the party comes out onto the World Map, numbered as world_map.c's (scene_exits.h's WORLD_MAP_FROM_* names; 72 is by Jupiter Lighthouse), though a few spots lie some pixels apart from the World Map's, 65 and 68 stand elsewhere, and 98 to 103 the World Map has not. The credits are entered only by 0 to 6 (STAFF_CREDIT_ENTRANCE) and by mt_aleph_summit.c's unused skip to 72; nothing enters the rest.

Referenced by scGetEntrances().

Definition at line 1047 of file staff_credit.c.

SceneExits

LATE_DATA Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 1138 of file staff_credit.c.

ActorPlacements

LATE_DATA ACTOR_PLACE ActorPlacements[]

Referenced by scGetActorPlacements().

Definition at line 1142 of file staff_credit.c.

SceneCues

LATE_DATA CUE SceneCues[]

Referenced by scGetCues().

Definition at line 1155 of file staff_credit.c.

WorldMapPlacedActorScript

LATE_DATA Sint32 WorldMapPlacedActorScript[]

References scTileSpriteReset() and Sint32.

Referenced by scWorldMapUpdatePlacedActors().

Definition at line 1216 of file staff_credit.c.

Sint32

LATE_DATA Sint32

Referenced by ActorApproachWatchedScript, ActorCameraScript, ActorFaceWatchedScript, ActorFlyScript, ActorFootprintScript, ActorHoverScript, ActorIdleScript, ActorKeyCheckScript, ActorKeysScript, ActorLaunchScript, ActorOffsetScript, ActorPlacements, ActorPlayerScript, ActorRippleScript, ActorRopeScript, ActorSailOnMapScript, ActorSailScript, ActorSandOnWorldMapScript, ActorSandPuffScript, ActorSandScript, ActorScriptCycleTable, ActorScriptEndScript, ActorScriptIdleScript, ActorSplashScript, ActorStepAngleScript, ActorTightropeScript, ActorWaitScript, ActorWalkingScript, ActorWorldMapScript, AirsRockEntrancePlacements, AirsRockInsideFaceVentsPlacements, AirsRockInsideLeaderLevel, AirsRockInsideOrbitingSparkScript, AirsRockInsidePairedStakesPlacements, AirsRockInsideStampedHeight, AirsRockInsideStampedMetatile, AirsRockInsideStampedWidth, AirsRockInsideStampedX, AirsRockInsideStampedZ, AirsRockInsideTightropesPlacements, AirsRockInsideTurningBridgePlacements, AirsRockInsideWindStonePlacements, AirsRockLeaderLevel, AirsRockRubbleScript, AirsRockWindStoneScript, AlhafraActorPlacementsOnceTheMastIsCleared, AlhafraAlhafranLeadsBehindFelixScript, AlhafraElderStepsBackScript, AlhafranCaveGuardStepsAsideScript, AlhafranCaveIdleEventTick and 4596 more.

Definition at line 1222 of file staff_credit.c.