Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_titan_blade.c

Titan Blade. More…

Included by battle_effect.c.

Macros

NameDescription
#defineTITAN_BLADE_SWORD_SPARKSThe sparks, in PARTICLES after the dust.
#defineTITAN_BLADE_TICKS 102
#defineTITAN_BLADE_STRIKE_TICK 60The sword strikes: the crash, the damage and the canvas filled bright.
#defineTITAN_BLADE_SWORD_PICTURE 20000The sword picture in the sheet.
#defineTITAN_BLADE_FLASHES 32Flashes set out.
#defineTITAN_BLADE_DRAWN_FLASHES 16Flashes drawn, nearest first.
#defineTITAN_BLADE_DUST 684Dust slots in PARTICLES, before the sparks.
#defineTITAN_BLADE_FIRST_DUST 256Dust lit at once on tick 28.
#defineTITAN_BLADE_DRAWN_DUST 342Dust moved and drawn.
#defineTITAN_BLADE_SPARKS 340Sparks after the dust.
#defineTITAN_BLADE_FLASH_PICTURES PICTURE_BYTES(FIRE_PILLAR)The flash pictures in the sprite sheet, after the 34x104 fire pillar.
#defineTITAN_BLADE_FLASH_START 25A 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.
#defineTITAN_BLADE_FLASH_SHOWN 6
#defineTITAN_BLADE_FLASH_TICKS 3
#defineTITAN_BLADE_GROUND_Y 108The canvas row the sword, the dust and the sparks stop at: nothing below it is drawn.
#defineTITAN_BLADE_RISE_START 32The 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.
#defineTITAN_BLADE_RISE_TICKS 32
#defineTITAN_BLADE_DUST_PER_TICK 16
#defineTITAN_BLADE_PILLAR_SPEED 16
#defineTITAN_BLADE_PILLAR_SCROLL_TICK 16The tick the pillar's scroll is counted from.
#defineTITAN_BLADE_SWORD_WIDTH 36The sword's picture, and the row its top holds at once it has dropped.
#defineTITAN_BLADE_SWORD_HEIGHT 120
#defineTITAN_BLADE_SWORD_HOLD_TOP 16
#defineTITAN_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

NameDescription
voidbtEffectRunTitanBlade (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.