9#if VERSION_EU || VERSION_JP
38#elif VERSION_EU || VERSION_JP
46 switch (task->
state) {
58 if (task->
timer >= 2) {
60 if (--task->
fade <= 0) {
67 if (task->
timer >= 120) {
76 if (task->
timer >= 18000) {
82 if (task->
timer >= 2) {
84 if (++task->
fade >= 15) {
91 if (task->
timer >= 60) {
GfxState GFX
GFX: the graphics state and its methods.
GameState GAME
The save data, the game mode and the methods.
#define TASK_INIT
Tasks: every game object is a task, a heap block that starts with this header and is updated once per...
s32 LANGUAGE
The European version's settings, in the small data (.sdata) between file/file_table....
FileCache FILE_CACHE
The file cache.
#define MODE_OPENING
STDWTITL's first movie.
#define PAD_PRESSED(button)
One button of pad 1: newly pressed, auto-repeated while held, or held.
SoundState SOUND
rsin and rcos (libgte) read rsin_tbl[a - 0x800] and the like: their addresses before the table fall i...
SplashTask * STDWTITL_startSplashTask(void)
Creates the still screen (task)
void STDWTITL_tickSplash(SplashTask *task)
The still screen's task: fades it in, waits 2 seconds, then for Start or five minutes,...
void STDWTITL_drawSplash(SplashTask *task)
Draws the still screen at its fade (the European version has a picture for each group of languages)
void initSpriteDrawer(SpriteDrawer *obj)
Clears a sprite drawer to neutral (no scale, gray tint, follows the scroll), gives it its methods and...
void *(* getEntry)(u32 fileAndIndex)
void(* requestMode)(s32 mode, s32 arg)
s32(* getFrameTime)(void)
void(* nextState)(struct SplashTask *task)
s16 fade
sprite frame: 15 is black, 0 fully visible
void(* setSubstate)(struct SplashTask *task, s32 substate)
void(* setState)(struct SplashTask *task, s32 state)
void(* nextSubstate)(struct SplashTask *task)
Draws sprites from a sprite sheet (such as file 0x277, the menu graphics): a sheet has a table of fra...
void(* setLayerId)()
(id, depth)
void(* setClutRow)()
(row)
void(* draw)()
(sheet, frame, x, y)
void(* setTexture)()
(x, y)
void * createTask(void(*update)(), s32 size, s32 childrenSize)
createTaskWithId for a task nothing needs to find
STDWTITL.PRO: the title screen, the opening movies and a notice screen.
#define STDWTITL_SPLASH_LAYER
Draw layers of the screens.