Alchemy

view.c

The view bounds, zoom transitions and objects linked to an actor.

games/tbs/src/object/psynergy_effects/view.c on GitHub

The view bounds, zoom transitions and objects linked to an actor. Part of psynergy_effects.c, compiled only through it.

Functions

Map_SetViewBounds

void Map_SetViewBounds(s32 minX, s32 minY, s32 maxX, s32 maxY)

The event command "set view bounds": the camera keeps the screen inside these map coordinates (Camera_MoveWithinMapBounds).

Used by FieldMap_SetViewBounds.

Line 13

Macros

SPRITE_ATTR2_HIGH

#define SPRITE_ATTR2_HIGH(sprite) (((u8 *)(sprite))[9])

The high byte of the first sprite part's OAM attribute 2. Bits 2 and 3 are its priority.

Line 9

On this page