src/battle_effect/battle_effect_djinn_heal.c
The comets and feathers of Balm, Tinder and Phoenix, the Zagan summon, and the camera turn Fire and Froth share. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | TUMBLING_QUADS_TICKS 64 | |
#define | TUMBLING_QUADS_PLACED 32 | The quads given a place at tick 0, of which the first TUMBLING_QUADS are drawn, each TUMBLING_QUADS_DELAY ticks after the one before. |
#define | TUMBLING_QUADS 16 | |
#define | TUMBLING_QUADS_DELAY 3 | |
#define | TUMBLING_QUADS_FLASH_TICK 56 | The tick every target flashes and the quads start to fade, 8 levels a tick. |
#define | TUMBLING_QUADS_TILT 3000 | The quads' circle is seen from a little above, tilted by this angle. |
#define | TUMBLING_QUADS_TEXTURE 10000 | Where the quads' texture (CometTexture, or FeatherSheet's feather) and the Djinni sit in the sprite sheet; the light line is at its start. |
#define | TUMBLING_QUADS_DJINNI 26048 | |
#define | TUMBLING_QUADS_DJINNI_SWAY 20 | How far the Djinni sways to either side, in screen pixels. |
#define | TUMBLING_QUADS_LINES 16 | The ring of light lines: TUMBLING_QUADS_LINES lines a pixel wide and TUMBLING_QUADS_LINE_HEIGHT tall, at level TUMBLING_QUADS_LINE_LEVEL, one level dimmer every two ticks. |
#define | TUMBLING_QUADS_LINE_HEIGHT 128 | |
#define | TUMBLING_QUADS_LINE_LEVEL 40 | |
#define | ZAGAN_PARTS 12 | Zagan is drawn by ZAGAN_PARTS sprites, each showing its own picture of zagan.png: part i shows ZAGAN_GALLOP_PICTURES + i as Zagan gallops and, but for the last part, ZAGAN_SWING_PICTURES + i as it swings its axe. |
#define | ZAGAN_GALLOP_PICTURES 12 | |
#define | ZAGAN_SWING_PICTURES 24 | |
#define | ZAGAN_TICKS 200 | ticks of the gallop, the swing and the rings |
#define | ZAGAN_BLOW_TICK 157 | The tick Zagan's axe falls: the screen flashes white the tick before, and the targets are struck four times, ZAGAN_STRIKE_INTERVAL ticks apart. |
#define | ZAGAN_STRIKE_INTERVAL 4 | |
#define | ZAGAN_RING_TILT 3000 | Zagan and its rings of fire are seen from a little above, tilted by this angle. |
#define | ZAGAN_FLAME_BAND 16384 | Where FlameBandTexture, the rings' texture, is decoded in the map cell buffer. |
#define | ZAGAN_BLAZE_WIDTH 60 | PetalSheet's four 60x100 pictures, a glowing half sphere, drawn in the orange palette as the blaze before Zagan as it gallops. |
#define | ZAGAN_BLAZE_HEIGHT 100 | |
#define | ZAGAN_STREAK (4 * PICTURE_BYTES(ZAGAN_BLAZE)) | The streaks that blow across the field, ZAGAN_STREAKS of them: three rows of a ramp ZAGAN_STREAK_WIDTH long from level ZAGAN_STREAK_LEVEL, after the blaze's pictures. |
#define | ZAGAN_STREAKS 20 | |
#define | ZAGAN_STREAK_WIDTH 32 | |
#define | ZAGAN_STREAK_LEVEL 16 | |
#define | ZAGAN_FAINT_MOTES 10 | The mote copies made in the battle sprite sheet, each 7 levels fainter. |
#define | ZAGAN_DARKEN_RED 6 | As the field darkens, each of its colours steps toward the battle background's own, less these levels of red, green and blue. |
#define | ZAGAN_DARKEN_GREEN 10 | |
#define | ZAGAN_DARKEN_BLUE 2 |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunTumblingQuads (BATTLE_EFFECT_PARM *args, Sint32 mode) | The revival of Balm, Tinder and Phoenix: TUMBLING_QUADS comets or feathers, each a textured quad, tumble down round the targets in a widening circle, or for Phoenix rise from them, TUMBLING_QUADS_DELAY ticks apart; with a prelude the Djinni circles above, then climbs away, and a ring of light lines spreads out. |
void | btEffectRunZagan (BATTLE_EFFECT_PARM *args) | "Earth's might enflamed." The battle flashes away to a white field and streaks blow across it; Zagan gallops in from the right in an orange blaze as the field darkens to the battle's own backdrop, and rears. |
void | btCameraApplyPhasedDelta (void) | Turns the battle camera's yaw by the effect's delta: every VBlank turns it at least half the delta, so it keeps turning on frames that end no tick of the effect. |
Description
The comets and feathers of Balm, Tinder and Phoenix, the Zagan summon, and
the camera turn Fire and Froth share. Part of battle_effect.c.
Macros in detail
TUMBLING_QUADS_TICKS
#define TUMBLING_QUADS_TICKS 64
Referenced by btEffectRunTumblingQuads().
Definition at line 4 of file battle_effect_djinn_heal.c.
TUMBLING_QUADS_PLACED
#define TUMBLING_QUADS_PLACED 32
The quads given a place at tick 0, of which the first TUMBLING_QUADS are
drawn, each TUMBLING_QUADS_DELAY ticks after the one before.
Referenced by btEffectRunTumblingQuads().
Definition at line 7 of file battle_effect_djinn_heal.c.
TUMBLING_QUADS
#define TUMBLING_QUADS 16
Referenced by btEffectRunTumblingQuads().
Definition at line 8 of file battle_effect_djinn_heal.c.
TUMBLING_QUADS_DELAY
#define TUMBLING_QUADS_DELAY 3
Referenced by btEffectRunTumblingQuads().
Definition at line 9 of file battle_effect_djinn_heal.c.
TUMBLING_QUADS_FLASH_TICK
#define TUMBLING_QUADS_FLASH_TICK 56
The tick every target flashes and the quads start to fade, 8 levels a tick.
Referenced by btEffectRunTumblingQuads().
Definition at line 11 of file battle_effect_djinn_heal.c.
TUMBLING_QUADS_TILT
#define TUMBLING_QUADS_TILT 3000
The quads' circle is seen from a little above, tilted by this angle.
Referenced by btEffectRunTumblingQuads().
Definition at line 13 of file battle_effect_djinn_heal.c.
TUMBLING_QUADS_TEXTURE
#define TUMBLING_QUADS_TEXTURE 10000
Where the quads' texture (CometTexture, or FeatherSheet's feather) and the Djinni sit in the sprite sheet; the light line is at its start.
Referenced by btEffectRunTumblingQuads().
Definition at line 17 of file battle_effect_djinn_heal.c.
TUMBLING_QUADS_DJINNI
#define TUMBLING_QUADS_DJINNI 26048
Referenced by btEffectRunTumblingQuads().
Definition at line 18 of file battle_effect_djinn_heal.c.
TUMBLING_QUADS_DJINNI_SWAY
#define TUMBLING_QUADS_DJINNI_SWAY 20
How far the Djinni sways to either side, in screen pixels.
Referenced by btEffectRunTumblingQuads().
Definition at line 20 of file battle_effect_djinn_heal.c.
TUMBLING_QUADS_LINES
#define TUMBLING_QUADS_LINES 16
The ring of light lines: TUMBLING_QUADS_LINES lines a pixel wide and
TUMBLING_QUADS_LINE_HEIGHT tall, at level TUMBLING_QUADS_LINE_LEVEL, one
level dimmer every two ticks.
Referenced by btEffectRunTumblingQuads().
Definition at line 24 of file battle_effect_djinn_heal.c.
TUMBLING_QUADS_LINE_HEIGHT
#define TUMBLING_QUADS_LINE_HEIGHT 128
Referenced by btEffectRunTumblingQuads().
Definition at line 25 of file battle_effect_djinn_heal.c.
TUMBLING_QUADS_LINE_LEVEL
#define TUMBLING_QUADS_LINE_LEVEL 40
Referenced by btEffectRunTumblingQuads().
Definition at line 26 of file battle_effect_djinn_heal.c.
ZAGAN_PARTS
#define ZAGAN_PARTS 12
Zagan is drawn by ZAGAN_PARTS sprites, each showing its own picture of
zagan.png: part i shows ZAGAN_GALLOP_PICTURES + i as Zagan gallops and, but
for the last part, ZAGAN_SWING_PICTURES + i as it swings its axe.
Referenced by btEffectRunZagan().
Definition at line 292 of file battle_effect_djinn_heal.c.
ZAGAN_GALLOP_PICTURES
#define ZAGAN_GALLOP_PICTURES 12
Referenced by btEffectRunZagan().
Definition at line 293 of file battle_effect_djinn_heal.c.
ZAGAN_SWING_PICTURES
#define ZAGAN_SWING_PICTURES 24
Referenced by btEffectRunZagan().
Definition at line 294 of file battle_effect_djinn_heal.c.
ZAGAN_TICKS
#define ZAGAN_TICKS 200
ticks of the gallop, the swing and the rings
Referenced by btEffectRunZagan().
Definition at line 296 of file battle_effect_djinn_heal.c.
ZAGAN_BLOW_TICK
#define ZAGAN_BLOW_TICK 157
The tick Zagan's axe falls: the screen flashes white the tick before, and the
targets are struck four times, ZAGAN_STRIKE_INTERVAL ticks apart.
Referenced by btEffectRunZagan().
Definition at line 299 of file battle_effect_djinn_heal.c.
ZAGAN_STRIKE_INTERVAL
#define ZAGAN_STRIKE_INTERVAL 4
Referenced by btEffectRunZagan().
Definition at line 300 of file battle_effect_djinn_heal.c.
ZAGAN_RING_TILT
#define ZAGAN_RING_TILT 3000
Zagan and its rings of fire are seen from a little above, tilted by this angle.
Referenced by btEffectRunZagan().
Definition at line 303 of file battle_effect_djinn_heal.c.
ZAGAN_FLAME_BAND
#define ZAGAN_FLAME_BAND 16384
Where FlameBandTexture, the rings' texture, is decoded in the map cell buffer.
Referenced by btEffectRunZagan().
Definition at line 306 of file battle_effect_djinn_heal.c.
ZAGAN_BLAZE_WIDTH
#define ZAGAN_BLAZE_WIDTH 60
PetalSheet's four 60x100 pictures, a glowing half sphere, drawn in the orange palette as the blaze before Zagan as it gallops.
Referenced by btEffectRunZagan().
Definition at line 310 of file battle_effect_djinn_heal.c.
ZAGAN_BLAZE_HEIGHT
#define ZAGAN_BLAZE_HEIGHT 100
Referenced by btEffectRunZagan().
Definition at line 311 of file battle_effect_djinn_heal.c.
ZAGAN_STREAK
#define ZAGAN_STREAK (4 * PICTURE_BYTES(ZAGAN_BLAZE))
The streaks that blow across the field, ZAGAN_STREAKS of them: three rows of
a ramp ZAGAN_STREAK_WIDTH long from level ZAGAN_STREAK_LEVEL, after the
blaze's pictures.
Referenced by btEffectRunZagan().
Definition at line 315 of file battle_effect_djinn_heal.c.
ZAGAN_STREAKS
#define ZAGAN_STREAKS 20
Referenced by btEffectRunZagan().
Definition at line 316 of file battle_effect_djinn_heal.c.
ZAGAN_STREAK_WIDTH
#define ZAGAN_STREAK_WIDTH 32
Referenced by btEffectRunZagan().
Definition at line 317 of file battle_effect_djinn_heal.c.
ZAGAN_STREAK_LEVEL
#define ZAGAN_STREAK_LEVEL 16
Referenced by btEffectRunZagan().
Definition at line 318 of file battle_effect_djinn_heal.c.
ZAGAN_FAINT_MOTES
#define ZAGAN_FAINT_MOTES 10
The mote copies made in the battle sprite sheet, each 7 levels fainter.
Referenced by btEffectRunZagan().
Definition at line 320 of file battle_effect_djinn_heal.c.
ZAGAN_DARKEN_RED
#define ZAGAN_DARKEN_RED 6
As the field darkens, each of its colours steps toward the battle background's own, less these levels of red, green and blue.
Referenced by btEffectRunZagan().
Definition at line 323 of file battle_effect_djinn_heal.c.
ZAGAN_DARKEN_GREEN
#define ZAGAN_DARKEN_GREEN 10
Referenced by btEffectRunZagan().
Definition at line 324 of file battle_effect_djinn_heal.c.
ZAGAN_DARKEN_BLUE
#define ZAGAN_DARKEN_BLUE 2
Referenced by btEffectRunZagan().
Definition at line 325 of file battle_effect_djinn_heal.c.
Functions in detail
btEffectRunTumblingQuads
void btEffectRunTumblingQuads(BATTLE_EFFECT_PARM *args, Sint32 mode)
The revival of Balm, Tinder and Phoenix: TUMBLING_QUADS comets or feathers,
each a textured quad, tumble down round the targets in a widening circle, or
for Phoenix rise from them, TUMBLING_QUADS_DELAY ticks apart; with a prelude
the Djinni circles above, then climbs away, and a ring of light lines spreads
out. At TUMBLING_QUADS_FLASH_TICK every target flashes and the quads fade.
Balm, Tinder and Phoenix run it in their modes.
References BattleEffectGroundSquareCorners, BattleEffectSquareMesh, btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), ProjectionWork, Sint32, syCloseEvent(), syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotZ(), syScale(), sySin(), sySoundPlayStub(), syTranslate() and syWordsCopy().
Referenced by btEffectRunBalm(), btEffectRunPhoenix() and btEffectRunTinder().
Definition at line 35 of file battle_effect_djinn_heal.c.
btEffectRunZagan
void btEffectRunZagan(BATTLE_EFFECT_PARM *args)
"Earth's might enflamed." The battle flashes away to a white field and
streaks blow across it; Zagan gallops in from the right in an orange blaze as
the field darkens to the battle's own backdrop, and rears. At ZAGAN_BLOW_TICK
the screen flashes white, a crescent of light sweeps the targets and Zagan's
axe falls, striking them four times while the screen shakes and rings of fire
spread. Holding A or B draws only every other tick.
Abilities: Zagan.
References BattleEffectCylinderCorners, BattleEffectCylinderMesh, BattleEffectMotePictures, BgScrollWork, btEffectBuildCanvasBlitters(), btEffectConfigureEffectDisplay(), btEffectCountDownBattlerTints(), btEffectCreateSprites(), btEffectEndCanvasLayer(), btEffectFillWhiteBand(), btEffectShowLivingTargets(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), fdSpriteStartAnimationStub(), PerWork, ProjectionWork, Sint32, syCloseEvent(), syHeapAllocateEWRAM(), syHeapRelease(), syInitMatrix(), syRandom(), syResourceGetTableEntry(), syRotX(), syScale(), sySetEvent(), sySoundPlayStub(), sySynch(), syTranslate(), ZaganChargePoints, ZaganGallopPoints, ZaganRingGrowth, ZaganRingHeights, ZaganRingStarts and ZaganUnitScale.
Referenced by btEffectRunSummon().
Definition at line 335 of file battle_effect_djinn_heal.c.
btCameraApplyPhasedDelta
void btCameraApplyPhasedDelta(void)
Turns the battle camera's yaw by the effect's delta: every VBlank turns it at least half the delta, so it keeps turning on frames that end no tick of the effect.
Referenced by btEffectRunFire(), btEffectRunFroth() and btEffectRunVoidBeam().
Definition at line 827 of file battle_effect_djinn_heal.c.