Skip to Content
The Alchemy Project

include/scene/scene_actors.h

The views of actors, sprites, maps and script state that scenes read in their own way, and actor script helpers shared across towns.

Included by scene.h.

Structures

NameDescription
structSPR_ATTR2_HIGHA field sprite's byte 9: the top of its first tile and its priority (OAM attribute 2), read as bit-fields.
structMAP_BITSThe map state (MAP_STATE) with its ground marks as bit-fields, for rooms that set the kind of wading.
unionSCRIPT_LINEA script's message counter, read as a word or as its halfword (Gabomba Catacombs' centred lines).
structFADE_PALETTEThe palette fade's state (heap slot paletteFade) as 256 colours.
unionACTOR_COORDINATEAn actor's coordinate read as its word or its low halfword, through a union so that a store to it may alias a read after it.
unionVIEW_COORDINATEA coordinate as the scenes' actor views read it: FIELD_COORDINATE's layout as a union, whose members may alias anything.
structBOBBING_MARKERThe World Map's Echo (scWorldMapCircleEcho), which circles and bobs where it waits: ACTOR with its timer and userValue words named.
structYAMPI_DESERT_VISUALA field sprite (FIELD_SPR) read a byte at a time, as Yampi Desert's scorpion sets its colour mode and priority and loads its tiles.

Macros

NameDescription
#definefdActorAnimateThenWait (id, animation, ticks)Plays an actor's animation and lets ticks pass before the script goes on.

Enumerations

NameDescription
enumanonymous enum { CHILD_SEES_CHILD_RANGE, CHILD_SEES_LEADER_RANGE, CHILD_WALKS … }How near, in pixels, the two walking children of Lemuria and of Contigo heed: the other child they face, the leader they face, and the leader come so near that they walk on (scLemuriaNoticeLeader, scContigoPauseWhenFaced).

Description

The views of actors, sprites, maps and script state that scenes read in their own way, and actor script helpers shared across towns.

Macros in detail

fdActorAnimateThenWait

#define fdActorAnimateThenWait(id, animation, ticks)

Plays an actor's animation and lets ticks pass before the script goes on.

Referenced by scGarohFollowWerewolfIntoCave(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseJennaJoinsTheFight(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthouseKarstAndAgatioWait(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseShebaJoinsTheFight(), scJupiterLighthouseWeBeatThem() and scMadraMeetKarst().

Definition at line 145 of file scene_actors.h.

Enumerations in detail

anonymous enum

enum { CHILD_SEES_CHILD_RANGE, CHILD_SEES_LEADER_RANGE, CHILD_WALKS_ON_RANGE }

How near, in pixels, the two walking children of Lemuria and of Contigo heed: the other child they face, the leader they face, and the leader come so near that they walk on (scLemuriaNoticeLeader, scContigoPauseWhenFaced).

EnumeratorValueDescription
CHILD_SEES_CHILD_RANGE18
CHILD_SEES_LEADER_RANGE26
CHILD_WALKS_ON_RANGE11

Definition at line 155 of file scene_actors.h.