Skip to Content
The Alchemy Project

src/scene/shared/vault_map_metatiles.c

Vault, before and after the thieves are caught: the Sanctum's double door in the cliff in the west of town, which opens in two ticks as the leader walks into it facing north. More…

Included by vault.c and vault_revisit.c.

Enumerations

NameDescription
enumanonymous enum { VAULT_DOOR_OPENING_COLUMN, VAULT_DOOR_OPEN_COLUMN, VAULT_DOO … }The door's half-open and open pictures among the map's metatiles, by column, each half two metatiles square.

Functions

NameDescription
static inline voidscVaultDrawSanctumDoor (Sint32 srcColumn)The two square halves are stacked in the source layout and drawn side by side.
static voidscVaultOpenDoorwayAndEnter (void)Isaac walks up to the Sanctum's wooden double door, in the cliff in the west of Vault (metatiles (3, 18) and (4, 18)).

Description

Vault, before and after the thieves are caught: the Sanctum's double door in the cliff in the west of town, which opens in two ticks as the leader walks into it facing north. Both scenes give that exit one number, so the shared code names it VAULT_SANCTUM.

Enumerations in detail

anonymous enum

enum { VAULT_DOOR_OPENING_COLUMN, VAULT_DOOR_OPEN_COLUMN, VAULT_DOOR_HALF_SIZE }

The door's half-open and open pictures among the map's metatiles, by column, each half two metatiles square.

EnumeratorValueDescription
VAULT_DOOR_OPENING_COLUMN42
VAULT_DOOR_OPEN_COLUMN40
VAULT_DOOR_HALF_SIZE2

Definition at line 10 of file vault_map_metatiles.c.

Functions in detail

scVaultDrawSanctumDoor

static inline void scVaultDrawSanctumDoor(Sint32 srcColumn)

The two square halves are stacked in the source layout and drawn side by side.

References fdMapGridCopyMetatilesTo() and Sint32.

Referenced by scVaultOpenDoorwayAndEnter().

Definition at line 19 of file vault_map_metatiles.c.

scVaultOpenDoorwayAndEnter

static void scVaultOpenDoorwayAndEnter(void)

Isaac walks up to the Sanctum's wooden double door, in the cliff in the west of Vault (metatiles (3, 18) and (4, 18)). It thumps open and he goes into the Sanctum, vanishing into the doorway as he walks in.

References fdActorGetById(), fdMapGridCopyMetatileAttributes(), fdScriptWait(), scVaultDrawSanctumDoor(), scVaultWalkThroughExit() and sySoundPlay().

Referenced by VaultCues, VaultCuesAfterThieves and VaultRevisitCues.

Definition at line 30 of file vault_map_metatiles.c.