Skip to Content
The Alchemy Project

src/scene/shared/field_effect_create.c

Placing a still actor of a given sprite, shared by twenty-three scenes: a black, translucent mask in front of the backgrounds, which the scenes set where something sinks or drops out of sight (a pillar into the floor, Isaac through a hole), and an invisible actor sorted under the others. More…

Included by babi_lighthouse.c, crossbone_isle.c, crossbone_isle_stepping_stones.c, fuchin_temple.c, goma_cave_entrance.c, goma_cave_stream.c, gondowan_cave.c, lacquer_rooms_b.c, lamakan_desert.c, lunpa.c, mercury_lighthouse.c, mercury_lighthouse_aerie.c, mercury_lighthouse_entrance.c, mogall_forest.c, sol_sanctum_elemental_star_room.c, suhalla_desert.c, tree_rooms.c, tunnel_ruins.c, vale_cave.c, vault.c, vault_revisit.c, venus_lighthouse_aerie.c and xian.c.

Macros

NameDescription
#definescPlaceTranslucentBlackActor (x, y, z, type)scPlaceTranslucentBlackActorFX at a point in whole pixels: scPlaceTranslucentBlackActor(464, 0, 290, PIT_MASK).
#definescPlaceHiddenActor (x, y, z, type)scPlaceHiddenActorFX at a point in whole pixels: scPlaceHiddenActor(128, 0, 420, SPRITE_CRATE).

Functions

NameDescription
static voidscSetActorSpritePriority (ACTOR *actor, Sint32 priority)Sets the actor's sprite priority (0 in front of the backgrounds, 3 behind).
static void *scPlaceTranslucentBlackActorFX (FIXED x, FIXED y, FIXED z, Sint32 type)The black, translucent mask, its sprite's shape drawn in front of the backgrounds (sprite priority 0) and never a target.
static void *scPlaceHiddenActorFX (FIXED x, FIXED y, FIXED z, Sint32 type)The invisible actor, at sprite priority 1, sorted under the other actors and never a target.

Description

Placing a still actor of a given sprite, shared by twenty-three scenes: a black, translucent mask in front of the backgrounds, which the scenes set where something sinks or drops out of sight (a pillar into the floor, Isaac through a hole), and an invisible actor sorted under the others. Each routine takes a 16.16 position, and the macro of the same name without FX whole pixels.

Macros in detail

scPlaceTranslucentBlackActor

#define scPlaceTranslucentBlackActor(x, y, z, type)

scPlaceTranslucentBlackActorFX at a point in whole pixels: scPlaceTranslucentBlackActor(464, 0, 290, PIT_MASK).

Referenced by scBabiLighthouseDropFromEastRoomPit(), scBabiLighthouseDropFromWestRoomSouthwestPit(), scInit(), scMercuryLighthouseMiaOpensEntranceWithPly(), scTunnelRuinsSinkNorthwestPillar() and scTunnelRuinsSinkSoutheastPillar().

Definition at line 36 of file field_effect_create.c.

scPlaceHiddenActor

#define scPlaceHiddenActor(x, y, z, type)

scPlaceHiddenActorFX at a point in whole pixels: scPlaceHiddenActor(128, 0, 420, SPRITE_CRATE).

Referenced by scInit() and scValeCaveApplyEntryState().

Definition at line 62 of file field_effect_create.c.

Functions in detail

scSetActorSpritePriority

static void scSetActorSpritePriority(ACTOR *actor, Sint32 priority)

Sets the actor's sprite priority (0 in front of the backgrounds, 3 behind).

References Sint32.

Referenced by scInit() and scMercuryLighthouseMiaOpensEntranceWithPly().

Definition at line 9 of file field_effect_create.c.

scPlaceTranslucentBlackActorFX

static void * scPlaceTranslucentBlackActorFX(FIXED x, FIXED y, FIXED z, Sint32 type)

The black, translucent mask, its sprite's shape drawn in front of the backgrounds (sprite priority 0) and never a target.

References fdActorSetBlendMode(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), scFieldActorCreate() and Sint32.

Referenced by scCrossboneIsleSteppingStonesLowerActorToLedge(), scMercuryLighthouseJumpDownPastCrystal(), scMercuryLighthousePushJetRoomPipes(), scValeCaveMoveEastCratesIntoWater() and scValeCaveMoveWestCratesIntoWater().

Definition at line 16 of file field_effect_create.c.

scPlaceHiddenActorFX

static void *scPlaceHiddenActorFX(FIXED x, FIXED y, FIXED z, Sint32 type)

The invisible actor, at sprite priority 1, sorted under the other actors and never a target.

References fdActorSetSpriteColor(), fdActorSetSpriteFlags(), scFieldActorCreate() and Sint32.

Definition at line 41 of file field_effect_create.c.