Skip to Content
The Alchemy Project

include/field/metatile_target.h

The cracked floor metatiles that Jupiter Lighthouse, Mars Lighthouse and Anemos Inner Sanctum watch (scene/shared/cracked_tile_*.c), and the sprite scene/shared/cracked_tile_mask.c draws over the one the leader stands on.

The cracked floor metatiles that Jupiter Lighthouse, Mars Lighthouse and Anemos Inner Sanctum watch (scene/shared/cracked_tile_*.c), and the sprite scene/shared/cracked_tile_mask.c draws over the one the leader stands on.

Included by jupiter_lighthouse_cracked_floor.c, jupiter_lighthouse_entrance.c, jupiter_lighthouse_ground_floor.c, jupiter_lighthouse_left_tower_lower.c, jupiter_lighthouse_locked_doors.c, jupiter_lighthouse_right_tower_lower.c, jupiter_lighthouse_right_tower_upper.c, jupiter_lighthouse_side_halls.c, cracked_tile_mask.c, treasure_isle.c, jupiter_lighthouse_aerie.h, mars_lighthouse_entrance.h and mars_lighthouse_star_room.h.

Structures

NameDescription
structMETATILE_TARGET_ENTRYOne watched metatile, in map metatiles.
structMETATILE_TARGETA map's watched metatiles and the sprite drawn over the current one.

Macros

NameDescription
#defineHOLE_MASK_BYTES (8 * TILE_SIZE_4BPP)The bytes of the hole mask's picture (a METATILE_TARGET's tile), the sprite drawn in the OBJ window over the leader's metatile as he sinks through the floor: 16 by 32 pixels, eight tiles of colour 1.

Functions

NameDescription
static inline Sint32fdMetatileTargetMetatileOf (FIXED pos, Sint16 bit)The map metatile of a 16.16 coordinate with a watched metatile's 64 bit ORed in, as each scene's copy of the cracked tile handler builds its row.

Description

The cracked floor metatiles that Jupiter Lighthouse, Mars Lighthouse and Anemos Inner Sanctum watch (scene/shared/cracked_tile_*.c), and the sprite scene/shared/cracked_tile_mask.c draws over the one the leader stands on.

Macros in detail

HOLE_MASK_BYTES

#define HOLE_MASK_BYTES (8 * TILE_SIZE_4BPP)

The bytes of the hole mask's picture (a METATILE_TARGET's tile), the sprite drawn in the OBJ window over the leader's metatile as he sinks through the floor: 16 by 32 pixels, eight tiles of colour 1. TILE_SIZE_4BPP is system/definitions.h's.

Referenced by scCrackedTileFind() and scMarsLighthouseEntranceStartHoleMask().

Definition at line 55 of file metatile_target.h.

Functions in detail

fdMetatileTargetMetatileOf

static inline Sint32 fdMetatileTargetMetatileOf(FIXED pos, Sint16 bit)

The map metatile of a 16.16 coordinate with a watched metatile's 64 bit ORed in, as each scene's copy of the cracked tile handler builds its row.

References Sint32.

Definition at line 59 of file metatile_target.h.