struct STAR_FIELD_STATE
The star field's state, for the 45 ticks of a cast's glow.
Declared in battle_element_glow.c.
Fields
| Name | Description | |
|---|---|---|
Uint8 | sheet [4544] | The blue ring sprite sheet's pictures, the sparks' and the rings'. |
struct SPARK | sparks [STAR_FIELD_SPARKS] | |
struct RING | rings [STAR_FIELD_RINGS] | |
Sint32 | ticks | Ticks drawn; new sparks start only in the first STAR_FIELD_SPAWN_TICKS. |
Sint32 | ready | 1 when a drawn tick waits for btElementGlowUploadStarField. |
Sint32 | originX | Where BG2 shows the 128 by 128 canvas, in 8.8 |
Sint32 | originY | pixels: btElementGlowPlay keeps it on the unit. |
Sint32 | originPending | 1 once the origin is queued for REG_BG2X. |
Description
The star field's state, for the 45 ticks of a cast's glow.
struct STAR_FIELD_STATE
Referenced by btElementGlowInitStarField(), btElementGlowPlay(), btElementGlowUpdateStarField() and btElementGlowUploadStarField().
Definition at line 58 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
struct SPARK sparks[STAR_FIELD_SPARKS]
rings
struct 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.
originX
Sint32 originX
Where BG2 shows the 128 by 128 canvas, in 8.8
originY
Sint32 originY
pixels: btElementGlowPlay keeps it on the
unit.
originPending
Sint32 originPending
1 once the origin is queued for REG_BG2X.