Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
startup_screen_fading.c
Go to the documentation of this file.
1#include "common.h"
2
6
12
13b32 startup_fade_screen_in(s16 subtractAlpha) {
14 if (gGameStatusPtr->screenColorA == 0) {
15 return TRUE;
16 }
17
18 gGameStatusPtr->screenColorA -= subtractAlpha;
21 }
22
23 return FALSE;
24}
25
27 if (gGameStatusPtr->screenColorA == 255) {
28 return TRUE;
29 }
30
31 gGameStatusPtr->screenColorA += addAlpha;
32 if (gGameStatusPtr->screenColorA > 255) {
34 }
35
36 return FALSE;
37}
38
s32 b32
@ OVERLAY_SCREEN_COLOR
Definition enums.h:2388
@ SCREEN_LAYER_FRONT
Definition enums.h:2382
void set_screen_overlay_params_front(u8, f32)
void set_screen_overlay_color(s32, u8, u8, u8)
void startup_set_fade_screen_alpha(s16 alpha)
b32 startup_fade_screen_in(s16 subtractAlpha)
void startup_fade_screen_update(void)
void startup_set_fade_screen_color(s16 color)
b32 startup_fade_screen_out(s16 addAlpha)
GameStatus * gGameStatusPtr
Definition main_loop.c:32