Skip to Content
The Alchemy Project

struct TITLE_SCROLL

The scroll down the lighthouse picture, or back up it: where it is and where it stops, the pixels a step and the ticks each step waits, and the picture's rows of tiles copied into VRAM as they come into view.

Declared in title_intro.c.

Fields

NameDescription
Sint16pospixels down the picture
Sint16limitthe position this scroll stops at
Sint16steppixels a step, negative going back up
Uint8 *srcthe next row of the picture to copy
Uint8 *destwhere in VRAM that row goes
Uint16 *cursorthe map entry of the row's first tile
Uint16tilethat tile's number
Sint16scrollpixels scrolled since the last row was copied
Uint16rowsdown: next VRAM row to fill; back up: rows left to pass before next copy
Uint32ticksticks each step waits

Description

The scroll down the lighthouse picture, or back up it: where it is and where it stops, the pixels a step and the ticks each step waits, and the picture's rows of tiles copied into VRAM as they come into view.

struct TITLE_SCROLL

Referenced by mnTitleIntroScrollLighthouse() and mnTitleIntroShowLighthouse().

Definition at line 42 of file title_intro.c.

Fields in detail

pos

Sint16 pos

pixels down the picture

limit

Sint16 limit

the position this scroll stops at

step

Sint16 step

pixels a step, negative going back up

src

Uint8 *src

the next row of the picture to copy

dest

Uint8 *dest

where in VRAM that row goes

cursor

Uint16 *cursor

the map entry of the row's first tile

tile

Uint16 tile

that tile's number

scroll

Sint16 scroll

pixels scrolled since the last row was copied

rows

Uint16 rows

down: next VRAM row to fill; back up: rows left to pass before next copy

ticks

Uint32 ticks

ticks each step waits