Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_display.c

Display, scroll and window HBlank DMA helpers. More…

Included by battle_effect.c.

Functions

NameDescription
voidbtEffectConfigureEffectDisplay (void)Puts the battle screen back into the display state every effect starts from and ends with.
voidbtEffectAdvanceScrollOnInterval (void)Scrolls BG1 a step every few frames.
voidbtEffectAdvanceBg2OnInterval (void)Slides the affine BG2 a step every few frames.
voidbtEffectArmWin0HBlankDMA (void)Restarts the DMA that feeds window 0's edges, one a line, from the table the effect keeps in the map cell buffer.

Description

Display, scroll and window HBlank DMA helpers. Part of battle_effect.c.

Functions in detail

btEffectConfigureEffectDisplay

void btEffectConfigureEffectDisplay(void)

Puts the battle screen back into the display state every effect starts from and ends with.

References sySynch().

Referenced by btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunAzul(), btEffectRunBoreas(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDouse(), btEffectRunFlora(), btEffectRunGeode(), btEffectRunHaures(), btEffectRunIce(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunLeapingStrike(), btEffectRunMegaera(), btEffectRunMeteorBlow(), btEffectRunNeptune(), btEffectRunOceanFist(), btEffectRunRamses(), btEffectRunRisingDragonEnemy(), btEffectRunSerac(), btEffectRunStarfieldFall(), btEffectRunThor(), btEffectRunWaterSheet(), btEffectRunZagan(), btEffectStartCanvasLayer() and btEffectStartElementStreaks().

Definition at line 5 of file battle_effect_display.c.

btEffectAdvanceScrollOnInterval

void btEffectAdvanceScrollOnInterval(void)

Scrolls BG1 a step every few frames.

References BgScrollWork.

Referenced by btEffectRunAtalanta(), btEffectRunDaedalus(), btEffectRunEclipse(), btEffectRunFlora() and btEffectRunThor().

Definition at line 19 of file battle_effect_display.c.

btEffectAdvanceBg2OnInterval

void btEffectAdvanceBg2OnInterval(void)

Slides the affine BG2 a step every few frames.

Referenced by btEffectRunStarfieldFall().

Definition at line 34 of file battle_effect_display.c.

btEffectArmWin0HBlankDMA

void btEffectArmWin0HBlankDMA(void)

Restarts the DMA that feeds window 0's edges, one a line, from the table the effect keeps in the map cell buffer.

References syDMAXCopy().

Referenced by btEffectRunDouse() and btEffectRunIce().

Definition at line 52 of file battle_effect_display.c.