Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_kirin.c

The Kirin summon. More…

Included by battle_effect.c.

Macros

NameDescription
#defineKIRIN_CHARGE_TICKS 96ticks of the charge and the wall of fire
#defineKIRIN_SWEEP_TICKS 120ticks of Kirin's bound through the hoop
#defineKIRIN_BLOB_BYTES PICTURE_BYTES(FIRE_BLOB)
#defineKIRIN_SPRITES 9The sprites Kirin is drawn from, each at its KirinColumns and KirinRows.
#defineKIRIN_FOREST_SPEED_MAX 24The forest's scroll speeds up a pixel a tick to this, in pixels a tick.
#defineKIRIN_BOUND_HEIGHT 32How high Kirin rises in each bound, in its last leap away, and in the leap that opens its charge, in pixels.
#defineKIRIN_LEAP_AWAY_HEIGHT 96
#defineKIRIN_CHARGE_LEAP_HEIGHT 64
#defineKIRIN_HOOP_MOTES 64The hoop's motes, spaced evenly round it.
#defineKIRIN_TRAIL_MOTES 48The fire trail: the first of state->particles.
#defineKIRIN_COLUMN_BLOBS 6The fire blobs in the column that slides in, and how far it slides, in pixels.
#defineKIRIN_BLOB_SLIDE_MAX 40
#defineKIRIN_BURST_MOTES 32The motes a target bursts into, at PARTICLES[target * KIRIN_BURST_MOTES].
#defineKIRIN_BURSTS_FREED 10The charge frees the motes of ten bursts and draws those of the first six targets.
#defineKIRIN_BURSTS_DRAWN 6

Functions

NameDescription
voidbtEffectRunKirin (BATTLE_EFFECT_PARM *args)Over a scrolling forest Kirin bounds in through a hoop of light, trailing fire; then, behind the battle background, it charges across the targets, each bursting into motes as it passes, and a wall of fire sweeps over them and leaves them black.

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 3 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 4 of file battle_effect_kirin.c.

KIRIN_BLOB_BYTES

#define KIRIN_BLOB_BYTES PICTURE_BYTES(FIRE_BLOB)

Referenced by btEffectRunKirin().

Definition at line 6 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 9 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 11 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 14 of file battle_effect_kirin.c.

KIRIN_LEAP_AWAY_HEIGHT

#define KIRIN_LEAP_AWAY_HEIGHT 96

Referenced by btEffectRunKirin().

Definition at line 15 of file battle_effect_kirin.c.

KIRIN_CHARGE_LEAP_HEIGHT

#define KIRIN_CHARGE_LEAP_HEIGHT 64

Referenced by btEffectRunKirin().

Definition at line 16 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 18 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 20 of file battle_effect_kirin.c.

KIRIN_COLUMN_BLOBS

#define KIRIN_COLUMN_BLOBS 6

The fire blobs in the column that slides in, and how far it slides, in pixels.

Referenced by btEffectRunKirin().

Definition at line 23 of file battle_effect_kirin.c.

KIRIN_BLOB_SLIDE_MAX

#define KIRIN_BLOB_SLIDE_MAX 40

Referenced by btEffectRunKirin().

Definition at line 24 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 26 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 29 of file battle_effect_kirin.c.

KIRIN_BURSTS_DRAWN

#define KIRIN_BURSTS_DRAWN 6

Referenced by btEffectRunKirin().

Definition at line 30 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, behind the battle background, it charges 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(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btEffectWipeCanvas(), btMotionApplyKnockbackStub(), btProjectionUnit(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), KirinColumns, KirinRows, PerRepeat, ProjectionWork, Sint32, state, syCos(), syRandom(), sySetEvent(), sySin(), sySoundPlayStub() and sySynch().

Referenced by btEffectRunSummon().

Definition at line 38 of file battle_effect_kirin.c.