Skip to Content
The Alchemy Project

struct SCREEN_TRANSITION_DISSOLVE_STATE

The screen transition state as the dissolve reads it: the solid tile as bytes, two 4-bit pixels to a byte, so that it can set one pixel at a time.

Declared in display_transition.h.

Fields

NameDescription
Uint16pages [2] [SCREEN_TRANSITION_PAGE_LENGTH]As SCREEN_TRANSITION_STATE's; the dissolve leaves them.
Uint8solidTilePixels [34]SCREEN_TRANSITION_STATE's solidTile and mode: the dissolve sets two more of the tile's pixels each tick and copies the tile to BG character block 0.
Uint16valueThe progress, moved from start to end over duration ticks: bit 5 says whether the dissolve fills or clears, the low 5 bits how far it is.
Sint32centerXAs SCREEN_TRANSITION_STATE's; the dissolve leaves them.
Sint32centerY
Sint16insideLayers
Sint16outsideLayers
Uint8unused
Uint8pageSCREEN_TRANSITION_STATE's page: the dissolve flips it each tick, though nothing reads it while the dissolve runs.
Sint8startThe value's first step.
Sint8endThe value's last step.
Sint8durationTicks; 0 when the value is not moving.
Sint8stepTicks.

Description

The screen transition state as the dissolve reads it: the solid tile as bytes, two 4-bit pixels to a byte, so that it can set one pixel at a time.

struct SCREEN_TRANSITION_DISSOLVE_STATE

Referenced by fdScreenTransitionUpdateDissolve().

Definition at line 18 of file display_transition.h.

Fields in detail

pages

Uint16 pages[2] [SCREEN_TRANSITION_PAGE_LENGTH]

As SCREEN_TRANSITION_STATE's; the dissolve leaves them.

solidTilePixels

Uint8 solidTilePixels[34]

SCREEN_TRANSITION_STATE's solidTile and mode: the dissolve sets two more of the tile's pixels each tick and copies the tile to BG character block 0.

value

Uint16 value

The progress, moved from start to end over duration ticks: bit 5 says whether the dissolve fills or clears, the low 5 bits how far it is.

centerX

Sint32 centerX

As SCREEN_TRANSITION_STATE's; the dissolve leaves them.

centerY

Sint32 centerY

insideLayers

Sint16 insideLayers

outsideLayers

Sint16 outsideLayers

unused

Uint8 unused

page

Uint8 page

SCREEN_TRANSITION_STATE's page: the dissolve flips it each tick, though nothing reads it while the dissolve runs.

start

Sint8 start

The value's first step.

end

Sint8 end

The value's last step.

duration

Sint8 duration

Ticks; 0 when the value is not moving.

step

Sint8 step

Ticks.