SSBM Decomp
Loading...
Searching...
No Matches
lbbgflash.c File Reference

Background flash effects for dramatic game events. More...

Data Structures

struct  BgFlashState
struct  BgFlashData

Functions

void fn_8001FC08 (void)
void fn_8001FEC4 (HSD_GObj *gobj, s32 code)
void fn_800204C8 (void)
void lbBgFlash_800205F0 (s32 duration)
 Trigger background flash.
void lbBgFlash_8002063C (int count)
 Trigger background flash.
void lbBgFlash_80020688 (int count)
void lbBgFlash_800206D4 (GXColor *col1, GXColor *col2, int arg2)
void lbBgFlash_InitState (GXColor *color)
void fn_800208B0 (u8 arg0)
void lbBgFlash_800208EC (int arg0)
void lbBgFlash_800209F4 (void)

Variables

BgFlashData lbl_80433658
static GXColor lbl_804D3840 = { 0, 0, 0, 255 }
static GXColor lbl_804D3844 = { 0, 0, 0, 0 }
static GXColor lbl_804D3848 = { 255, 255, 255, 255 }
static GXColor lbl_804D384C = { 0, 0, 0, 0 }
static HSD_WObjDesc lbl_803BB000
static HSD_WObjDesc lbl_803BB014
HSD_CameraDescPerspective lbl_803BB028

Detailed Description

Background flash effects for dramatic game events.

Provides full-screen color overlay flashes triggered by various game events. Called from game mode code (gmallstar.c, gmregclear.c, gm_1A7A.c, etc).

Function Documentation

◆ fn_8001FC08()

void fn_8001FC08 ( void )

◆ fn_8001FEC4()

void fn_8001FEC4 ( HSD_GObj * gobj,
s32 code )
Todo
.sdata2 order hack: the signed int-to-float conversion constant, with no signed conversion left in the TU to allocate it.

◆ fn_800204C8()

void fn_800204C8 ( void )

◆ lbBgFlash_800205F0()

void lbBgFlash_800205F0 ( s32 duration)

Trigger background flash.

Parameters
durationFlash duration in frames (minimum 1).

◆ lbBgFlash_8002063C()

void lbBgFlash_8002063C ( int count)

Trigger background flash.

Parameters
countFlash duration in frames (minimum 1).

◆ lbBgFlash_80020688()

void lbBgFlash_80020688 ( int count)

◆ lbBgFlash_800206D4()

void lbBgFlash_800206D4 ( GXColor * col1,
GXColor * col2,
int arg2 )

◆ lbBgFlash_InitState()

void lbBgFlash_InitState ( GXColor * color)

◆ fn_800208B0()

void fn_800208B0 ( u8 arg0)

◆ lbBgFlash_800208EC()

void lbBgFlash_800208EC ( int arg0)

◆ lbBgFlash_800209F4()

void lbBgFlash_800209F4 ( void )

Variable Documentation

◆ lbl_80433658

BgFlashData lbl_80433658

◆ lbl_804D3840

GXColor lbl_804D3840 = { 0, 0, 0, 255 }
static

◆ lbl_804D3844

GXColor lbl_804D3844 = { 0, 0, 0, 0 }
static

◆ lbl_804D3848

GXColor lbl_804D3848 = { 255, 255, 255, 255 }
static

◆ lbl_804D384C

GXColor lbl_804D384C = { 0, 0, 0, 0 }
static

◆ lbl_803BB000

HSD_WObjDesc lbl_803BB000
static
Initial value:
= {
{ 320.0f, -240.0f, 415.69220f },
}
#define NULL
Definition stddef.h:14

◆ lbl_803BB014

HSD_WObjDesc lbl_803BB014
static
Initial value:
= {
{ 320.0f, -240.0f, 0.0f },
}

◆ lbl_803BB028

Initial value:
= {
0,
{ 0, 640, 0, 480 },
{ 0, 640, 0, 480 },
0.0f,
0.1f,
30000.0f,
60.0f,
1.3333333f,
}
#define PROJ_PERSPECTIVE
Definition cobj.h:12
static HSD_WObjDesc lbl_803BB014
Definition lbbgflash.c:60
static HSD_WObjDesc lbl_803BB000
Definition lbbgflash.c:55