src/battle_effect/battle_effect_rising_dragon.c
Rising Dragon and Heartbreak. More…
Included by battle_effect.c.
Structures
| Name | Description | |
|---|---|---|
struct | STRIP_VERTEX | A strip's vertex, as btRenderTransformVertices reads it. |
Macros
| Name | Description | |
|---|---|---|
#define | FIRST_STRIKE_ANCHOR_PERCENT 150 | The first strike drives the target to this percent of its place's x, and every strike after it to LATER_STRIKE_ANCHOR_PERCENT, lowered in every edition but the Japanese. |
#define | LATER_STRIKE_ANCHOR_PERCENT | |
#define | DRAGON_SEGMENTS 33 | |
#define | DRAGON_CORNERS (DRAGON_SEGMENTS * 2) | The corners of one dragon's strip, two to a segment. |
#define | DRAGON_SPARKS 32 | The sparks each strike scatters. |
#define | DRAGON_ARC_END 950 | How far round its arc a dragon's head and tail travel, DRAGON_ARC_SPEED a tick. |
#define | DRAGON_ARC_SPEED 44 | |
#define | DRAGON_SCALE toFIXED(0.3169) | The strips' widths, as a fraction of their rows' widths, and the heads' scale. |
#define | DRAGON_SECOND_TURN 14192 | How far the second dragon's arc is turned from the first's. |
#define | DRAGON_HEAD_TURN 12384 | A head's turn at the start of its arc, less 32 for each unit of the arc. |
#define | RISING_DRAGON_VERTICES 4096 | The dragons' buffers in the map cell buffer: the strips' corners, then their transformed vertices, then the strip mesh. |
#define | RISING_DRAGON_STRIP 8192 | |
#define | RISING_DRAGON_HEAD_PICTURE 16384 | Where ClawSlashSheet, a dragon's head of flame, is decoded in the effect's pictures, in bytes. |
#define | FIGURE_TICKS 108 | |
#define | FIGURE_SPARK_BURST_TICK 30 | The burst at its hand flashes the screen |
#define | FIGURE_HIT_TICK 80 | the blow, which starts the result phase |
#define | FIGURE_BODY 0 | The parts of the figure in HeartbreakSheet, decoded into the map cell buffer one after another. |
#define | FIGURE_BODY_WIDTH 96 | |
#define | FIGURE_BODY_HEIGHT 83 | |
#define | FIGURE_ARM_CLENCHED (FIGURE_BODY + PICTURE_BYTES(FIGURE_BODY)) | |
#define | FIGURE_ARM_CLENCHED_WIDTH 42 | |
#define | FIGURE_ARM_CLENCHED_HEIGHT 35 | |
#define | FIGURE_ARM_REACHING | |
#define | FIGURE_ARM_REACHING_WIDTH 48 | |
#define | FIGURE_ARM_REACHING_HEIGHT 51 | |
#define | FIGURE_SPARK_BURST | A burst of sparks growing, four pictures (HeartbreakSparkBurstPictures). |
#define | FIGURE_HEART 20125 | A heart, then seven pictures of green flame burning it away (HeartbreakHeartBurnPictures); the first is also the heart held up. |
#define | FIGURE_HEART_WIDTH 32 | |
#define | FIGURE_HEART_HEIGHT 29 | |
#define | FIGURE_SWAY 8 | The figure sways on a circle of this radius, a 256th of a turn a tick. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunRisingDragon (BATTLE_EFFECT_PARM *args) | A dragon of blue flame (two at the next variant) rises from the caster and arcs onto the target: a scrolling band of flame of DRAGON_SEGMENTS segments, widening to its head, a dragon's head of flame. |
void | btEffectRunHeartbreak (BATTLE_EFFECT_PARM *args) | A great cloaked figure with a horned skull for a head sweeps down on the target from above the far side, swaying and fading in through the blend, its clawed hand reaching out. |
Description
Rising Dragon and Heartbreak. Part of battle_effect.c.
Macros in detail
FIRST_STRIKE_ANCHOR_PERCENT
#define FIRST_STRIKE_ANCHOR_PERCENT 150
The first strike drives the target to this percent of its place's x, and
every strike after it to LATER_STRIKE_ANCHOR_PERCENT, lowered in every
edition but the Japanese.
Referenced by btEffectRunRisingDragon().
Definition at line 6 of file battle_effect_rising_dragon.c.
LATER_STRIKE_ANCHOR_PERCENT
#define LATER_STRIKE_ANCHOR_PERCENT
Referenced by btEffectRunRisingDragon().
Definition at line 7 of file battle_effect_rising_dragon.c.
DRAGON_SEGMENTS
#define DRAGON_SEGMENTS 33
Referenced by btEffectRunRisingDragon().
Definition at line 10 of file battle_effect_rising_dragon.c.
DRAGON_CORNERS
#define DRAGON_CORNERS (DRAGON_SEGMENTS * 2)
The corners of one dragon's strip, two to a segment.
Referenced by btEffectRunRisingDragon().
Definition at line 12 of file battle_effect_rising_dragon.c.
DRAGON_SPARKS
#define DRAGON_SPARKS 32
The sparks each strike scatters.
Referenced by btEffectRunRisingDragon().
Definition at line 14 of file battle_effect_rising_dragon.c.
DRAGON_ARC_END
#define DRAGON_ARC_END 950
How far round its arc a dragon's head and tail travel, DRAGON_ARC_SPEED a
tick.
Referenced by btEffectRunRisingDragon().
Definition at line 17 of file battle_effect_rising_dragon.c.
DRAGON_ARC_SPEED
#define DRAGON_ARC_SPEED 44
Referenced by btEffectRunRisingDragon().
Definition at line 18 of file battle_effect_rising_dragon.c.
DRAGON_SCALE
#define DRAGON_SCALE toFIXED(0.3169)
The strips' widths, as a fraction of their rows' widths, and the heads' scale.
Referenced by btEffectRunRisingDragon().
Definition at line 21 of file battle_effect_rising_dragon.c.
DRAGON_SECOND_TURN
#define DRAGON_SECOND_TURN 14192
How far the second dragon's arc is turned from the first's.
Referenced by btEffectRunRisingDragon().
Definition at line 23 of file battle_effect_rising_dragon.c.
DRAGON_HEAD_TURN
#define DRAGON_HEAD_TURN 12384
A head's turn at the start of its arc, less 32 for each unit of the arc.
Referenced by btEffectRunRisingDragon().
Definition at line 25 of file battle_effect_rising_dragon.c.
RISING_DRAGON_VERTICES
#define RISING_DRAGON_VERTICES 4096
The dragons' buffers in the map cell buffer: the strips' corners, then their transformed vertices, then the strip mesh.
Referenced by btEffectRunRisingDragon().
Definition at line 28 of file battle_effect_rising_dragon.c.
RISING_DRAGON_STRIP
#define RISING_DRAGON_STRIP 8192
Referenced by btEffectRunRisingDragon().
Definition at line 29 of file battle_effect_rising_dragon.c.
RISING_DRAGON_HEAD_PICTURE
#define RISING_DRAGON_HEAD_PICTURE 16384
Where ClawSlashSheet, a dragon's head of flame, is decoded in the effect's pictures, in bytes.
Referenced by btEffectRunRisingDragon().
Definition at line 42 of file battle_effect_rising_dragon.c.
FIGURE_TICKS
#define FIGURE_TICKS 108
Referenced by btEffectRunHeartbreak().
Definition at line 395 of file battle_effect_rising_dragon.c.
FIGURE_SPARK_BURST_TICK
#define FIGURE_SPARK_BURST_TICK 30
The burst at its hand flashes the screen
Referenced by btEffectRunHeartbreak().
Definition at line 396 of file battle_effect_rising_dragon.c.
FIGURE_HIT_TICK
#define FIGURE_HIT_TICK 80
the blow, which starts the result phase
Referenced by btEffectRunHeartbreak().
Definition at line 397 of file battle_effect_rising_dragon.c.
FIGURE_BODY
#define FIGURE_BODY 0
The parts of the figure in HeartbreakSheet, decoded into the map cell buffer one after another.
Referenced by btEffectRunHeartbreak().
Definition at line 401 of file battle_effect_rising_dragon.c.
FIGURE_BODY_WIDTH
#define FIGURE_BODY_WIDTH 96
Referenced by btEffectRunHeartbreak().
Definition at line 402 of file battle_effect_rising_dragon.c.
FIGURE_BODY_HEIGHT
#define FIGURE_BODY_HEIGHT 83
Referenced by btEffectRunHeartbreak().
Definition at line 403 of file battle_effect_rising_dragon.c.
FIGURE_ARM_CLENCHED
#define FIGURE_ARM_CLENCHED (FIGURE_BODY + PICTURE_BYTES(FIGURE_BODY))
Referenced by btEffectRunHeartbreak().
Definition at line 404 of file battle_effect_rising_dragon.c.
FIGURE_ARM_CLENCHED_WIDTH
#define FIGURE_ARM_CLENCHED_WIDTH 42
Referenced by btEffectRunHeartbreak().
Definition at line 405 of file battle_effect_rising_dragon.c.
FIGURE_ARM_CLENCHED_HEIGHT
#define FIGURE_ARM_CLENCHED_HEIGHT 35
Referenced by btEffectRunHeartbreak().
Definition at line 406 of file battle_effect_rising_dragon.c.
FIGURE_ARM_REACHING
#define FIGURE_ARM_REACHING
Referenced by btEffectRunHeartbreak().
Definition at line 407 of file battle_effect_rising_dragon.c.
FIGURE_ARM_REACHING_WIDTH
#define FIGURE_ARM_REACHING_WIDTH 48
Referenced by btEffectRunHeartbreak().
Definition at line 409 of file battle_effect_rising_dragon.c.
FIGURE_ARM_REACHING_HEIGHT
#define FIGURE_ARM_REACHING_HEIGHT 51
Referenced by btEffectRunHeartbreak().
Definition at line 410 of file battle_effect_rising_dragon.c.
FIGURE_SPARK_BURST
#define FIGURE_SPARK_BURST
A burst of sparks growing, four pictures (HeartbreakSparkBurstPictures).
Referenced by btEffectRunHeartbreak().
Definition at line 412 of file battle_effect_rising_dragon.c.
FIGURE_HEART
#define FIGURE_HEART 20125
A heart, then seven pictures of green flame burning it away
(HeartbreakHeartBurnPictures); the first is also the heart held up.
Referenced by btEffectRunHeartbreak().
Definition at line 416 of file battle_effect_rising_dragon.c.
FIGURE_HEART_WIDTH
#define FIGURE_HEART_WIDTH 32
Referenced by btEffectRunHeartbreak().
Definition at line 417 of file battle_effect_rising_dragon.c.
FIGURE_HEART_HEIGHT
#define FIGURE_HEART_HEIGHT 29
Referenced by btEffectRunHeartbreak().
Definition at line 418 of file battle_effect_rising_dragon.c.
FIGURE_SWAY
#define FIGURE_SWAY 8
The figure sways on a circle of this radius, a 256th of a turn a tick.
Referenced by btEffectRunHeartbreak().
Definition at line 420 of file battle_effect_rising_dragon.c.
Functions in detail
btEffectRunRisingDragon
void btEffectRunRisingDragon(BATTLE_EFFECT_PARM *args)
A dragon of blue flame (two at the next variant) rises from the caster and
arcs onto the target: a scrolling band of flame of DRAGON_SEGMENTS segments,
widening to its head, a dragon's head of flame. Each strikes ten ticks after
the last, scattering DRAGON_SPARKS sparks.
Abilities: Rising Dragon (the Masamune's unleash).
References BattleEffectMotePictures, BattleEffectSquareCorners, BattleEffectSquareMesh, btCameraShake(), btEffectCountDownBattlerTints(), btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btParticleAdvanceWithGravity2D(), btRenderAllocateModelList(), btRenderBuildQuadStrip(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), fdActorSelectAnimationStub(), fdActorSetAnimationSpeedStub(), MapGridMetatileBuffer, Sint32, syCloseEvent(), syCos(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syMatrixScaleUniform(), syRandom(), syResourceGetTableEntry(), syRotY(), syRotZ(), syScale(), sySin(), sySoundPlayStub() and syTranslate().
Referenced by BattleEffectHandlers.
Definition at line 50 of file battle_effect_rising_dragon.c.
btEffectRunHeartbreak
void btEffectRunHeartbreak(BATTLE_EFFECT_PARM *args)
A great cloaked figure with a horned skull for a head sweeps down on the target from above the far side, swaying and fading in through the blend, its clawed hand reaching out. From tick 28 a burst of sparks grows at its hand and the screen flashes white; from tick 40 a heart is held up, from tick 48 the hand closes into a fist, and from tick 62 green flame burns the heart away. At tick 80 the blow lands and the result phase starts; from tick 92 the figure fades out and rises away, and the battle background is reloaded at the end. On the far side the whole figure is drawn mirrored.
Abilities: Heartbreak (the Thanatos Mace's unleash).
References btBackgroundLoadStub(), btCameraShake(), btEffectEndCanvasLayer(), btEffectPosProjectScaledBattler(), btEffectStartTiledCanvas(), btEffectTintBattler(), btEffectTransferCanvas(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), HeartbreakHeartBurnHeights, HeartbreakHeartBurnPictures, HeartbreakHeartBurnY, HeartbreakSparkBurstHeights, HeartbreakSparkBurstPictures, HeartbreakSparkBurstWidths, Sint32, syCloseEvent(), syCos(), sySin() and sySoundPlayStub().
Referenced by BattleEffectHandlers.
Definition at line 432 of file battle_effect_rising_dragon.c.