Alchemy
Loading...
Searching...
No Matches

colosso_marker.h File Reference

Go to the source code of this file.

Data Structures

struct  CompetitorState
 The mode and stage bytes of the menu control work, set while Isaac is shown on the stage and reset when he is put back. More...
union  MarkerCoordinate
 The pointer's glide start on one axis, read signed or unsigned. More...

Functions

void Colosso_FadeInCompetitor (s32 id, s32 x, s32 z)
 Isaac (id) appears at pixel (x, z) on the stage, facing south: he fades in through the backgrounds while he stretches from thin and tall to his own shape, settles and nods.
void Colosso_RestoreCompetitor (s32 id)
 Puts Isaac (id) back where Colosso_FadeInCompetitor found him: he stands (or turns south, nods and waits half a second), then returns to his kept position and facing with his motion stopped.
void OverlayObject_ResetMotionFields (s32 actor)
 Stops the actor where it is: no velocity and no destination.
static void Colosso_EnsureMarkerSlot (void)
 Loads the pointer's picture into a free VRAM block, once.
static void Colosso_UpdateMarker (void)
 The pointer's scene callback: glide one step, then draw it while it blinks on (a glide keeps it on).
void Colosso_ShowPointer (u32 x, u32 y, u32 style)
 Shows the pointer at screen pixel (x, y), drawn at priority style & 3.
void Colosso_MovePointer (u32 x, u32 y, u32 duration)
 Glides the pointer to screen pixel (x, y) over duration frames.
void Colosso_HidePointer (void)
 Hides the pointer and frees its VRAM block.
void Colosso_WalkActorTo (s32 actorId, s32 x, s32 z)
 Walks the actor at 2 pixels a frame towards pixel (x, z) and returns at once.
void Colosso_WalkActorToAndStand (s32 actorId, s32 x, s32 z)
 Walks the actor at 1.25 pixels a frame to pixel (x, z), waits until it arrives and stands it there.

Variables

s16 gColosso_MarkerSteps
s16 gColosso_MarkerStep
s16 gColosso_MarkerX
union MarkerCoordinate gColosso_MarkerStartX
s16 gColosso_MarkerEndX
s16 gColosso_MarkerY
union MarkerCoordinate gColosso_MarkerStartY
s16 gColosso_MarkerEndY
s16 gColosso_MarkerBlink
s16 gColosso_MarkerPriority

Function Documentation

◆ Colosso_FadeInCompetitor()

void Colosso_FadeInCompetitor ( s32 id,
s32 x,
s32 z )

Isaac (id) appears at pixel (x, z) on the stage, facing south: he fades in through the backgrounds while he stretches from thin and tall to his own shape, settles and nods.

His position and facing are kept for Colosso_RestoreCompetitor.

Definition at line 41 of file colosso_marker.h.

Referenced by Colosso_FadeInCompetitor(), Event_TalkToBoardWalkAttendant(), Event_TalkToBridgeAttendant(), Event_TalkToFreeClimbAttendant(), Event_TalkToLogRollingAttendant(), Event_TalkToLumberAttendant(), Event_TalkToMiniMazeAttendant(), Event_TalkToMovingSidewalkAttendant(), Event_TalkToRockAttendant(), Event_TalkToShiftingFloorAttendant(), Event_TalkToSteppingStoneAttendant(), Event_TalkToWallAttendant(), and Event_TalkToWallWedgeAttendant().

◆ Colosso_RestoreCompetitor()

void Colosso_RestoreCompetitor ( s32 id)

◆ OverlayObject_ResetMotionFields()

void OverlayObject_ResetMotionFields ( s32 actor)

Stops the actor where it is: no velocity and no destination.

Definition at line 135 of file colosso_marker.h.

Referenced by Event_TalkToMovingSidewalkAttendant(), Event_TalkToRockAttendant(), and OverlayObject_ResetMotionFields().

◆ Colosso_EnsureMarkerSlot()

void Colosso_EnsureMarkerSlot ( void )
static

Loads the pointer's picture into a free VRAM block, once.

Definition at line 149 of file colosso_marker.h.

Referenced by Colosso_EnsureMarkerSlot(), and Colosso_ShowPointer().

◆ Colosso_UpdateMarker()

void Colosso_UpdateMarker ( void )
static

The pointer's scene callback: glide one step, then draw it while it blinks on (a glide keeps it on).

Definition at line 175 of file colosso_marker.h.

Referenced by Colosso_HidePointer(), Colosso_MovePointer(), Colosso_ShowPointer(), and Colosso_UpdateMarker().

◆ Colosso_ShowPointer()

void Colosso_ShowPointer ( u32 x,
u32 y,
u32 style )

◆ Colosso_MovePointer()

void Colosso_MovePointer ( u32 x,
u32 y,
u32 duration )

Glides the pointer to screen pixel (x, y) over duration frames.

Definition at line 240 of file colosso_marker.h.

Referenced by Colosso_MovePointer(), Event_TalkToLogRollingAttendant(), Event_TalkToPipeworksAttendant(), Event_TalkToScalesAttendant(), and Event_TalkToSteppingStoneAttendant().

◆ Colosso_HidePointer()

void Colosso_HidePointer ( void )

◆ Colosso_WalkActorTo()

void Colosso_WalkActorTo ( s32 actorId,
s32 x,
s32 z )

Walks the actor at 2 pixels a frame towards pixel (x, z) and returns at once.

Definition at line 261 of file colosso_marker.h.

Referenced by Colosso_WalkActorTo(), and Event_TalkToWallWedgeAttendant().

◆ Colosso_WalkActorToAndStand()

void Colosso_WalkActorToAndStand ( s32 actorId,
s32 x,
s32 z )

Variable Documentation

◆ gColosso_MarkerSteps

s16 gColosso_MarkerSteps
extern

◆ gColosso_MarkerStep

s16 gColosso_MarkerStep
extern

◆ gColosso_MarkerX

s16 gColosso_MarkerX
extern

◆ gColosso_MarkerStartX

union MarkerCoordinate gColosso_MarkerStartX
extern

◆ gColosso_MarkerEndX

s16 gColosso_MarkerEndX
extern

◆ gColosso_MarkerY

s16 gColosso_MarkerY
extern

◆ gColosso_MarkerStartY

union MarkerCoordinate gColosso_MarkerStartY
extern

◆ gColosso_MarkerEndY

s16 gColosso_MarkerEndY
extern

◆ gColosso_MarkerBlink

s16 gColosso_MarkerBlink
extern

◆ gColosso_MarkerPriority

s16 gColosso_MarkerPriority
extern