Functions
Scroll_Initialize
u8 Scroll_Initialize(
u16 map
)

Initialize scrolling module.

Parameters
map
u16

Address of the tilemap used to render the scrolling background.

Return

First free sprite index (Scroll module reserve several sprites if mask option is activted).

Scroll_SetOffsetH
void Scroll_SetOffsetH(
i8 offset
)

Set scrolling horizontal offset

Parameters
offset
i8

Horizontal scrolling offset (in pixels)

Scroll_SetOffsetV
void Scroll_SetOffsetV(
i8 offset
)

Set scrolling vertical offset

Parameters
offset
i8

Vertical scrolling offset (in pixels)

Scroll_HBlankAdjust
void Scroll_HBlankAdjust(
u8 adjust
)

Adjust screen offset. Function to be called in the H-Blank handler

Parameters
adjust
u8

Ajust step 0: Frame start 1: Scrolling adjust 2: No more adjust

Scroll_Update
void Scroll_Update()

Update scrolling module