src/battle_effect/battle_effect_bind.c
Bind's spinning triangle and rune, the unused Triangle Strike built on it, and an unused wash of blue down the battlefield. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | BIND_FLARE_PICTURES 4096 | Bind's sprite sheet: the rune, the flare pictures, then Luff's Djinni. |
#define | BIND_DJINNI_PICTURE 8192 | |
#define | BIND_CORNERS 3 | The corners of Bind's triangle. |
#define | BIND_SLOTS_PER_TARGET 32 | The particles each target's triangle keeps, and the flares along each edge. |
#define | BIND_EDGE_FLARES 24 | |
#define | BIND_RUNE_TICK 64 | The ticks the triangle of flares shrinks and turns before the rune shows, with the damage. |
#define | BIND_DJINNI_SWAY 20 | Luff's Djinni sways this far either way, a sway every 32 ticks. |
#define | TRIANGLE_STRIKE_LEAP_TICKS 16 | The ticks Triangle Strike's user takes to leap at the target. |
#define | BLUE_RAMP_PALETTE 2 | The blue ramp: one colour for each blue level, in BG palette BLUE_RAMP_PALETTE and then BLUE_RAMP_SECOND_PALETTE, each the next's red and green at half its blue. |
#define | BLUE_RAMP_SECOND_PALETTE 6 | |
#define | BLUE_RAMP_COLORS (RGB_LEVEL_MAX + 1) | |
#define | BLUE_RAMP_START_SPEED 16 | The ramp's edge moves down a quarter of its speed in rows a tick, from this speed and a row faster every four ticks, for at most BLUE_RAMP_TICKS or until it is past BLUE_RAMP_LAST_ROW. |
#define | BLUE_RAMP_TICKS 27 | |
#define | BLUE_RAMP_LAST_ROW 248 | |
#define | BLUE_RAMP_TILE_ROW_SHIFT 11 | A row of the picture's 32 tiles of 256 colours, as a shift: 2048 bytes. |
#define | BLUE_RAMP_PIXELS RamMapMetatileBuffer | The copy of the battle background the ramp is drawn in. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectConvertBackgroundToBlueRamp (void) | Turns the screen into shades of blue, top down, with a ragged edge; nothing calls it. |
void | btEffectRunBind (BATTLE_EFFECT_PARM *args) | A triangle of light spins and shrinks onto the first target, changing colour and leaving a fading trail, then a rune stands on the target. |
void | btEffectRunUnusedTriangleStrike (BATTLE_EFFECT_PARM *args) | Unused: no row of AbilityBattleEffects in either game names its kind, and the handler table is reached with no other kind (btEffectRunFromTable), so the player never sees it. |
Description
Bind's spinning triangle and rune, the unused Triangle Strike built on it,
and an unused wash of blue down the battlefield. Part of battle_effect.c.
Macros in detail
BIND_FLARE_PICTURES
#define BIND_FLARE_PICTURES 4096
Bind's sprite sheet: the rune, the flare pictures, then Luff's Djinni.
Referenced by btEffectRunBind() and btEffectRunUnusedTriangleStrike().
Definition at line 5 of file battle_effect_bind.c.
BIND_DJINNI_PICTURE
#define BIND_DJINNI_PICTURE 8192
Referenced by btEffectRunBind().
Definition at line 6 of file battle_effect_bind.c.
BIND_CORNERS
#define BIND_CORNERS 3
The corners of Bind's triangle.
Referenced by btEffectRunBind() and btEffectRunUnusedTriangleStrike().
Definition at line 8 of file battle_effect_bind.c.
BIND_SLOTS_PER_TARGET
#define BIND_SLOTS_PER_TARGET 32
The particles each target's triangle keeps, and the flares along each edge.
Referenced by btEffectRunBind() and btEffectRunUnusedTriangleStrike().
Definition at line 10 of file battle_effect_bind.c.
BIND_EDGE_FLARES
#define BIND_EDGE_FLARES 24
Referenced by btEffectRunBind() and btEffectRunUnusedTriangleStrike().
Definition at line 11 of file battle_effect_bind.c.
BIND_RUNE_TICK
#define BIND_RUNE_TICK 64
The ticks the triangle of flares shrinks and turns before the rune shows, with the damage.
Referenced by btEffectRunBind() and btEffectRunUnusedTriangleStrike().
Definition at line 14 of file battle_effect_bind.c.
BIND_DJINNI_SWAY
#define BIND_DJINNI_SWAY 20
Luff's Djinni sways this far either way, a sway every 32 ticks.
Referenced by btEffectRunBind().
Definition at line 16 of file battle_effect_bind.c.
TRIANGLE_STRIKE_LEAP_TICKS
#define TRIANGLE_STRIKE_LEAP_TICKS 16
The ticks Triangle Strike's user takes to leap at the target.
Referenced by btEffectRunUnusedTriangleStrike().
Definition at line 18 of file battle_effect_bind.c.
BLUE_RAMP_PALETTE
#define BLUE_RAMP_PALETTE 2
The blue ramp: one colour for each blue level, in BG palette
BLUE_RAMP_PALETTE and then BLUE_RAMP_SECOND_PALETTE, each the next's red and
green at half its blue. A pixel takes the ramp's colour for its brightest
channel, darkest at the top.
Referenced by btEffectConvertBackgroundToBlueRamp().
Definition at line 24 of file battle_effect_bind.c.
BLUE_RAMP_SECOND_PALETTE
#define BLUE_RAMP_SECOND_PALETTE 6
Referenced by btEffectConvertBackgroundToBlueRamp().
Definition at line 25 of file battle_effect_bind.c.
BLUE_RAMP_COLORS
#define BLUE_RAMP_COLORS (RGB_LEVEL_MAX + 1)
Referenced by btEffectConvertBackgroundToBlueRamp().
Definition at line 26 of file battle_effect_bind.c.
BLUE_RAMP_START_SPEED
#define BLUE_RAMP_START_SPEED 16
The ramp's edge moves down a quarter of its speed in rows a tick, from this
speed and a row faster every four ticks, for at most BLUE_RAMP_TICKS or until
it is past BLUE_RAMP_LAST_ROW.
Referenced by btEffectConvertBackgroundToBlueRamp().
Definition at line 30 of file battle_effect_bind.c.
BLUE_RAMP_TICKS
#define BLUE_RAMP_TICKS 27
Referenced by btEffectConvertBackgroundToBlueRamp().
Definition at line 31 of file battle_effect_bind.c.
BLUE_RAMP_LAST_ROW
#define BLUE_RAMP_LAST_ROW 248
Referenced by btEffectConvertBackgroundToBlueRamp().
Definition at line 32 of file battle_effect_bind.c.
BLUE_RAMP_TILE_ROW_SHIFT
#define BLUE_RAMP_TILE_ROW_SHIFT 11
A row of the picture's 32 tiles of 256 colours, as a shift: 2048 bytes.
Referenced by btEffectConvertBackgroundToBlueRamp().
Definition at line 34 of file battle_effect_bind.c.
BLUE_RAMP_PIXELS
#define BLUE_RAMP_PIXELS RamMapMetatileBuffer
The copy of the battle background the ramp is drawn in.
Referenced by btEffectConvertBackgroundToBlueRamp().
Definition at line 36 of file battle_effect_bind.c.
Functions in detail
btEffectConvertBackgroundToBlueRamp
void btEffectConvertBackgroundToBlueRamp(void)
Turns the screen into shades of blue, top down, with a ragged edge; nothing calls it.
References Sint32, syRandom(), sySynch() and syWordsCopy().
Definition at line 40 of file battle_effect_bind.c.
btEffectRunBind
void btEffectRunBind(BATTLE_EFFECT_PARM *args)
A triangle of light spins and shrinks onto the first target, changing colour and leaving a fading trail, then a rune stands on the target. Used as the Djinni Luff, the Jupiter Djinni appears over the target first.
Abilities: Bind; Luff.
References BindVertex, btEffectBuildCanvasBlitters(), btEffectEndCanvasLayer(), btEffectPosProjectPoint(), btEffectPosProjectScaledBattler(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTransferCanvas(), btEffectUpdatePhasePalette(), btObjectGetStub(), btResourceLoadAndDecompress(), Sint32, syCloseEvent(), syCos(), syInitMatrix(), syLookAtLoad(), syMatrixScaleVector(), syRotY(), syRotZ(), sySin() and sySoundPlayStub().
Referenced by BattleEffectHandlers.
Definition at line 134 of file battle_effect_bind.c.
btEffectRunUnusedTriangleStrike
void btEffectRunUnusedTriangleStrike(BATTLE_EFFECT_PARM *args)
Unused: no row of AbilityBattleEffects in either game names its kind, and the
handler table is reached with no other kind (btEffectRunFromTable), so the
player never sees it. Its tick loop is btEffectRunBind's, without the Djinni
prelude, and on tick 46 it starts the user's approach to the first target.
References BindTriangleStrikeVertex, btEffectEndCanvasLayer(), btEffectPosProjectPoint(), btEffectPosProjectScaledBattler(), btEffectTransferCanvas(), btEffectUpdatePhasePalette(), btMotionApproachTargetStub(), btObjectGetStub(), btResourceLoadAndDecompress(), Sint32, syCloseEvent(), syInitMatrix(), syLookAtLoad(), syMatrixScaleVector(), syRotY(), syRotZ() and sySoundPlayStub().
Referenced by BattleEffectHandlers.
Definition at line 339 of file battle_effect_bind.c.