src/battle_effect/battle_effect_titan_blade.c
Titan Blade. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | TITAN_BLADE_SWORD_SPARKS | The sparks, in PARTICLES after the dust. |
#define | TITAN_BLADE_TICKS 102 | |
#define | TITAN_BLADE_STRIKE_TICK 60 | The sword strikes: the crash, the damage and the canvas filled bright. |
#define | TITAN_BLADE_SWORD_PICTURE 20000 | The sword picture in the sheet. |
#define | TITAN_BLADE_FLASHES 32 | Flashes set out. |
#define | TITAN_BLADE_DRAWN_FLASHES 16 | Flashes drawn, nearest first. |
#define | TITAN_BLADE_DUST 684 | Dust slots in PARTICLES, before the sparks. |
#define | TITAN_BLADE_FIRST_DUST 256 | Dust lit at once on tick 28. |
#define | TITAN_BLADE_DRAWN_DUST 342 | Dust moved and drawn. |
#define | TITAN_BLADE_SPARKS 340 | Sparks after the dust. |
#define | TITAN_BLADE_FLASH_PICTURES PICTURE_BYTES(FIRE_PILLAR) | The flash pictures in the sprite sheet, after the 34x104 fire pillar. |
#define | TITAN_BLADE_FLASH_START 25 | A flash counts down from TITAN_BLADE_FLASH_START, half a tick later for each flash, and shows its six pictures over the last of it, three ticks each. |
#define | TITAN_BLADE_FLASH_SHOWN 6 | |
#define | TITAN_BLADE_FLASH_TICKS 3 | |
#define | TITAN_BLADE_GROUND_Y 108 | The canvas row the sword, the dust and the sparks stop at: nothing below it is drawn. |
#define | TITAN_BLADE_RISE_START 32 | The dust rises and the fire pillar scrolls up for 32 ticks from tick 32, sixteen more dust each tick, the pillar's picture 16 pixels a tick; the sword sinks from then until it strikes. |
#define | TITAN_BLADE_RISE_TICKS 32 | |
#define | TITAN_BLADE_DUST_PER_TICK 16 | |
#define | TITAN_BLADE_PILLAR_SPEED 16 | |
#define | TITAN_BLADE_PILLAR_SCROLL_TICK 16 | The tick the pillar's scroll is counted from. |
#define | TITAN_BLADE_SWORD_WIDTH 36 | The sword's picture, and the row its top holds at once it has dropped. |
#define | TITAN_BLADE_SWORD_HEIGHT 120 | |
#define | TITAN_BLADE_SWORD_HOLD_TOP 16 | |
#define | TITAN_BLADE_LIGHT_DUST (dust, originX) | Lights a dust mote at a random spot of an oval on the ground round the sword, thrown up and out at a random speed. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunTitanBlade (BATTLE_EFFECT_PARM *args) | A huge gold-hilted sword drops onto the first target and is driven into the ground amid flashes, golden dust and sparks. |
Description
Titan Blade. Part of battle_effect.c.
Macros in detail
TITAN_BLADE_SWORD_SPARKS
#define TITAN_BLADE_SWORD_SPARKS
The sparks, in PARTICLES after the dust.
Referenced by btEffectRunTitanBlade().
Definition at line 4 of file battle_effect_titan_blade.c.
TITAN_BLADE_TICKS
#define TITAN_BLADE_TICKS 102
Referenced by btEffectRunTitanBlade().
Definition at line 8 of file battle_effect_titan_blade.c.
TITAN_BLADE_STRIKE_TICK
#define TITAN_BLADE_STRIKE_TICK 60
The sword strikes: the crash, the damage and the canvas filled bright.
Referenced by btEffectRunTitanBlade().
Definition at line 10 of file battle_effect_titan_blade.c.
TITAN_BLADE_SWORD_PICTURE
#define TITAN_BLADE_SWORD_PICTURE 20000
The sword picture in the sheet.
Referenced by btEffectRunTitanBlade().
Definition at line 12 of file battle_effect_titan_blade.c.
TITAN_BLADE_FLASHES
#define TITAN_BLADE_FLASHES 32
Flashes set out.
Referenced by btEffectRunTitanBlade().
Definition at line 14 of file battle_effect_titan_blade.c.
TITAN_BLADE_DRAWN_FLASHES
#define TITAN_BLADE_DRAWN_FLASHES 16
Flashes drawn, nearest first.
Referenced by btEffectRunTitanBlade().
Definition at line 16 of file battle_effect_titan_blade.c.
TITAN_BLADE_DUST
#define TITAN_BLADE_DUST 684
Dust slots in PARTICLES, before the sparks.
Referenced by btEffectRunTitanBlade().
Definition at line 18 of file battle_effect_titan_blade.c.
TITAN_BLADE_FIRST_DUST
#define TITAN_BLADE_FIRST_DUST 256
Dust lit at once on tick 28.
Referenced by btEffectRunTitanBlade().
Definition at line 20 of file battle_effect_titan_blade.c.
TITAN_BLADE_DRAWN_DUST
#define TITAN_BLADE_DRAWN_DUST 342
Dust moved and drawn.
Referenced by btEffectRunTitanBlade().
Definition at line 22 of file battle_effect_titan_blade.c.
TITAN_BLADE_SPARKS
#define TITAN_BLADE_SPARKS 340
Sparks after the dust.
Referenced by btEffectRunTitanBlade().
Definition at line 24 of file battle_effect_titan_blade.c.
TITAN_BLADE_FLASH_PICTURES
#define TITAN_BLADE_FLASH_PICTURES PICTURE_BYTES(FIRE_PILLAR)
The flash pictures in the sprite sheet, after the 34x104 fire pillar.
Referenced by btEffectRunTitanBlade().
Definition at line 26 of file battle_effect_titan_blade.c.
TITAN_BLADE_FLASH_START
#define TITAN_BLADE_FLASH_START 25
A flash counts down from TITAN_BLADE_FLASH_START, half a tick later for each
flash, and shows its six pictures over the last of it, three ticks each.
Referenced by btEffectRunTitanBlade().
Definition at line 29 of file battle_effect_titan_blade.c.
TITAN_BLADE_FLASH_SHOWN
#define TITAN_BLADE_FLASH_SHOWN 6
Referenced by btEffectRunTitanBlade().
Definition at line 30 of file battle_effect_titan_blade.c.
TITAN_BLADE_FLASH_TICKS
#define TITAN_BLADE_FLASH_TICKS 3
Referenced by btEffectRunTitanBlade().
Definition at line 31 of file battle_effect_titan_blade.c.
TITAN_BLADE_GROUND_Y
#define TITAN_BLADE_GROUND_Y 108
The canvas row the sword, the dust and the sparks stop at: nothing below it is drawn.
Referenced by btEffectRunTitanBlade().
Definition at line 34 of file battle_effect_titan_blade.c.
TITAN_BLADE_RISE_START
#define TITAN_BLADE_RISE_START 32
The dust rises and the fire pillar scrolls up for 32 ticks from tick 32, sixteen more dust each tick, the pillar's picture 16 pixels a tick; the sword sinks from then until it strikes.
Referenced by btEffectRunTitanBlade().
Definition at line 38 of file battle_effect_titan_blade.c.
TITAN_BLADE_RISE_TICKS
#define TITAN_BLADE_RISE_TICKS 32
Referenced by btEffectRunTitanBlade().
Definition at line 39 of file battle_effect_titan_blade.c.
TITAN_BLADE_DUST_PER_TICK
#define TITAN_BLADE_DUST_PER_TICK 16
Referenced by btEffectRunTitanBlade().
Definition at line 40 of file battle_effect_titan_blade.c.
TITAN_BLADE_PILLAR_SPEED
#define TITAN_BLADE_PILLAR_SPEED 16
Referenced by btEffectRunTitanBlade().
Definition at line 41 of file battle_effect_titan_blade.c.
TITAN_BLADE_PILLAR_SCROLL_TICK
#define TITAN_BLADE_PILLAR_SCROLL_TICK 16
The tick the pillar's scroll is counted from.
Referenced by btEffectRunTitanBlade().
Definition at line 43 of file battle_effect_titan_blade.c.
TITAN_BLADE_SWORD_WIDTH
#define TITAN_BLADE_SWORD_WIDTH 36
The sword's picture, and the row its top holds at once it has dropped.
Referenced by btEffectRunTitanBlade().
Definition at line 45 of file battle_effect_titan_blade.c.
TITAN_BLADE_SWORD_HEIGHT
#define TITAN_BLADE_SWORD_HEIGHT 120
Referenced by btEffectRunTitanBlade().
Definition at line 46 of file battle_effect_titan_blade.c.
TITAN_BLADE_SWORD_HOLD_TOP
#define TITAN_BLADE_SWORD_HOLD_TOP 16
Referenced by btEffectRunTitanBlade().
Definition at line 47 of file battle_effect_titan_blade.c.
TITAN_BLADE_LIGHT_DUST
#define TITAN_BLADE_LIGHT_DUST(dust, originX)
Lights a dust mote at a random spot of an oval on the ground round the sword, thrown up and out at a random speed.
Referenced by btEffectRunTitanBlade().
Definition at line 51 of file battle_effect_titan_blade.c.
Functions in detail
btEffectRunTitanBlade
void btEffectRunTitanBlade(BATTLE_EFFECT_PARM *args)
A huge gold-hilted sword drops onto the first target and is driven into the ground amid flashes, golden dust and sparks.
Abilities: Titan Blade.
References BattleEffectMotePictures, btCameraShake(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity2D(), btProjectionUnit(), btResourceLoadAndDecompress(), HeapSlots, Sint32, state, syCos(), syRandom(), sySin(), sySoundPlayStub(), syWordsFill(), TitanBladeDustGravity, TitanBladeFlashPictures and width.
Referenced by BattleEffectHandlers.
Definition at line 68 of file battle_effect_titan_blade.c.