|
Digimon World 3 decomp
The European version, SLES_039.36
|
STDWTITL.PRO: the title screen, the opening movies and a notice screen. More...
Go to the source code of this file.
Data Structures | |
| struct | TitleModeChildren |
| STDWTITL_tickScreen's children. More... | |
| struct | SplashTask |
| Mode 12. More... | |
| struct | DecEnv |
| Movies: PsyQ's STR player. More... | |
| struct | MovieInfo |
| struct | MovieTask |
| struct | MoviePlayerTask |
| struct | TitleLoaderTask |
| The title screen. More... | |
| struct | LogoAnim |
| The logo: sprite 6, and sprites 3 and 5 animated once. More... | |
| struct | LogoTask |
| struct | GlintTask |
| A glint (sprite 4) played once, then sprite 2 lit. More... | |
| struct | SlideTask |
| A part of the title that slides in from a side of the screen. More... | |
| struct | MenuOption |
| "PRESS START", then the two options More... | |
| struct | TitleMenuTask |
| struct | Point |
| struct | EdgeFadeTask |
| The fade out from the screen's edges once an option is chosen. More... | |
| struct | EdgeLine |
| struct | Point16 |
| The background, and its eight looping sprite animations. More... | |
| struct | TitleBackgroundTask |
| struct | TitleChildren |
| struct | TitleTask |
| struct | TitleImages |
| struct | TitleFuncs |
Macros | |
| #define | OVL_NAME(name) STDWTITL_##name |
| The name of this overlay's copy of a function of src/shared/. | |
| #define | STDWTITL_SPLASH_LAYER 0x100 |
| Draw layers of the screens. | |
| #define | STDWTITL_TITLE_LAYER 0x1000 |
| #define | SPLASH_FILE 0x8A6 |
| Entries of the files, read with FILE_CACHE.getEntry: the discs number their files differently. | |
| #define | STDWTITL_FILE_BACKGROUND 0x887 |
| #define | SPLASH_SPRITES (SPLASH_FILE << 16) |
| #define | SPLASH_IMAGES (SPLASH_FILE << 16 | 1) |
| #define | STDWTITL_BACKGROUND(entry) (STDWTITL_FILE_BACKGROUND << 16 | (entry)) |
| #define | STDWTITL_TEXTURE_Y 0x100 |
| The VRAM row of the title's sprites (SpriteDrawer.setTexture) | |
| #define | STDWTITL_TITLE_SOUND_BANK 0x47 |
| Sounds (SOUND.playSound) | |
| #define | STDWTITL_TITLE_MUSIC MUSIC(STDWTITL_TITLE_SOUND_BANK, 0) |
| #define | STDWTITL_SPLASH_MODE 13 |
| The low byte of the game mode that shows the still screen, after the movies'. | |
Functions | |
| void | STDWTITL_tickSplashLoader (Task *task, SplashTask **splash) |
| scene.c | |
| Task * | STDWTITL_startSplashLoaderTask (void) |
| Creates the still screen's loader (task), for STDWTITL_SPLASH_MODE. | |
| void | STDWTITL_tickScreen (Task *task, TitleModeChildren *children) |
| The overlay's main task: by the low byte of the game mode, starts the title screen (0), the still screen (STDWTITL_SPLASH_MODE) or movie n-1 (any other) | |
| void | STDWTITL_drawLogo (LogoTask *task) |
| logo.c | |
| void | STDWTITL_tickLogo (LogoTask *task) |
| The logo's task: waits until shown, plays its two animations once (STDWTITL_logoFrames), then keeps it drawn; with skip it starts complete. | |
| void | STDWTITL_showLogo (LogoTask *task) |
| Starts the logo's animations (the task's show), only while it waits. | |
| LogoTask * | STDWTITL_startLogoTask (s32 skip) |
| Creates the title screen's logo (task); skip: shown complete from the start. | |
| void | STDWTITL_clearVram (void) |
| movie.c | |
| void | STDWTITL_initDecEnv (DecEnv *dec, s16 x0, s16 y0, s16 x1, s16 y1) |
| Sets up the movie decoder: its VLC and slice buffers, and the two places in VRAM (x0, y0 and x1, y1) its frames alternate between. | |
| void | STDWTITL_readStream (CdlLOC *loc) |
| Seeks the CD to loc and starts streaming the movie from there, retrying until it works. | |
| void | STDWTITL_initStream (CdlLOC *loc, void(*callback)()) |
| Resets the MDEC, has callback run for each decoded slice, sets up the ring buffer and starts streaming the movie from loc. | |
| u_long * | STDWTITL_getNextFrame (DecEnv *dec) |
| Waits for the next movie frame in the ring buffer and returns it (NULL if none came); flags the movie's end at its last frame and clears VRAM when the size changes. | |
| s32 | STDWTITL_decodeNextFrame (DecEnv *dec) |
| Takes the next movie frame and decodes its VLC data into the other VLC buffer; -1 if no frame came, 0 otherwise. | |
| void | STDWTITL_onSliceDecoded (void) |
| Called by the MDEC for each decoded slice of a movie frame: copies it to VRAM and decodes the next one, or marks the frame done and switches to the other buffer. | |
| void | STDWTITL_waitFrameDecoded (DecEnv *dec, s32 mode) |
| Waits until the MDEC has decoded the whole frame (switching buffers itself if it takes far too long); mode is not used. | |
| void | STDWTITL_tickMoviePlayer (MoviePlayerTask *task) |
| The movie player's task: allocates its buffers and starts the movie, then shows a frame each update until the movie's last frame or Start; when killed, stops the CD, frees the buffers and clears VRAM. | |
| MoviePlayerTask * | STDWTITL_startMoviePlayerTask (s32 file, u32 endFrame) |
| Creates the movie player (task) for the movie in file, which ends on frame endFrame. | |
| void | STDWTITL_tickMovie (MovieTask *task, MoviePlayerTask **player) |
| A movie's task: picks the movie's file and next mode (the European version's last movie by the language), plays it, then reloads the font and goes on to that mode. | |
| MovieTask * | STDWTITL_startMovieTask (s32 movie) |
| Creates the task that plays STDWTITL_movies[movie]. | |
| void | STDWTITL_drawGlintAlt (GlintTask *task) |
| glint.c | |
| void | STDWTITL_tickGlintAlt (GlintTask *task) |
| The glint's task for the European version's language 0: waits until shown, plays the glint's 12 frames once, then keeps sprite 2 lit; with skip it starts lit. | |
| void | STDWTITL_showGlint (GlintTask *task) |
| Starts the glint (the task's show), only while it waits. | |
| GlintTask * | STDWTITL_startGlintAltTask (s32 skip) |
| Creates the title screen's glint (task) for the European version's language 0. | |
| void | STDWTITL_drawGlint (GlintTask *task) |
| Draws the glint (sprite 4) while it plays, and sprite 2 once lit. | |
| void | STDWTITL_tickGlint (GlintTask *task) |
| The glint's task: waits until shown, plays the glint once (up to its last frame and back), then keeps sprite 2 lit; with skip it starts lit. | |
| GlintTask * | STDWTITL_startGlintTask (s32 skip) |
| Creates the title screen's glint (task); skip: lit from the start. | |
| void | STDWTITL_drawSplash (SplashTask *task) |
| splash.c | |
| void | STDWTITL_tickSplash (SplashTask *task) |
| The still screen's task: fades it in, waits 2 seconds, then for Start or five minutes, fades it out and a second later goes on to MODE_OPENING. | |
| SplashTask * | STDWTITL_startSplashTask (void) |
| Creates the still screen (task) | |
| void | STDWTITL_runTitleLoader (TitleLoaderTask *task, TitleTask **title) |
| title_loader.c | |
| void | STDWTITL_tickTitleLoader (TitleLoaderTask *task, TitleTask **title) |
| The title loader's task: waits for the title's sound bank, loads the title's images, then runs the title screen (STDWTITL_runTitleLoader) | |
| TitleLoaderTask * | STDWTITL_startTitleLoaderTask (void) |
| Creates the title loader (task) and starts loading the title's sound bank. | |
| void | STDWTITL_drawTitle1Alt (SlideTask *task) |
| slides.c | |
| void | STDWTITL_tickTitle1Alt (SlideTask *task) |
| The second part of the title for the European version's language 0: waits until shown, then slides in from the right in 10 steps; with skip it starts in place. | |
| void | STDWTITL_showTitle1 (SlideTask *task) |
| Starts sliding in the second part of the title (the task's show), only while it waits. | |
| SlideTask * | STDWTITL_startTitle1AltTask (s32 skip) |
| Creates the second part of the title (task) for the European version's language 0. | |
| void | STDWTITL_drawTitle1 (SlideTask *task) |
| Draws the second part of the title (sprite 1) | |
| void | STDWTITL_tickTitle1 (SlideTask *task) |
| The second part of the title: waits until shown, then slides in from the right in 10 steps (skip is not used) | |
| SlideTask * | STDWTITL_startTitle1Task (s32 skip) |
| Creates the second part of the title (task) | |
| void | STDWTITL_drawTitle0Alt (SlideTask *task) |
| Draws the first part of the title (sprite 0) for the European version's language 0. | |
| void | STDWTITL_tickTitle0Alt (SlideTask *task) |
| The first part of the title for the European version's language 0: waits until shown, then slides in from the left in 10 steps; with skip it starts in place. | |
| void | STDWTITL_showTitle0 (SlideTask *task) |
| Starts sliding in the first part of the title (the task's show), only while it waits. | |
| SlideTask * | STDWTITL_startTitle0AltTask (s32 skip) |
| Creates the first part of the title (task) for the European version's language 0. | |
| void | STDWTITL_drawTitle0 (SlideTask *task) |
| Draws the first part of the title (sprite 0) | |
| void | STDWTITL_tickTitle0 (SlideTask *task) |
| The first part of the title: waits until shown, then slides in from the left in 10 steps (skip is not used) | |
| SlideTask * | STDWTITL_startTitle0Task (s32 skip) |
| Creates the first part of the title (task) | |
| void | STDWTITL_drawMenu (TitleMenuTask *task) |
| menu.c | |
| void | STDWTITL_tickMenu (TitleMenuTask *task) |
| The menu's task: once shown, waits for Start on "PRESS START" (choice 3 after ten seconds), blinks and spreads out the two options; then moves between new game and continue, and the confirm button blinks the option and sets choice. | |
| void | STDWTITL_showMenu (TitleMenuTask *task) |
| Shows "PRESS START" (the task's show), only while it waits. | |
| void | STDWTITL_resetMenu (TitleMenuTask *task) |
| Back to waiting for Start on "PRESS START" (the task's reset), only while running; nothing in the overlay calls it. | |
| s32 | STDWTITL_getMenuChoice (TitleMenuTask *task) |
| The menu's choice (the task's getChoice): 0 none yet, 1 new game, 2 continue, 3 timed out. | |
| TitleMenuTask * | STDWTITL_startMenuTask (s16 skip) |
| Creates the title screen's menu (task); skip: the two options shown from the start. | |
| s32 | STDWTITL_getEdgeFadeLevel (s32 time) |
| edge_fade.c | |
| void | STDWTITL_drawEdgeFade (s32 level) |
| Darkens the screen by level: four subtractive triangles from its centre to its edges, the edges twice as dark. | |
| void | STDWTITL_startEdgeFade (EdgeFadeTask *task) |
| Starts the fade out from the screen's edges (the task's start) | |
| s32 | STDWTITL_isEdgeFadeDone (EdgeFadeTask *task) |
| 1 once the edge fade has ended (the task's isDone) | |
| void | STDWTITL_tickEdgeFade (EdgeFadeTask *task) |
| The edge fade's task: once started, darkens the screen from its edges over 30 frames and keeps it dark. | |
| EdgeFadeTask * | STDWTITL_startEdgeFadeTask (void) |
| Creates the fade out from the screen's edges (task), once an option is chosen. | |
| s32 | STDWTITL_stepLoopingAnimation (AnimState *anim, AnimFrame *frames, s32 depth) |
| background.c | |
| void | STDWTITL_drawBackground (TitleBackgroundTask *task) |
| Draws the title screen's background, from entries 0-2 of its file. | |
| void | STDWTITL_drawBackgroundSprites (TitleBackgroundTask *task) |
| Steps and draws the background's eight looping sprite animations; the last two at the positions picked for them. | |
| void | STDWTITL_tickBackground (TitleBackgroundTask *task) |
| The background's task: draws the background; once animated, also its eight sprite animations, the last two with a random delay and position. | |
| void | STDWTITL_animateBackground (TitleBackgroundTask *task) |
| Starts the background's sprite animations (the task's animate) | |
| TitleBackgroundTask * | STDWTITL_startBackgroundTask (s32 skip) |
| Creates the title screen's background (task); skip is not used. | |
| s32 | STDWTITL_leaveTitle (TitleTask *task, TitleChildren *children) |
| title.c | |
| s32 | STDWTITL_stepTitle (TitleTask *task, TitleChildren *children) |
| Brings in the titles, the glint, the logo and the menu, then waits for an option; returns 1 once the chosen mode starts. | |
| void | STDWTITL_tickTitle (TitleTask *task, TitleChildren *children) |
| The title screen's task: creates its background, title parts, glint, logo and menu (the Alt ones for the European version's language 0), then runs it until an option is taken or it times out; stops the title music when killed. | |
| TitleTask * | STDWTITL_startTitleTask (TitleLoaderTask *parent) |
| Creates the title screen (task), under its title loader parent. | |
| void | STDWTITL_loadTitleImages (void) |
| Loads the title's images to VRAM: the sprites (by the language in the European version) and the background's four TIM archives. | |
| void | STDWTITL_startFade (PanelAnim *fade, s32 fadeIn) |
| s32 | STDWTITL_updateFade (PanelAnim *fade) |
| void | STDWTITL_startLerp (MenuLerp *lerp, s32 from, s32 to, s32 frames) |
| s32 | STDWTITL_updateLerp (MenuLerp *lerp) |
STDWTITL.PRO: the title screen, the opening movies and a notice screen.
STDWTITL_start looks at the low byte of the game mode:
Definition in file title.h.
| #define OVL_NAME | ( | name | ) | STDWTITL_##name |
| #define STDWTITL_SPLASH_LAYER 0x100 |
| #define SPLASH_FILE 0x8A6 |
| #define SPLASH_SPRITES (SPLASH_FILE << 16) |
| #define SPLASH_IMAGES (SPLASH_FILE << 16 | 1) |
| #define STDWTITL_BACKGROUND | ( | entry | ) | (STDWTITL_FILE_BACKGROUND << 16 | (entry)) |
| #define STDWTITL_TEXTURE_Y 0x100 |
The VRAM row of the title's sprites (SpriteDrawer.setTexture)
| #define STDWTITL_TITLE_SOUND_BANK 0x47 |
| #define STDWTITL_TITLE_MUSIC MUSIC(STDWTITL_TITLE_SOUND_BANK, 0) |
| #define STDWTITL_SPLASH_MODE 13 |
| void STDWTITL_tickSplashLoader | ( | Task * | task, |
| SplashTask ** | splash | ||
| ) |
scene.c
scene.c
Definition at line 8 of file scene.c.
Referenced by STDWTITL_startSplashLoaderTask().
| Task * STDWTITL_startSplashLoaderTask | ( | void | ) |
Creates the still screen's loader (task), for STDWTITL_SPLASH_MODE.
Definition at line 34 of file scene.c.
Referenced by STDWTITL_tickScreen().
| void STDWTITL_tickScreen | ( | Task * | task, |
| TitleModeChildren * | children | ||
| ) |
The overlay's main task: by the low byte of the game mode, starts the title screen (0), the still screen (STDWTITL_SPLASH_MODE) or movie n-1 (any other)
Definition at line 40 of file scene.c.
Referenced by STDWTITL_start().
| void STDWTITL_drawLogo | ( | LogoTask * | task | ) |
Definition at line 7 of file logo.c.
Referenced by STDWTITL_tickLogo().
| void STDWTITL_tickLogo | ( | LogoTask * | task | ) |
The logo's task: waits until shown, plays its two animations once (STDWTITL_logoFrames), then keeps it drawn; with skip it starts complete.
Definition at line 30 of file logo.c.
Referenced by STDWTITL_startLogoTask().
| void STDWTITL_showLogo | ( | LogoTask * | task | ) |
Starts the logo's animations (the task's show), only while it waits.
Definition at line 85 of file logo.c.
Referenced by STDWTITL_startLogoTask().
Creates the title screen's logo (task); skip: shown complete from the start.
Definition at line 92 of file logo.c.
Referenced by STDWTITL_tickTitle().
| void STDWTITL_clearVram | ( | void | ) |
movie.c
movie.c
Definition at line 6 of file movie.c.
Referenced by STDWTITL_getNextFrame(), and STDWTITL_tickMoviePlayer().
Sets up the movie decoder: its VLC and slice buffers, and the two places in VRAM (x0, y0 and x1, y1) its frames alternate between.
Definition at line 14 of file movie.c.
Referenced by STDWTITL_tickMoviePlayer().
| void STDWTITL_readStream | ( | CdlLOC * | loc | ) |
Seeks the CD to loc and starts streaming the movie from there, retrying until it works.
< 0: normal speed 1: double speed
< Normal Streaming
< 0: normal speed 1: double speed
< 0: ADPCM off 1: ADPCM on
< 0: 2048 byte 1: 2340byte
Definition at line 33 of file movie.c.
Referenced by STDWTITL_initStream().
| void STDWTITL_initStream | ( | CdlLOC * | loc, |
| void(*)() | callback | ||
| ) |
Resets the MDEC, has callback run for each decoded slice, sets up the ring buffer and starts streaming the movie from loc.
Definition at line 48 of file movie.c.
Referenced by STDWTITL_tickMoviePlayer().
| u_long * STDWTITL_getNextFrame | ( | DecEnv * | dec | ) |
Waits for the next movie frame in the ring buffer and returns it (NULL if none came); flags the movie's end at its last frame and clears VRAM when the size changes.
Definition at line 58 of file movie.c.
Referenced by STDWTITL_decodeNextFrame().
Takes the next movie frame and decodes its VLC data into the other VLC buffer; -1 if no frame came, 0 otherwise.
Definition at line 85 of file movie.c.
Referenced by STDWTITL_tickMoviePlayer().
| void STDWTITL_onSliceDecoded | ( | void | ) |
Called by the MDEC for each decoded slice of a movie frame: copies it to VRAM and decodes the next one, or marks the frame done and switches to the other buffer.
Definition at line 102 of file movie.c.
Referenced by STDWTITL_tickMoviePlayer().
Waits until the MDEC has decoded the whole frame (switching buffers itself if it takes far too long); mode is not used.
Definition at line 132 of file movie.c.
Referenced by STDWTITL_tickMoviePlayer().
| void STDWTITL_tickMoviePlayer | ( | MoviePlayerTask * | task | ) |
The movie player's task: allocates its buffers and starts the movie, then shows a frame each update until the movie's last frame or Start; when killed, stops the CD, frees the buffers and clears VRAM.
Definition at line 149 of file movie.c.
Referenced by STDWTITL_startMoviePlayerTask().
| MoviePlayerTask * STDWTITL_startMoviePlayerTask | ( | s32 | file, |
| u32 | endFrame | ||
| ) |
Creates the movie player (task) for the movie in file, which ends on frame endFrame.
Definition at line 197 of file movie.c.
Referenced by STDWTITL_tickMovie().
| void STDWTITL_tickMovie | ( | MovieTask * | task, |
| MoviePlayerTask ** | player | ||
| ) |
A movie's task: picks the movie's file and next mode (the European version's last movie by the language), plays it, then reloads the font and goes on to that mode.
Definition at line 207 of file movie.c.
Referenced by STDWTITL_startMovieTask().
Creates the task that plays STDWTITL_movies[movie].
Definition at line 275 of file movie.c.
Referenced by STDWTITL_tickScreen().
| void STDWTITL_drawGlintAlt | ( | GlintTask * | task | ) |
Definition at line 6 of file glint.c.
Referenced by STDWTITL_tickGlintAlt().
| void STDWTITL_tickGlintAlt | ( | GlintTask * | task | ) |
The glint's task for the European version's language 0: waits until shown, plays the glint's 12 frames once, then keeps sprite 2 lit; with skip it starts lit.
Definition at line 25 of file glint.c.
Referenced by STDWTITL_startGlintAltTask().
| void STDWTITL_showGlint | ( | GlintTask * | task | ) |
Starts the glint (the task's show), only while it waits.
Definition at line 68 of file glint.c.
Referenced by STDWTITL_startGlintAltTask(), and STDWTITL_startGlintTask().
Creates the title screen's glint (task) for the European version's language 0.
Definition at line 75 of file glint.c.
Referenced by STDWTITL_tickTitle().
| void STDWTITL_drawGlint | ( | GlintTask * | task | ) |
Draws the glint (sprite 4) while it plays, and sprite 2 once lit.
Definition at line 86 of file glint.c.
Referenced by STDWTITL_tickGlint().
| void STDWTITL_tickGlint | ( | GlintTask * | task | ) |
The glint's task: waits until shown, plays the glint once (up to its last frame and back), then keeps sprite 2 lit; with skip it starts lit.
Definition at line 107 of file glint.c.
Referenced by STDWTITL_startGlintTask().
Creates the title screen's glint (task); skip: lit from the start.
Definition at line 151 of file glint.c.
Referenced by STDWTITL_tickTitle().
| void STDWTITL_drawSplash | ( | SplashTask * | task | ) |
Definition at line 7 of file splash.c.
Referenced by STDWTITL_tickSplash().
| void STDWTITL_tickSplash | ( | SplashTask * | task | ) |
The still screen's task: fades it in, waits 2 seconds, then for Start or five minutes, fades it out and a second later goes on to MODE_OPENING.
< STDWTITL's first movie
Definition at line 45 of file splash.c.
Referenced by STDWTITL_startSplashTask().
| SplashTask * STDWTITL_startSplashTask | ( | void | ) |
Creates the still screen (task)
Definition at line 111 of file splash.c.
Referenced by STDWTITL_tickSplashLoader().
| void STDWTITL_runTitleLoader | ( | TitleLoaderTask * | task, |
| TitleTask ** | title | ||
| ) |
Definition at line 6 of file title_loader.c.
Referenced by STDWTITL_tickTitleLoader().
| void STDWTITL_tickTitleLoader | ( | TitleLoaderTask * | task, |
| TitleTask ** | title | ||
| ) |
The title loader's task: waits for the title's sound bank, loads the title's images, then runs the title screen (STDWTITL_runTitleLoader)
Definition at line 23 of file title_loader.c.
Referenced by STDWTITL_startTitleLoaderTask().
| TitleLoaderTask * STDWTITL_startTitleLoaderTask | ( | void | ) |
Creates the title loader (task) and starts loading the title's sound bank.
Definition at line 42 of file title_loader.c.
Referenced by STDWTITL_tickScreen().
| void STDWTITL_drawTitle1Alt | ( | SlideTask * | task | ) |
Definition at line 6 of file slides.c.
Referenced by STDWTITL_tickTitle1Alt().
| void STDWTITL_tickTitle1Alt | ( | SlideTask * | task | ) |
The second part of the title for the European version's language 0: waits until shown, then slides in from the right in 10 steps; with skip it starts in place.
Definition at line 18 of file slides.c.
Referenced by STDWTITL_startTitle1AltTask().
| void STDWTITL_showTitle1 | ( | SlideTask * | task | ) |
Starts sliding in the second part of the title (the task's show), only while it waits.
Definition at line 61 of file slides.c.
Referenced by STDWTITL_startTitle1AltTask(), and STDWTITL_startTitle1Task().
Creates the second part of the title (task) for the European version's language 0.
Definition at line 68 of file slides.c.
Referenced by STDWTITL_tickTitle().
| void STDWTITL_drawTitle1 | ( | SlideTask * | task | ) |
Draws the second part of the title (sprite 1)
Definition at line 79 of file slides.c.
Referenced by STDWTITL_tickTitle1().
| void STDWTITL_tickTitle1 | ( | SlideTask * | task | ) |
The second part of the title: waits until shown, then slides in from the right in 10 steps (skip is not used)
Definition at line 91 of file slides.c.
Referenced by STDWTITL_startTitle1Task().
Creates the second part of the title (task)
Definition at line 130 of file slides.c.
Referenced by STDWTITL_tickTitle().
| void STDWTITL_drawTitle0Alt | ( | SlideTask * | task | ) |
Draws the first part of the title (sprite 0) for the European version's language 0.
Definition at line 141 of file slides.c.
Referenced by STDWTITL_tickTitle0Alt().
| void STDWTITL_tickTitle0Alt | ( | SlideTask * | task | ) |
The first part of the title for the European version's language 0: waits until shown, then slides in from the left in 10 steps; with skip it starts in place.
Definition at line 153 of file slides.c.
Referenced by STDWTITL_startTitle0AltTask().
| void STDWTITL_showTitle0 | ( | SlideTask * | task | ) |
Starts sliding in the first part of the title (the task's show), only while it waits.
Definition at line 196 of file slides.c.
Referenced by STDWTITL_startTitle0AltTask(), and STDWTITL_startTitle0Task().
Creates the first part of the title (task) for the European version's language 0.
Definition at line 203 of file slides.c.
Referenced by STDWTITL_tickTitle().
| void STDWTITL_drawTitle0 | ( | SlideTask * | task | ) |
Draws the first part of the title (sprite 0)
Definition at line 214 of file slides.c.
Referenced by STDWTITL_tickTitle0().
| void STDWTITL_tickTitle0 | ( | SlideTask * | task | ) |
The first part of the title: waits until shown, then slides in from the left in 10 steps (skip is not used)
Definition at line 226 of file slides.c.
Referenced by STDWTITL_startTitle0Task().
Creates the first part of the title (task)
Definition at line 265 of file slides.c.
Referenced by STDWTITL_tickTitle().
| void STDWTITL_drawMenu | ( | TitleMenuTask * | task | ) |
menu.c
menu.c
Definition at line 14 of file menu.c.
Referenced by STDWTITL_tickMenu().
| void STDWTITL_tickMenu | ( | TitleMenuTask * | task | ) |
The menu's task: once shown, waits for Start on "PRESS START" (choice 3 after ten seconds), blinks and spreads out the two options; then moves between new game and continue, and the confirm button blinks the option and sets choice.
Definition at line 158 of file menu.c.
Referenced by STDWTITL_startMenuTask().
| void STDWTITL_showMenu | ( | TitleMenuTask * | task | ) |
Shows "PRESS START" (the task's show), only while it waits.
Definition at line 185 of file menu.c.
Referenced by STDWTITL_startMenuTask().
| void STDWTITL_resetMenu | ( | TitleMenuTask * | task | ) |
Back to waiting for Start on "PRESS START" (the task's reset), only while running; nothing in the overlay calls it.
Definition at line 193 of file menu.c.
Referenced by STDWTITL_startMenuTask().
| s32 STDWTITL_getMenuChoice | ( | TitleMenuTask * | task | ) |
The menu's choice (the task's getChoice): 0 none yet, 1 new game, 2 continue, 3 timed out.
Definition at line 204 of file menu.c.
Referenced by STDWTITL_startMenuTask().
| TitleMenuTask * STDWTITL_startMenuTask | ( | s16 | skip | ) |
Creates the title screen's menu (task); skip: the two options shown from the start.
Definition at line 209 of file menu.c.
Referenced by STDWTITL_tickTitle().
Definition at line 6 of file edge_fade.c.
Referenced by STDWTITL_tickEdgeFade().
| void STDWTITL_drawEdgeFade | ( | s32 | level | ) |
Darkens the screen by level: four subtractive triangles from its centre to its edges, the edges twice as dark.
Definition at line 15 of file edge_fade.c.
Referenced by STDWTITL_tickEdgeFade().
| void STDWTITL_startEdgeFade | ( | EdgeFadeTask * | task | ) |
Starts the fade out from the screen's edges (the task's start)
Definition at line 50 of file edge_fade.c.
Referenced by STDWTITL_startEdgeFadeTask().
| s32 STDWTITL_isEdgeFadeDone | ( | EdgeFadeTask * | task | ) |
1 once the edge fade has ended (the task's isDone)
Definition at line 57 of file edge_fade.c.
Referenced by STDWTITL_startEdgeFadeTask().
| void STDWTITL_tickEdgeFade | ( | EdgeFadeTask * | task | ) |
The edge fade's task: once started, darkens the screen from its edges over 30 frames and keeps it dark.
Definition at line 63 of file edge_fade.c.
Referenced by STDWTITL_startEdgeFadeTask().
| EdgeFadeTask * STDWTITL_startEdgeFadeTask | ( | void | ) |
Creates the fade out from the screen's edges (task), once an option is chosen.
Definition at line 93 of file edge_fade.c.
Referenced by STDWTITL_stepTitle().
Definition at line 7 of file background.c.
Referenced by STDWTITL_drawBackgroundSprites(), and STDWTITL_stepLoopingAnimation().
| void STDWTITL_drawBackground | ( | TitleBackgroundTask * | task | ) |
Draws the title screen's background, from entries 0-2 of its file.
Definition at line 29 of file background.c.
Referenced by STDWTITL_tickBackground().
| void STDWTITL_drawBackgroundSprites | ( | TitleBackgroundTask * | task | ) |
Steps and draws the background's eight looping sprite animations; the last two at the positions picked for them.
Definition at line 45 of file background.c.
Referenced by STDWTITL_tickBackground().
| void STDWTITL_tickBackground | ( | TitleBackgroundTask * | task | ) |
The background's task: draws the background; once animated, also its eight sprite animations, the last two with a random delay and position.
Definition at line 87 of file background.c.
Referenced by STDWTITL_startBackgroundTask().
| void STDWTITL_animateBackground | ( | TitleBackgroundTask * | task | ) |
Starts the background's sprite animations (the task's animate)
Definition at line 132 of file background.c.
Referenced by STDWTITL_startBackgroundTask().
| TitleBackgroundTask * STDWTITL_startBackgroundTask | ( | s32 | skip | ) |
Creates the title screen's background (task); skip is not used.
Definition at line 139 of file background.c.
Referenced by STDWTITL_tickTitle().
| s32 STDWTITL_leaveTitle | ( | TitleTask * | task, |
| TitleChildren * | children | ||
| ) |
title.c
title.c
< FIELDSTG, where a new game starts
< STGMCARD, to load a game
< STDWTITL's first movie
< STDWTITL's second opening movie: LANGUAGE 0 alternates the two, the others play only it
< STDWTITL's first movie
< STDWTITL's second opening movie: LANGUAGE 0 alternates the two, the others play only it
Definition at line 7 of file title.c.
Referenced by STDWTITL_stepTitle().
| s32 STDWTITL_stepTitle | ( | TitleTask * | task, |
| TitleChildren * | children | ||
| ) |
Brings in the titles, the glint, the logo and the menu, then waits for an option; returns 1 once the chosen mode starts.
Definition at line 52 of file title.c.
Referenced by STDWTITL_tickTitle().
| void STDWTITL_tickTitle | ( | TitleTask * | task, |
| TitleChildren * | children | ||
| ) |
The title screen's task: creates its background, title parts, glint, logo and menu (the Alt ones for the European version's language 0), then runs it until an option is taken or it times out; stops the title music when killed.
Definition at line 131 of file title.c.
Referenced by STDWTITL_startTitleTask().
| TitleTask * STDWTITL_startTitleTask | ( | TitleLoaderTask * | parent | ) |
Creates the title screen (task), under its title loader parent.
Definition at line 174 of file title.c.
Referenced by STDWTITL_runTitleLoader().
| void STDWTITL_loadTitleImages | ( | void | ) |
|
extern |
libcd's flag that StCdInterrupt is pending: libcd sets it as a word, the game reads and clears its low byte
Referenced by STDWTITL_onSliceDecoded().
|
extern |
STDWTITL's data, in its order: data/stdwtitl.c's, data/title.c's and data/movie.c's.
Definition at line 9 of file stdwtitl.c.
Referenced by STDWTITL_tickSplashLoader().
|
extern |
The sprite frames of the logo's two animations; -1 ends each.
Definition at line 12 of file stdwtitl.c.
Referenced by STDWTITL_tickLogo().
|
extern |
Definition at line 17 of file stdwtitl.c.
Referenced by STDWTITL_getNextFrame().
|
extern |
Definition at line 18 of file stdwtitl.c.
Referenced by STDWTITL_getNextFrame().
|
extern |
Definition at line 19 of file stdwtitl.c.
Referenced by STDWTITL_clearVram().
|
extern |
Each movie's file, the frame it ends on and the game mode after it.
Definition at line 22 of file stdwtitl.c.
Referenced by STDWTITL_tickMovie().
|
extern |
Definition at line 43 of file stdwtitl.c.
Referenced by STDWTITL_tickGlintAlt().
|
extern |
Definition at line 44 of file stdwtitl.c.
Referenced by STDWTITL_tickGlint().
|
extern |
Definition at line 48 of file stdwtitl.c.
Referenced by runOptions(), runPressStart(), and STDWTITL_drawMenu().
|
extern |
The menu's sprites (press start, new game, continue) for each language.
Definition at line 51 of file stdwtitl.c.
|
extern |
The screen's edges, from which it fades out.
Definition at line 7 of file title.c.
Referenced by STDWTITL_drawEdgeFade().
|
extern |
Definition at line 12 of file title.c.
Referenced by STDWTITL_drawBackgroundSprites(), and STDWTITL_tickBackground().
|
extern |
Definition at line 16 of file title.c.
Referenced by STDWTITL_drawBackgroundSprites(), and STDWTITL_tickBackground().
|
extern |
Definition at line 21 of file title.c.
Referenced by STDWTITL_drawBackgroundSprites(), and STDWTITL_tickBackground().
|
extern |
Definition at line 29 of file title.c.
Referenced by STDWTITL_drawBackgroundSprites(), and STDWTITL_tickBackground().
|
extern |
Definition at line 38 of file title.c.
Referenced by STDWTITL_drawBackgroundSprites(), and STDWTITL_tickBackground().
|
extern |
Definition at line 48 of file title.c.
Referenced by STDWTITL_drawBackgroundSprites(), and STDWTITL_tickBackground().
|
extern |
Definition at line 54 of file title.c.
Referenced by STDWTITL_drawBackgroundSprites(), and STDWTITL_tickBackground().
|
extern |
Definition at line 59 of file title.c.
Referenced by STDWTITL_drawBackgroundSprites(), and STDWTITL_tickBackground().
|
extern |
Definition at line 65 of file title.c.
Referenced by STDWTITL_tickBackground().
|
extern |
Definition at line 68 of file title.c.
Referenced by STDWTITL_tickBackground().
|
extern |
Definition at line 72 of file title.c.
Referenced by STDWTITL_drawGlint(), STDWTITL_drawGlintAlt(), STDWTITL_drawLogo(), STDWTITL_drawMenu(), STDWTITL_drawTitle0(), STDWTITL_drawTitle0Alt(), STDWTITL_drawTitle1(), STDWTITL_drawTitle1Alt(), and STDWTITL_loadTitleImages().
|
extern |
Definition at line 74 of file title.c.
Referenced by STDWTITL_tickTitleLoader().
|
extern |
The title's TIM archives and sprite banks; the European version picks one by the language.
Definition at line 81 of file title.c.
Referenced by STDWTITL_loadTitleImages().
|
extern |
Definition at line 5 of file movie.c.
Referenced by STDWTITL_onSliceDecoded(), and STDWTITL_tickMoviePlayer().
|
extern |
Definition at line 6 of file movie.c.
Referenced by STDWTITL_initStream(), and STDWTITL_tickMoviePlayer().
|
extern |
Definition at line 7 of file movie.c.
Referenced by STDWTITL_decodeNextFrame(), and STDWTITL_tickMoviePlayer().
|
extern |
Definition at line 8 of file movie.c.
Referenced by STDWTITL_initDecEnv(), and STDWTITL_tickMoviePlayer().
|
extern |
Definition at line 9 of file movie.c.
Referenced by STDWTITL_initDecEnv(), and STDWTITL_tickMoviePlayer().
|
extern |
Definition at line 10 of file movie.c.
Referenced by STDWTITL_initDecEnv(), and STDWTITL_tickMoviePlayer().
|
extern |
Definition at line 11 of file movie.c.
Referenced by STDWTITL_initDecEnv(), and STDWTITL_tickMoviePlayer().
|
extern |
Definition at line 12 of file movie.c.
Referenced by STDWTITL_getNextFrame(), and STDWTITL_tickMoviePlayer().
|
extern |
Definition at line 13 of file movie.c.
Referenced by STDWTITL_startMoviePlayerTask(), and STDWTITL_tickMoviePlayer().
|
extern |
Definition at line 14 of file movie.c.
Referenced by STDWTITL_getNextFrame(), and STDWTITL_startMoviePlayerTask().