src/battle_effect/battle_effect_volcano.c
Volcano: pillars of fire scroll up among the targets over a flickering flame, each erupting in a fountain of sparks and spitting more. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | VOLCANO_TICKS 96 | |
#define | VOLCANO_PILLAR_TICKS 64 | The ticks the pillars burn, and the strongest variant's camera turns. |
#define | VOLCANO_CAMERA_SPIN (TRIG_TURN * 3 / 16 / VOLCANO_PILLAR_TICKS) | The camera's turn each of those ticks: three sixteenths of a turn in all. |
#define | VOLCANO_ERUPTION 200 | Sparks thrown as a pillar starts. |
#define | VOLCANO_TRICKLE 4 | Sparks thrown each tick after. |
#define | VOLCANO_SPARK_POOL PARTICLE_POOL_COUNT | Sparks in PARTICLES. |
#define | VOLCANO_FLAME_PICTURE_ODD PICTURE_BYTES(FIRE_PILLAR) | The flame on odd ticks, then on even ticks, after the 34x104 column. |
#define | VOLCANO_FLAME_PICTURE_EVEN | |
#define | VOLCANO_SPARK_DROP 16 | Sparks are thrown from this far below the column's foot. |
#define | VOLCANO_SPARK_GRAVITY (Q_8_8(1) / 16) | How much faster a spark falls each tick: a sixteenth of a pixel a tick. |
#define | VOLCANO_SPARK_SIZE (life) (((life) - 17) / 8) | The mote size a spark is drawn at: a size smaller every 8 ticks of its life, and the smallest for its last 32, which is all of a trickled spark's. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunVolcano (BATTLE_EFFECT_PARM *args) | One, two or four columns of fire rise among the targets, each erupting in a fountain of sparks and knocking the targets back. |
Description
Volcano: pillars of fire scroll up among the targets over a flickering flame,
each erupting in a fountain of sparks and spitting more. Part of
battle_effect.c.
Macros in detail
VOLCANO_TICKS
#define VOLCANO_TICKS 96
Referenced by btEffectRunVolcano().
Definition at line 5 of file battle_effect_volcano.c.
VOLCANO_PILLAR_TICKS
#define VOLCANO_PILLAR_TICKS 64
The ticks the pillars burn, and the strongest variant's camera turns.
Referenced by btEffectRunVolcano().
Definition at line 7 of file battle_effect_volcano.c.
VOLCANO_CAMERA_SPIN
#define VOLCANO_CAMERA_SPIN (TRIG_TURN * 3 / 16 / VOLCANO_PILLAR_TICKS)
The camera's turn each of those ticks: three sixteenths of a turn in all.
Referenced by btEffectRunVolcano().
Definition at line 9 of file battle_effect_volcano.c.
VOLCANO_ERUPTION
#define VOLCANO_ERUPTION 200
Sparks thrown as a pillar starts.
Referenced by btEffectRunVolcano().
Definition at line 11 of file battle_effect_volcano.c.
VOLCANO_TRICKLE
#define VOLCANO_TRICKLE 4
Sparks thrown each tick after.
Referenced by btEffectRunVolcano().
Definition at line 13 of file battle_effect_volcano.c.
VOLCANO_SPARK_POOL
#define VOLCANO_SPARK_POOL PARTICLE_POOL_COUNT
Sparks in PARTICLES.
Referenced by btEffectRunVolcano().
Definition at line 15 of file battle_effect_volcano.c.
VOLCANO_FLAME_PICTURE_ODD
#define VOLCANO_FLAME_PICTURE_ODD PICTURE_BYTES(FIRE_PILLAR)
The flame on odd ticks, then on even ticks, after the 34x104 column.
Referenced by btEffectRunVolcano().
Definition at line 17 of file battle_effect_volcano.c.
VOLCANO_FLAME_PICTURE_EVEN
#define VOLCANO_FLAME_PICTURE_EVEN
Referenced by btEffectRunVolcano().
Definition at line 18 of file battle_effect_volcano.c.
VOLCANO_SPARK_DROP
#define VOLCANO_SPARK_DROP 16
Sparks are thrown from this far below the column's foot.
Referenced by btEffectRunVolcano().
Definition at line 21 of file battle_effect_volcano.c.
VOLCANO_SPARK_GRAVITY
#define VOLCANO_SPARK_GRAVITY (Q_8_8(1) / 16)
How much faster a spark falls each tick: a sixteenth of a pixel a tick.
Referenced by btEffectRunVolcano().
Definition at line 23 of file battle_effect_volcano.c.
VOLCANO_SPARK_SIZE
#define VOLCANO_SPARK_SIZE(life) (((life) - 17) / 8)
The mote size a spark is drawn at: a size smaller every 8 ticks of its life, and the smallest for its last 32, which is all of a trickled spark's.
Referenced by btEffectRunVolcano().
Definition at line 26 of file battle_effect_volcano.c.
Functions in detail
btEffectRunVolcano
void btEffectRunVolcano(BATTLE_EFFECT_PARM *args)
One, two or four columns of fire rise among the targets, each erupting in a fountain of sparks and knocking the targets back.
Abilities: Volcano, Eruption, Pyroclasm, Lava Shower, Molten Bath, Magma Storm.
References btCameraShake(), btEffectEndCanvasLayer(), btEffectPosProjectPoint(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btObjectGetStub(), btResourceLoadAndDecompress(), Sint32, syCloseEvent(), syCos(), syRandom(), sySin(), sySoundPlayStub(), VolcanoCounts, VolcanoDepths and VolcanoStartTicks.
Referenced by BattleEffectHandlers.
Definition at line 33 of file battle_effect_volcano.c.