Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
background.c File Reference

The title screen's background, and its eight looping sprite animations. More...

#include "menus/title.h"
Include dependency graph for background.c:

Go to the source code of this file.

Functions

s32 STDWTITL_stepLoopingAnimation (AnimState *anim, AnimFrame *frames, s32 depth)
 Steps one of the background's looping animations by a frame and returns its sprite frame (300: nothing drawn); callers pass depth 0, it recurses past entries already over.
 
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.
 

Detailed Description

The title screen's background, and its eight looping sprite animations.

Definition in file background.c.

Function Documentation

◆ STDWTITL_stepLoopingAnimation()

s32 STDWTITL_stepLoopingAnimation ( AnimState *  anim,
AnimFrame *  frames,
s32  depth 
)

Steps one of the background's looping animations by a frame and returns its sprite frame (300: nothing drawn); callers pass depth 0, it recurses past entries already over.

background.c

Definition at line 7 of file background.c.

Referenced by STDWTITL_drawBackgroundSprites(), and STDWTITL_stepLoopingAnimation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STDWTITL_drawBackground()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STDWTITL_drawBackgroundSprites()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STDWTITL_animateBackground()

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().

Here is the caller graph for this function:

◆ 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().

Here is the call graph for this function:
Here is the caller graph for this function: