Skip to Content
The Alchemy Project

include/field/screen_transition.h

What the field engine's parts share with the files that define their tables: the field effects' scripts and colour curves, and the screen transitions' shapes and window values.

Included by field_effect_scripts.c, field_engine_item_display.c and screen_transition_shapes.c.

Structures

NameDescription
structTRANSITION_SPANA run of lines of a window transition's shape (TRANSITION_SHAPE): its count of lines and its WIN_RANGE, or when that is 0 the window edges it moves between.
structTRANSITION_SHAPEA shape of WINDOW_TRANSITION_SHAPE: WINOUT and WININ while opening (swapped while closing), then up to three runs of lines down the screen, each a count of lines and either a WIN_RANGE for all of them or, when 0, the window edges from (x0, y0) on the first line toward (x1, y1) on the last.

Macros

NameDescription
#defineTRANSITION_SHOW_ALL 0x7f7fWININ or WINOUT showing every layer in both windows (bits 6 and 14 set too).
#defineTRANSITION_SHOW_LOW_BYTE 0x007fWININ or WINOUT showing every layer in its low byte (window 0, or outside both windows; bit 6 set too) and nothing in its high byte.

Functions

NameDescription
BoolfdIsRevealActive (struct ACTOR *interpreter)Returns 1 while Reveal is active, else 0.

Variables

NameDescription
extern const Sint32ItemDisplayGrowInScript []The found item's picture over the leader: growing in from half size, then pulsing to 1.5 times its size and resting, over and over.
extern const Sint32ItemDisplayPulseScript []Pulses twice, to 1.5 times full size, then rests, over and over: the found item's picture held over the leader (field_engine_item_display.c).
extern const Sint32RevealMarkerScript []A Reveal marker's script, which releases it once fdIsRevealActive returns 0, Reveal having ended.
extern Uint16FieldEffectChannelCurve []The palette tints' colour channel curves: each maps a 5-bit channel to a palette fade channel, shifted up 10 bits.
extern Uint16FieldEffectChannelCurveLight []
extern Uint16FieldEffectChannelCurveContrast []
extern const Uint8ScreenTransitionBarWidths []The width of the bars of WINDOW_TRANSITION_BARS, by progress.
extern const Sint8ScreenTransitionEdgeOffsets []The wobble of the circle edge of WINDOW_TRANSITION_RIPPLE.
extern TRANSITION_SHAPEScreenTransitionShapes []The window shape of each step of WINDOW_TRANSITION_SHAPE.
extern const Uint8ScreenTransitionDitherTable []0 to 63 shuffled: the order in which the dissolve sets the pixels.

Description

What the field engine's parts share with the files that define their tables: the field effects' scripts and colour curves, and the screen transitions' shapes and window values.

Macros in detail

TRANSITION_SHOW_ALL

#define TRANSITION_SHOW_ALL 0x7f7f

WININ or WINOUT showing every layer in both windows (bits 6 and 14 set too).

Referenced by fdScreenTransitionUpdateScanlineTable() and ScreenTransitionShapes.

Definition at line 26 of file screen_transition.h.

TRANSITION_SHOW_LOW_BYTE

#define TRANSITION_SHOW_LOW_BYTE 0x007f

WININ or WINOUT showing every layer in its low byte (window 0, or outside both windows; bit 6 set too) and nothing in its high byte.

Referenced by ScreenTransitionShapes.

Definition at line 29 of file screen_transition.h.