src/scene/shared/lemurian_ship_ripple.c
The Lemurian ship: the ripple of the water, a wave in each axis of the background's scrolling, changed line by line in the horizontal blank.
Included by script_commands_line_scroll.c and lemurian_ship.c.
Functions
| Name | Description | |
|---|---|---|
static inline void | scWaitDMA (volatile Uint32 *channel) | |
void | scLineScrollInitWave (Sint32 mode, FIXED frequencyX, Sint32 stepX, FIXED ampX, FIXED frequencyY, Sint32 stepY, FIXED ampY) | Starts the ripple, with the wave's frequency, its step each tick and its amplitude for x and for y: one event builds each tick's table of line offsets, and another sends it by DMA in the horizontal blank. |
Description
The Lemurian ship: the ripple of the water, a wave in each axis of the background's scrolling, changed line by line in the horizontal blank.
Functions in detail
scWaitDMA
static inline void scWaitDMA(volatile Uint32 *channel)
Referenced by scLineScrollInitWave().
Definition at line 7 of file lemurian_ship_ripple.c.
scLineScrollInitWave
void scLineScrollInitWave(Sint32 mode, FIXED frequencyX, Sint32 stepX, FIXED ampX, FIXED frequencyY, Sint32 stepY, FIXED ampY)
Starts the ripple, with the wave's frequency, its step each tick and its amplitude for x and for y: one event builds each tick's table of line offsets, and another sends it by DMA in the horizontal blank.
References fdLineScrollArmDMA(), fdLineScrollBuildPage(), scWaitDMA(), Sint32, state, syHeapSlotAllocateEWRAM() and sySetTickEvent().
Referenced by fdLineScrollStartWave() and scLemurianShipStartRipple().
Definition at line 17 of file lemurian_ship_ripple.c.