Skip to Content
The Alchemy Project

struct MENU_CURSOR

Cursor that approaches its target, shared by shops, name entry screen and settings menu.

Declared in cursor.h.

Fields

NameDescription
WINDOW_SPR *anchorthe cursor's sprite, moved with its OAM
Uint16xscreen pixels: where the current move started
Uint16yscreen pixels: where the current move started
Sint16targetXscreen pixels
Sint16targetYscreen pixels
Sint8elapsedticks of the current move done; reset when it ends
Sint8ticksticks the move takes; 0 when the cursor is still

Description

Cursor that approaches its target, shared by shops, name entry screen and settings menu.

struct MENU_CURSOR

Referenced by mnColossoMenuChoose(), mnCursorAdvance(), mnCursorMoveTowardTarget(), mnCursorSet() and mnCursorSetPosImmediate().

Definition at line 13 of file cursor.h.

Fields in detail

anchor

WINDOW_SPR *anchor

the cursor's sprite, moved with its OAM

x

Uint16 x

screen pixels: where the current move started

y

Uint16 y

screen pixels: where the current move started

targetX

Sint16 targetX

screen pixels

targetY

Sint16 targetY

screen pixels

elapsed

Sint8 elapsed

ticks of the current move done; reset when it ends

ticks

Sint8 ticks

ticks the move takes; 0 when the cursor is still