Alchemy

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.

FieldDeclared as
froms16 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.
tos16 to[0x540]the lit colours (PALETTE_TRANSFORM_PALE), as from
deltas16 delta[0x540]the 12-frame steps from to back to from
timers16 timerFrames to the next flash, which comes in three, 5 frames apart; below 0 stops the lightning.
enableds16 enabledNonzero arms the next flash a random 51 to 549 frames after each, with a thunderclap.
louds16 loudnonzero plays the louder thunderclap, SE_172 for SE_171
unk1f86u8 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.

Line 13

On this page