Skip to Content
The Alchemy Project

struct BURST_STATE

Burst's state (heap slot HEAP_SLOT_BATTLE_EFFECT): the explosion's eight pictures unpacked into tiles before they are loaded, the glow disc that swells in front of the caster on the canvas sprite, the 32 sparks that fly into it, the 32 explosions round the target, and the stage of the cast.

Declared in field_psynergy_burst.c.

Fields

NameDescription
Uint8tiles [8 * BURST_EXPLOSION_PICTURE_TILES * TILE_SIZE_4BPP]
FIELD_PSYNERGY_PARTICLEsparks [BURST_SPARK_COUNT]
EFFECT_SPRsparkSprites [BURST_SPARK_COUNT]
EFFECT_SPRburstSprites [BURST_EXPLOSION_COUNT]
FIELD_PSYNERGY_PARTICLEbursts [BURST_EXPLOSION_COUNT]
Sint16phasecast stage; FIELD_PSYNERGY_FINISHED once it ends
Sint16timerticks into the stage
Sint16shakepassed to the target's script each tick (BURST_STAGE)
Uint16burstTilethe explosion's first tile
Sint16nextBurstthe explosion slot used next
Sint16newBurstsexplosions to start this tick
Sint8paletteModean BURST_PALETTE_MODE

Description

Burst's state (heap slot HEAP_SLOT_BATTLE_EFFECT): the explosion's eight pictures unpacked into tiles before they are loaded, the glow disc that swells in front of the caster on the canvas sprite, the 32 sparks that fly into it, the 32 explosions round the target, and the stage of the cast.

struct BURST_STATE

Referenced by fdPsynergyBurst() and fdPsynergyUpdateBurst().

Definition at line 24 of file field_psynergy_burst.c.

Fields in detail

tiles

Uint8 tiles[8 * BURST_EXPLOSION_PICTURE_TILES * TILE_SIZE_4BPP]

sparks

FIELD_PSYNERGY_PARTICLE sparks[BURST_SPARK_COUNT]

sparkSprites

EFFECT_SPR sparkSprites[BURST_SPARK_COUNT]

burstSprites

EFFECT_SPR burstSprites[BURST_EXPLOSION_COUNT]

bursts

FIELD_PSYNERGY_PARTICLE bursts[BURST_EXPLOSION_COUNT]

phase

Sint16 phase

cast stage; FIELD_PSYNERGY_FINISHED once it ends

timer

Sint16 timer

ticks into the stage

shake

Sint16 shake

passed to the target's script each tick (BURST_STAGE)

burstTile

Uint16 burstTile

the explosion's first tile

nextBurst

Sint16 nextBurst

the explosion slot used next

newBursts

Sint16 newBursts

explosions to start this tick

paletteMode

Sint8 paletteMode

an BURST_PALETTE_MODE