Skip to Content
The Alchemy Project

src/scene/shared/field_effect_wave_scroll.c

A great whirlwind's sway (Air's Rock, Shaman Village): each screen line of BG0 is pushed side to side by a jittered sine wave, set line by line by HBlank DMA 0. More…

Included by airs_rock.c and shaman_village.c.

Functions

NameDescription
voidWAVE_SCROLL (void)The great whirlwind's sway: BG0's line scroll, by HBlank DMA.

Variables

NameDescription
extern Sint16WAVE_SCROLL_LINES []

Description

A great whirlwind's sway (Air's Rock, Shaman Village): each screen line of BG0 is pushed side to side by a jittered sine wave, set line by line by HBlank DMA 0. Each overlay that has it includes this body after naming the function (WAVE_SCROLL) and its table of a scroll for each screen line (WAVE_SCROLL_LINES).

Functions in detail

WAVE_SCROLL

void WAVE_SCROLL(void)

References Sint32, syDMAXCopy(), syRandom(), sySin() and TickCount.

Definition at line 12 of file field_effect_wave_scroll.c.