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
*/
5
void
startTween
(
PanelAnim
*tween,
s32
up) {
6
tween->
active
= 1;
7
if
(up) {
8
SOUND
.
playSound
(
SOUND_MENU_OPEN
);
9
tween->
step
= ONE / tween->
duration
;
10
tween->
level
= 0;
11
}
else
{
12
SOUND
.
playSound
(
SOUND_MENU_CLOSE
);
13
tween->
level
= ONE;
14
tween->
step
= -(ONE / tween->
duration
* 2);
15
}
16
}
s32
signed int s32
Definition
common.h:11
SOUND
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
SOUND_MENU_CLOSE
#define SOUND_MENU_CLOSE
SYSTEM04.
Definition
sound.h:42
SOUND_MENU_OPEN
#define SOUND_MENU_OPEN
SYSTEM03.
Definition
sound.h:41
startTween
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,...
Definition
start_tween.inc.c:5
PanelAnim
Opens or closes a menu panel: level goes 0 -> ONE in duration frames (or back at twice the speed),...
Definition
menu.h:18
PanelAnim::step
s32 step
Definition
menu.h:20
PanelAnim::level
s32 level
Definition
menu.h:21
PanelAnim::active
s32 active
Definition
menu.h:22
PanelAnim::duration
s32 duration
Definition
menu.h:19
SoundState::playSound
short(* playSound)(s32 id)
returns the voice of a key-on
Definition
sound.h:187
src
field
stages
common
start_tween.inc.c
Generated by
1.9.8