fxblend.h
games/tbs/include/fxblend.h on GitHub
Structures
FieldBlendWork
struct FieldBlendWork
The storm's lightning work: the colours it flashes between and their difference, the countdown to the next flash and whether the thunder is loud.
| Field | Declared as | |
|---|---|---|
from | s16 from[0x540] | The storm's dark colours (PALETTE_TRANSFORM_WARM), as the colour buffer's B, G and R channels: each flash fades back to them. |
to | s16 to[0x540] | the lit colours (PALETTE_TRANSFORM_PALE), as from |
delta | s16 delta[0x540] | the 12-frame steps from to back to from |
timer | s16 timer | Frames to the next flash, which comes in three, 5 frames apart; below 0 stops the lightning. |
enabled | s16 enabled | Nonzero arms the next flash a random 51 to 549 frames after each, with a thunderclap. |
loud | s16 loud | nonzero plays the louder thunderclap, SE_172 for SE_171 |
unk1f86 | u8 unk1f86[2] | not named by TBS code |
Used by BattleFx_StartBufferBlend, Event_DoraWakesIsaac, Event_HurryToThePlaza, FieldFx_LastLightning, FieldFx_ResumeLightning, FieldFx_StartLightning, FieldFx_StopLightning, FieldFx_UpdateLightning, ValeBabi_Initialize, ValeInteriors_Initialize.