src/scene/shared/colosso_lettering.c
The sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): the large lettering a visit opens with, Lend a Hand! for the friends' turns, and for the race The 1st Match (or 2nd or 3rd), 3, 2, 1 and GO; and WIN or LOSE once the match's battle is over.
Included by colosseum_azart_match.c, colosseum_navampa_match.c and colosseum_satrage_match.c.
Macros
| Name | Description | |
|---|---|---|
#define | LETTERING_TITLE_HOLD 15 | The wait in ColossoLetteringTitle while the title stands still in the middle, and the first in ColossoLetteringWin and ColossoLetteringLose, while WIN or LOSE stands: the script entries each match rewrites. |
#define | LETTERING_RESULT_HOLD 13 | |
#define | COLOSSO_START_LETTERING | UB: the result calls scColossoStartLettering through an Sint32 function type, the call the bytes show; UBFIX calls it as declared. |
Functions
| Name | Description | |
|---|---|---|
static void | scColossoStartLettering (Uint32 shape, Uint32 secondHalf) | Starts the lettering event on the picture last loaded, laid out in shape (COLOSSO_LETTERING_SHAPE) and moved by that shape's script; secondHalf picks the second half of the picture: 2 rather than 3, or LOSE rather than WIN. |
static void | scColossoShowOpeningLettering (Sint32 match) | Shows the lettering a visit opens with: Lend a Hand! when match is LETTERING_LEND_A_HAND, or else The 1st Match to The 3rd Match, held for match seconds, and the count of 3, 2, 1 and GO, after which the race music starts. |
static void | scColossoShowMatchResult (Sint32 result) | Shows how a match ended, back in the arena after its battle: WIN, or LOSE in blue, swells over the arena with its jingle, the loser shows an ellipsis, and the screen closes. result is the match's number, 1 to 3, negated when Isaac lost it; the lettering stands a second for each. |
Description
The sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3):
the large lettering a visit opens with, Lend a Hand! for the friends'
turns, and for the race The 1st Match (or 2nd or 3rd), 3, 2, 1 and GO;
and WIN or LOSE once the match's battle is over.
Macros in detail
LETTERING_TITLE_HOLD
#define LETTERING_TITLE_HOLD 15
The wait in ColossoLetteringTitle while the title stands still in the middle,
and the first in ColossoLetteringWin and ColossoLetteringLose, while WIN or
LOSE stands: the script entries each match rewrites.
Referenced by scColossoShowOpeningLettering().
Definition at line 9 of file colosso_lettering.c.
LETTERING_RESULT_HOLD
#define LETTERING_RESULT_HOLD 13
Referenced by scColossoShowMatchResult().
Definition at line 10 of file colosso_lettering.c.
COLOSSO_START_LETTERING
#define COLOSSO_START_LETTERING
UB: the result calls scColossoStartLettering through an Sint32 function type,
the call the bytes show; UBFIX calls it as declared.
Referenced by scColossoShowMatchResult().
Definition at line 109 of file colosso_lettering.c.
Functions in detail
scColossoStartLettering
static void scColossoStartLettering(Uint32 shape, Uint32 secondHalf)
Starts the lettering event on the picture last loaded, laid out in shape
(COLOSSO_LETTERING_SHAPE) and moved by that shape's script; secondHalf picks
the second half of the picture: 2 rather than 3, or LOSE rather than WIN.
References ColossoLetteringDigit, ColossoLetteringGo, ColossoLetteringLose, ColossoLetteringMode, ColossoLetteringMoveDuration, ColossoLetteringMoveTarget, ColossoLetteringParameter, ColossoLetteringPosition, ColossoLetteringScript, ColossoLetteringTimer, ColossoLetteringTitle, ColossoLetteringWin, scColossoUpdateLettering() and sySetTickEvent().
Referenced by scColossoShowOpeningLettering().
Definition at line 15 of file colosso_lettering.c.
scColossoShowOpeningLettering
static void scColossoShowOpeningLettering(Sint32 match)
Shows the lettering a visit opens with: Lend a Hand! when match is
LETTERING_LEND_A_HAND, or else The 1st Match to The 3rd Match, held for
match seconds, and the count of 3, 2, 1 and GO, after which the race music
starts.
References ColossoLetteringTitle, fdScriptEnd(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), gmPlayMusic(), scColossoLoadLettering(), scColossoStartLettering(), Sint32, sySoundGetBGMRestoreDelay(), sySoundPlay() and sySynch().
Referenced by scInit().
Definition at line 56 of file colosso_lettering.c.
scColossoShowMatchResult
static void scColossoShowMatchResult(Sint32 result)
Shows how a match ended, back in the arena after its battle: WIN, or LOSE
in blue, swells over the arena with its jingle, the loser shows an ellipsis,
and the screen closes. result is the match's number, 1 to 3, negated when
Isaac lost it; the lettering stands a second for each.
References ColossoLetteringLose, ColossoLetteringWin, fdActorShowEmote(), fdScriptFinishScreenTransition(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), scColossoLoadLettering(), Sint32, sySoundGetBGMRestoreDelay(), sySoundPlay() and sySynch().
Referenced by scColossoRestoreMatchResult().
Definition at line 118 of file colosso_lettering.c.