Skip to Content
The Alchemy Project

struct SPARK_STATE

The star field's state, for the 45 ticks of a cast's glow.

Declared in battle_element_glow.c.

Fields

NameDescription
Uint8sheet [4544]The blue ring sprite sheet's pictures, the sparks' and the rings'.
SPARKsparks [STAR_FIELD_SPARKS]
RINGrings [STAR_FIELD_RINGS]
Sint32ticksticks drawn; new sparks start only in the first STAR_FIELD_SPAWN_TICKS
Sint32ready1 when a drawn tick waits for btElementGlowUploadStarField
BATTLE_BG2_ORIGINcanvasOriginWhere BG2 shows the 128 by 128 canvas: btElementGlowPlay keeps it on the unit, as a battle effect's tracked canvas would be.

Description

The star field's state, for the 45 ticks of a cast's glow.

struct SPARK_STATE

Referenced by btElementGlowInitStarField(), btElementGlowPlay(), btElementGlowUpdateStarField() and btElementGlowUploadStarField().

Definition at line 35 of file battle_element_glow.c.

Fields in detail

sheet

Uint8 sheet[4544]

The blue ring sprite sheet's pictures, the sparks' and the rings'.

sparks

SPARK sparks[STAR_FIELD_SPARKS]

rings

RING rings[STAR_FIELD_RINGS]

ticks

Sint32 ticks

ticks drawn; new sparks start only in the first STAR_FIELD_SPAWN_TICKS

ready

Sint32 ready

1 when a drawn tick waits for btElementGlowUploadStarField

canvasOrigin

BATTLE_BG2_ORIGIN canvasOrigin

Where BG2 shows the 128 by 128 canvas: btElementGlowPlay keeps it on the unit, as a battle effect's tracked canvas would be.