Alchemy
Loading...
Searching...
No Matches

SparkWork Struct Reference

The star field's work: its sprite sheet, 16 sparks and 3 rings. More...

Data Fields

u8 sheet [0x11c0]
 The blue ring sheet's pictures, decoded: the sparks' sizes at gBattleFx_StarWorkOffsets, the rings' frames at gBattleFx_RingFrameOffsets.
struct Spark sparks [16]
struct Ring rings [3]
s32 frames
 frames drawn; new sparks start only in the first 25
s32 ready
 1 when a drawn frame waits for BattleFx_UploadStarField
struct BattleCanvasOrigin canvasOrigin
 Where BG2 shows the 128 by 128 canvas: BattleFx_PlayUnitElementEffect keeps it on the unit, as an effect's tracked canvas would be.

Detailed Description

The star field's work: its sprite sheet, 16 sparks and 3 rings.

It lives in the HEAP_SLOT_BATTLE_EFFECT work slot.

Definition at line 15 of file star_field.c.

Field Documentation

◆ sheet

u8 SparkWork::sheet[0x11c0]

The blue ring sheet's pictures, decoded: the sparks' sizes at gBattleFx_StarWorkOffsets, the rings' frames at gBattleFx_RingFrameOffsets.

Definition at line 19 of file star_field.c.

◆ sparks

struct Spark SparkWork::sparks[16]

Definition at line 20 of file star_field.c.

Referenced by BattleFx_InitializeStarField(), and BattleFx_UpdateStarField().

◆ rings

struct Ring SparkWork::rings[3]

Definition at line 21 of file star_field.c.

Referenced by BattleFx_InitializeStarField(), and BattleFx_UpdateStarField().

◆ frames

s32 SparkWork::frames

frames drawn; new sparks start only in the first 25

Definition at line 22 of file star_field.c.

Referenced by BattleFx_InitializeStarField(), and BattleFx_UpdateStarField().

◆ ready

s32 SparkWork::ready

1 when a drawn frame waits for BattleFx_UploadStarField

Definition at line 23 of file star_field.c.

Referenced by BattleFx_InitializeStarField(), BattleFx_UpdateStarField(), and BattleFx_UploadStarField().

◆ canvasOrigin

struct BattleCanvasOrigin SparkWork::canvasOrigin

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

Definition at line 26 of file star_field.c.

Referenced by BattleFx_InitializeStarField(), and BattleFx_PlayUnitElementEffect().