Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
start_tween.inc.c
Go to the documentation of this file.
1/*
2 * Starts the menu stage's tween (stageFuncs.start) with its sound: up, from
3 * 0 to ONE over its duration, or down, twice as fast
4 */
5void startTween(PanelAnim *tween, s32 up) {
6 tween->active = 1;
7 if (up) {
9 tween->step = ONE / tween->duration;
10 tween->level = 0;
11 } else {
13 tween->level = ONE;
14 tween->step = -(ONE / tween->duration * 2);
15 }
16}
signed int s32
Definition common.h:11
SoundState SOUND
rsin and rcos (libgte) read rsin_tbl[a - 0x800] and the like: their addresses before the table fall i...
Definition sound.c:180
#define SOUND_MENU_CLOSE
SYSTEM04.
Definition sound.h:42
#define SOUND_MENU_OPEN
SYSTEM03.
Definition sound.h:41
void startTween(PanelAnim *tween, s32 up)
Starts the menu stage's tween (stageFuncs.start) with its sound: up, from 0 to ONE over its duration,...
Opens or closes a menu panel: level goes 0 -> ONE in duration frames (or back at twice the speed),...
Definition menu.h:18
s32 step
Definition menu.h:20
s32 level
Definition menu.h:21
s32 active
Definition menu.h:22
s32 duration
Definition menu.h:19
short(* playSound)(s32 id)
returns the voice of a key-on
Definition sound.h:187