src/battle_effect/battle_effect_raging_heat.c
Raging Heat and Juggle, then the white band the summons sweep in to white out the battle. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | FIRE_RING_PIXELS (RamMapMetatileBuffer + 64 * 64) | The ring of fire's texture, 128x128, after the quarter of the circle of runes (64x64) that the pillar's picture then replaces. |
#define | EMBERS ((PARTICLE *)(FIRE_RING_PIXELS + 128 * 128)) | The embers, after the ring of fire's texture. |
#define | RAGING_HEAT_EMBER_COUNT 256 | |
#define | RAGING_HEAT_TICKS 96 | |
#define | RAGING_HEAT_PILLAR_TICK 56 | The pillar starts to fall and the ring of fire to spread. |
#define | RAGING_HEAT_FLASH_BURST_PICTURES (128 * 128) | FlashBurstSheet's pictures, after the circle of runes (128x128) in the effect's sprite sheet. |
#define | RAGING_HEAT_BURSTS_SET_OUT 32 | The bursts the pillar sets out where it lands; the variant draws the first RAGING_HEAT_BURSTS of them. |
#define | RAGING_HEAT_BURST_TICKS 24 | A burst shows each of FlashBurstSheet's six pictures for four ticks. |
#define | RAGING_HEAT_TILT 2000 | The rings' tilt toward the viewer. |
#define | RUNE_CIRCLE_RIGHTED_TICK 48 | Until this tick the circle of runes is tipped further and rights itself. |
#define | JUGGLE_TICKS 122 | |
#define | JUGGLE_RING_RISE_TICK 8 | the ring starts to rise over the caster |
#define | JUGGLE_RING_SOUND_TICK 16 | the launch is heard |
#define | JUGGLE_RING_THROW_TICK 64 | it flies at the targets |
#define | JUGGLE_RING_HIT_TICK 88 | it strikes; sparks burst |
#define | JUGGLE_SPARKS_PER_TARGET 128 | |
#define | JUGGLE_SPARK_COUNT 768 | |
#define | JUGGLE_TILT 500 | The ring's tilt toward the viewer, beside its turn |
#define | JUGGLE_FLAME_WIDTH 16 | SmallFlameSheet's four pictures of a flame |
#define | JUGGLE_FLAME_HEIGHT 64 | |
#define | WHITE_BAND_STRETCH Q_8_8(78.0 / 256) | BG2PA for the white band: the canvas's 128 columns stretched across about 420 screen pixels. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { RAGING_HEAT_BURSTS, RAGING_HEAT_SPREAD, RAGING_HEAT_RING_SIZ … } | RagingHeatStyles[variant]: four bytes for each strength. |
enum | anonymous enum { JUGGLE_RING_LIFT_STEP, JUGGLE_RING_LIFT_MAX, JUGGLE_RING_FLA … } | JuggleStyles[variant]: seven bytes for each strength. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunRagingHeat (BATTLE_EFFECT_PARM *args) | A circle of runes spins over the targets' middle and swells; from tick 56 a pillar of flame (two mirrored halves) falls from it onto them and bursts into fire and embers where it lands, under a ring of fire that spreads and fades. |
void | btEffectRunJuggle (BATTLE_EFFECT_PARM *args) | A ring of small flames. |
void | btEffectFillWhiteBand (void) | Loads the grey ramp and fills the canvas with a white band, its left and right 32 columns fading out, stretched across the screen on BG2: the summons sweep it in from the right to white the battle out. |
Description
Raging Heat and Juggle, then the white band the summons sweep in to white out
the battle. Part of battle_effect.c.
Macros in detail
FIRE_RING_PIXELS
#define FIRE_RING_PIXELS (RamMapMetatileBuffer + 64 * 64)
The ring of fire's texture, 128x128, after the quarter of the circle of runes (64x64) that the pillar's picture then replaces.
Referenced by btEffectRunRagingHeat().
Definition at line 6 of file battle_effect_raging_heat.c.
EMBERS
#define EMBERS ((PARTICLE *)(FIRE_RING_PIXELS + 128 * 128))
The embers, after the ring of fire's texture.
Referenced by btEffectRunRagingHeat().
Definition at line 8 of file battle_effect_raging_heat.c.
RAGING_HEAT_EMBER_COUNT
#define RAGING_HEAT_EMBER_COUNT 256
Referenced by btEffectRunRagingHeat().
Definition at line 9 of file battle_effect_raging_heat.c.
RAGING_HEAT_TICKS
#define RAGING_HEAT_TICKS 96
Referenced by btEffectRunRagingHeat().
Definition at line 11 of file battle_effect_raging_heat.c.
RAGING_HEAT_PILLAR_TICK
#define RAGING_HEAT_PILLAR_TICK 56
The pillar starts to fall and the ring of fire to spread.
Referenced by btEffectRunRagingHeat().
Definition at line 13 of file battle_effect_raging_heat.c.
RAGING_HEAT_FLASH_BURST_PICTURES
#define RAGING_HEAT_FLASH_BURST_PICTURES (128 * 128)
FlashBurstSheet's pictures, after the circle of runes (128x128) in the effect's sprite sheet.
Referenced by btEffectRunRagingHeat().
Definition at line 16 of file battle_effect_raging_heat.c.
RAGING_HEAT_BURSTS_SET_OUT
#define RAGING_HEAT_BURSTS_SET_OUT 32
The bursts the pillar sets out where it lands; the variant draws the first
RAGING_HEAT_BURSTS of them.
Referenced by btEffectRunRagingHeat().
Definition at line 19 of file battle_effect_raging_heat.c.
RAGING_HEAT_BURST_TICKS
#define RAGING_HEAT_BURST_TICKS 24
A burst shows each of FlashBurstSheet's six pictures for four ticks.
Referenced by btEffectRunRagingHeat().
Definition at line 21 of file battle_effect_raging_heat.c.
RAGING_HEAT_TILT
#define RAGING_HEAT_TILT 2000
The rings' tilt toward the viewer.
Referenced by btEffectRunRagingHeat().
Definition at line 23 of file battle_effect_raging_heat.c.
RUNE_CIRCLE_RIGHTED_TICK
#define RUNE_CIRCLE_RIGHTED_TICK 48
Until this tick the circle of runes is tipped further and rights itself.
Referenced by btEffectRunRagingHeat().
Definition at line 25 of file battle_effect_raging_heat.c.
JUGGLE_TICKS
#define JUGGLE_TICKS 122
Referenced by btEffectRunJuggle().
Definition at line 322 of file battle_effect_raging_heat.c.
JUGGLE_RING_RISE_TICK
#define JUGGLE_RING_RISE_TICK 8
the ring starts to rise over the caster
Referenced by btEffectRunJuggle().
Definition at line 323 of file battle_effect_raging_heat.c.
JUGGLE_RING_SOUND_TICK
#define JUGGLE_RING_SOUND_TICK 16
the launch is heard
Referenced by btEffectRunJuggle().
Definition at line 324 of file battle_effect_raging_heat.c.
JUGGLE_RING_THROW_TICK
#define JUGGLE_RING_THROW_TICK 64
it flies at the targets
Referenced by btEffectRunJuggle().
Definition at line 325 of file battle_effect_raging_heat.c.
JUGGLE_RING_HIT_TICK
#define JUGGLE_RING_HIT_TICK 88
it strikes; sparks burst
Referenced by btEffectRunJuggle().
Definition at line 326 of file battle_effect_raging_heat.c.
JUGGLE_SPARKS_PER_TARGET
#define JUGGLE_SPARKS_PER_TARGET 128
Referenced by btEffectRunJuggle().
Definition at line 327 of file battle_effect_raging_heat.c.
JUGGLE_SPARK_COUNT
#define JUGGLE_SPARK_COUNT 768
Referenced by btEffectRunJuggle().
Definition at line 328 of file battle_effect_raging_heat.c.
JUGGLE_TILT
#define JUGGLE_TILT 500
The ring's tilt toward the viewer, beside its turn
Referenced by btEffectRunJuggle().
Definition at line 329 of file battle_effect_raging_heat.c.
JUGGLE_FLAME_WIDTH
#define JUGGLE_FLAME_WIDTH 16
SmallFlameSheet's four pictures of a flame
Referenced by btEffectRunJuggle().
Definition at line 330 of file battle_effect_raging_heat.c.
JUGGLE_FLAME_HEIGHT
#define JUGGLE_FLAME_HEIGHT 64
Referenced by btEffectRunJuggle().
Definition at line 331 of file battle_effect_raging_heat.c.
WHITE_BAND_STRETCH
#define WHITE_BAND_STRETCH Q_8_8(78.0 / 256)
BG2PA for the white band: the canvas's 128 columns stretched across about 420 screen pixels.
Referenced by btEffectFillWhiteBand().
Definition at line 540 of file battle_effect_raging_heat.c.
Enumerations in detail
anonymous enum
enum { RAGING_HEAT_BURSTS, RAGING_HEAT_SPREAD, RAGING_HEAT_RING_SIZE, RAGING_HEAT_EMBERS }
RagingHeatStyles[variant]: four bytes for each strength.
| Enumerator | Value | Description |
|---|---|---|
RAGING_HEAT_BURSTS | bursts of fire drawn where the pillar lands | |
RAGING_HEAT_SPREAD | how far apart they fly | |
RAGING_HEAT_RING_SIZE | the rings' size, in 64ths of their textures' | |
RAGING_HEAT_EMBERS | embers that fly from the landing |
Definition at line 28 of file battle_effect_raging_heat.c.
anonymous enum
enum { JUGGLE_RING_LIFT_STEP, JUGGLE_RING_LIFT_MAX, JUGGLE_RING_FLAMES, JUGGLE_RING_FLAME_SPACING, … }
JuggleStyles[variant]: seven bytes for each strength.
| Enumerator | Value | Description |
|---|---|---|
JUGGLE_RING_LIFT_STEP | pixels the ring rises each tick | |
JUGGLE_RING_LIFT_MAX | and its highest | |
JUGGLE_RING_FLAMES | flames in the ring | |
JUGGLE_RING_FLAME_SPACING | their spacing round it | |
JUGGLE_RING_SPARKS | sparks at each target | |
JUGGLE_RING_SHAKE | ticks the screen shakes at the hit | |
JUGGLE_RING_BLITTER | which of the pair draws the flames |
Definition at line 334 of file battle_effect_raging_heat.c.
Functions in detail
btEffectRunRagingHeat
void btEffectRunRagingHeat(BATTLE_EFFECT_PARM *args)
A circle of runes spins over the targets' middle and swells; from tick 56 a pillar of flame (two mirrored halves) falls from it onto them and bursts into fire and embers where it lands, under a ring of fire that spreads and fades.
Abilities: Raging Heat.
References BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, btCameraShake(), btEffectPosProjectScaledBattler(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity2D(), btPictureMirrorIntoQuadrants(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), RagingHeatStyles, Sint32, syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syInitMatrix(), syMatrixScaleUniform(), syRandom(), syRotX(), syRotY(), syScale(), sySin(), sySoundPlayStub() and syTranslate().
Referenced by BattleEffectHandlers.
Definition at line 41 of file battle_effect_raging_heat.c.
btEffectRunJuggle
void btEffectRunJuggle(BATTLE_EFFECT_PARM *args)
A ring of small flames. The flames circle the caster in a ring that rises over its head from tick 8, each turning its own way through four pictures. At tick 64 the ring flies at the targets' midpoint, slowing as it nears; at tick 88 it strikes: every target is knocked back and flashes, sparks burst from each, and the screen shakes. The variant sets the ring's rise, its flames and sparks and the shake; variant 2 also takes the orange palette.
Abilities: Juggle, Heat Juggle, Fiery Juggle.
References BattleEffectMotePictures, btCameraShake(), btEffectBuildCanvasBlitters(), btEffectEndCanvasLayer(), btEffectGetTargetsMidpoint(), btEffectPosProjectBattler(), btEffectPosProjectSprite(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), JuggleStyles, Sint32, syCalcPoint(), syCloseEvent(), syCos(), syInitMatrix(), syRandom(), syRotX(), syRotY(), syRotZ(), sySetEvent(), sySin(), sySoundPlayStub() and syTranslate().
Referenced by BattleEffectHandlers.
Definition at line 353 of file battle_effect_raging_heat.c.
btEffectFillWhiteBand
void btEffectFillWhiteBand(void)
Loads the grey ramp and fills the canvas with a white band, its left and right 32 columns fading out, stretched across the screen on BG2: the summons sweep it in from the right to white the battle out.
References btGraphicsLoadGreyRamp() and Sint32.
Referenced by btEffectRunCoatlicue(), btEffectRunDaedalus(), btEffectRunEclipse(), btEffectRunFlora() and btEffectRunZagan().
Definition at line 545 of file battle_effect_raging_heat.c.