PAlib
Functions
Background Transition Effects

Functions

void PA_InitBgTransEx (u8 screen, u8 bg)
 Init the BgTransition System.
 
static void PA_InitBgTrans (u8 screen)
 Init the BgTransition System. USES BG0 !! Place your sprite at a priority of 1 or more if you want them to disappear...
 
void PA_BgTransUpDown (u8 screen, u16 type, u8 vflip, s16 state)
 Up/Down swipping transition effect.
 
void PA_BgTransLeftRight (u8 screen, u16 type, u8 hflip, s16 state)
 Left/Right swipping transition effect.
 
void PA_BgTransDiag (u8 screen, u16 type, u8 hflip, u8 vflip, s16 state)
 Diagonal swipping transition effect.
 
void PA_BgTransCenter (u8 screen, u16 type, u8 invert, s16 state)
 Center transition effect.
 

Detailed Description

All the different transition effects...

Function Documentation

◆ PA_InitBgTransEx()

void PA_InitBgTransEx ( u8  screen,
u8  bg 
)

Init the BgTransition System.

Parameters
screenChose de screen (0 or 1)
bgBackground (0-3)

◆ PA_InitBgTrans()

static inline void PA_InitBgTrans ( u8  screen)
inlinestatic

Init the BgTransition System. USES BG0 !! Place your sprite at a priority of 1 or more if you want them to disappear...

Parameters
screenChose de screen (0 or 1)

◆ PA_BgTransUpDown()

void PA_BgTransUpDown ( u8  screen,
u16  type,
u8  vflip,
s16  state 
)

Up/Down swipping transition effect.

Parameters
screenChose de screen (0 or 1)
typeBgTrans type... (0-4). Use macros TRANS_ROUND, TRANS_DIAMOND , TRANS_CROSS, TRANS_LINES, or TRANS_STAR
vflipVertical flip...
stateState, from 0 to TRANS_LENGTH. 0 being visible, TRANS_LENGTH invisible

◆ PA_BgTransLeftRight()

void PA_BgTransLeftRight ( u8  screen,
u16  type,
u8  hflip,
s16  state 
)

Left/Right swipping transition effect.

Parameters
screenChose de screen (0 or 1)
typeBgTrans type... (0-4). Use macros TRANS_ROUND, TRANS_DIAMOND , TRANS_CROSS, TRANS_LINES, or TRANS_STAR
hflipHorizontal flip...
stateState, from 0 to TRANS_LENGTH. 0 being visible, TRANS_LENGTH invisible

◆ PA_BgTransDiag()

void PA_BgTransDiag ( u8  screen,
u16  type,
u8  hflip,
u8  vflip,
s16  state 
)

Diagonal swipping transition effect.

Parameters
screenChose de screen (0 or 1)
typeBgTrans type... (0-4). Use macros TRANS_ROUND, TRANS_DIAMOND , TRANS_CROSS, TRANS_LINES, or TRANS_STAR
hflipHorizontal flip...
vflipVertical flip...
stateState, from 0 to TRANS_LENGTH. 0 being visible, TRANS_LENGTH invisible

◆ PA_BgTransCenter()

void PA_BgTransCenter ( u8  screen,
u16  type,
u8  invert,
s16  state 
)

Center transition effect.

Parameters
screenChose de screen (0 or 1)
typeBgTrans type... (0-4). Use macros TRANS_ROUND, TRANS_DIAMOND , TRANS_CROSS, TRANS_LINES, or TRANS_STAR
invertInvert in/out
stateState, from 0 to TRANS_LENGTH. 0 being visible, TRANS_LENGTH invisible