src/battle_effect/battle_effect_kirin.c
The Kirin summon. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | KIRIN_CHARGE_TICKS 96 | ticks of the charge and the wall of fire |
#define | KIRIN_SWEEP_TICKS 120 | ticks of Kirin's bound through the hoop |
#define | KIRIN_BLOB_BYTES PICTURE_BYTES(FIRE_BLOB) | The bytes of one of the sprite sheet's four fire blobs. |
#define | KIRIN_SPRITES 9 | The sprites Kirin is drawn from, each at its KirinColumns and KirinRows. |
#define | KIRIN_FOREST_SPEED_MAX 24 | The forest's scroll speeds up a pixel a tick to this, in pixels a tick. |
#define | KIRIN_BOUND_HEIGHT 32 | How high Kirin rises in each bound, in its last leap away, and in the leap that opens its charge, in pixels. |
#define | KIRIN_LEAP_AWAY_HEIGHT 96 | |
#define | KIRIN_CHARGE_LEAP_HEIGHT 64 | |
#define | KIRIN_HOOP_MOTES 64 | The hoop's motes, spaced evenly round it. |
#define | KIRIN_HOOP_HALF_WIDTH (size) ((size) * 2) | The hoop's half-width and half-height for motes of size before the cap: an ellipse six times as tall as it is wide. |
#define | KIRIN_HOOP_HALF_HEIGHT (size) ((size) * 12) | |
#define | KIRIN_TRAIL_MOTES 48 | The fire trail: the first of state->particles. |
#define | KIRIN_BLOB_SLIDE_MAX 40 | How far the column of fire blobs slides in, in pixels. |
#define | KIRIN_BURST_MOTES 32 | The motes a target bursts into, at PARTICLES[target * KIRIN_BURST_MOTES]. |
#define | KIRIN_BURSTS_FREED 10 | The charge frees the motes of ten bursts and draws those of the first six targets. |
#define | KIRIN_BURSTS_DRAWN 6 |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunKirin (BATTLE_EFFECT_PARM *args) | Over a scrolling forest Kirin bounds in through a hoop of light, trailing fire; then it charges in from the right across the targets, each bursting into motes as it passes, and a wall of fire sweeps over them and leaves them black. |
Variables
| Name | Description | |
|---|---|---|
extern const SPR_SCALE | KirinSweepScale | Kirin's scale as he bounds in and lifts away. |
extern const SPR_SCALE | KirinChargeScale | Kirin's scale while he charges, copied each tick before the charge changes it. |
Description
The Kirin summon. Part of battle_effect.c.
Macros in detail
KIRIN_CHARGE_TICKS
#define KIRIN_CHARGE_TICKS 96
ticks of the charge and the wall of fire
Referenced by btEffectRunKirin().
Definition at line 6 of file battle_effect_kirin.c.
KIRIN_SWEEP_TICKS
#define KIRIN_SWEEP_TICKS 120
ticks of Kirin's bound through the hoop
Referenced by btEffectRunKirin().
Definition at line 7 of file battle_effect_kirin.c.
KIRIN_BLOB_BYTES
#define KIRIN_BLOB_BYTES PICTURE_BYTES(FIRE_BLOB)
The bytes of one of the sprite sheet's four fire blobs.
Referenced by btEffectRunKirin().
Definition at line 10 of file battle_effect_kirin.c.
KIRIN_SPRITES
#define KIRIN_SPRITES 9
The sprites Kirin is drawn from, each at its KirinColumns and KirinRows.
Referenced by btEffectRunKirin().
Definition at line 13 of file battle_effect_kirin.c.
KIRIN_FOREST_SPEED_MAX
#define KIRIN_FOREST_SPEED_MAX 24
The forest's scroll speeds up a pixel a tick to this, in pixels a tick.
Referenced by btEffectRunKirin().
Definition at line 15 of file battle_effect_kirin.c.
KIRIN_BOUND_HEIGHT
#define KIRIN_BOUND_HEIGHT 32
How high Kirin rises in each bound, in its last leap away, and in the leap that opens its charge, in pixels.
Referenced by btEffectRunKirin().
Definition at line 18 of file battle_effect_kirin.c.
KIRIN_LEAP_AWAY_HEIGHT
#define KIRIN_LEAP_AWAY_HEIGHT 96
Referenced by btEffectRunKirin().
Definition at line 19 of file battle_effect_kirin.c.
KIRIN_CHARGE_LEAP_HEIGHT
#define KIRIN_CHARGE_LEAP_HEIGHT 64
Referenced by btEffectRunKirin().
Definition at line 20 of file battle_effect_kirin.c.
KIRIN_HOOP_MOTES
#define KIRIN_HOOP_MOTES 64
The hoop's motes, spaced evenly round it.
Referenced by btEffectRunKirin().
Definition at line 22 of file battle_effect_kirin.c.
KIRIN_HOOP_HALF_WIDTH
#define KIRIN_HOOP_HALF_WIDTH(size) ((size) * 2)
The hoop's half-width and half-height for motes of size before the cap: an
ellipse six times as tall as it is wide.
Referenced by btEffectRunKirin().
Definition at line 25 of file battle_effect_kirin.c.
KIRIN_HOOP_HALF_HEIGHT
#define KIRIN_HOOP_HALF_HEIGHT(size) ((size) * 12)
Referenced by btEffectRunKirin().
Definition at line 26 of file battle_effect_kirin.c.
KIRIN_TRAIL_MOTES
#define KIRIN_TRAIL_MOTES 48
The fire trail: the first of state->particles.
Referenced by btEffectRunKirin().
Definition at line 28 of file battle_effect_kirin.c.
KIRIN_BLOB_SLIDE_MAX
#define KIRIN_BLOB_SLIDE_MAX 40
How far the column of fire blobs slides in, in pixels.
Referenced by btEffectRunKirin().
Definition at line 30 of file battle_effect_kirin.c.
KIRIN_BURST_MOTES
#define KIRIN_BURST_MOTES 32
The motes a target bursts into, at PARTICLES[target * KIRIN_BURST_MOTES].
Referenced by btEffectRunKirin().
Definition at line 32 of file battle_effect_kirin.c.
KIRIN_BURSTS_FREED
#define KIRIN_BURSTS_FREED 10
The charge frees the motes of ten bursts and draws those of the first six targets.
Referenced by btEffectRunKirin().
Definition at line 35 of file battle_effect_kirin.c.
KIRIN_BURSTS_DRAWN
#define KIRIN_BURSTS_DRAWN 6
Referenced by btEffectRunKirin().
Definition at line 36 of file battle_effect_kirin.c.
Functions in detail
btEffectRunKirin
void btEffectRunKirin(BATTLE_EFFECT_PARM *args)
Over a scrolling forest Kirin bounds in through a hoop of light, trailing fire; then it charges in from the right across the targets, each bursting into motes as it passes, and a wall of fire sweeps over them and leaves them black.
Abilities: Kirin.
References BattleEffectMotePictures, BgScrollWork, btBackgroundLoadStub(), btCameraShake(), btEffectConfigureEffectDisplay(), btEffectCreateSprites(), btEffectPosProjectBattler(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btEffectWipeCanvas(), btMotionApplyKnockbackStub(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), KirinChargeScale, KirinColumns, KirinRows, KirinSweepScale, PerWork, ProjectionWork, Sint32, syCos(), syRandom(), sySetEvent(), sySin(), sySoundPlayStub() and sySynch().
Referenced by btEffectRunSummon().
Definition at line 44 of file battle_effect_kirin.c.