Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_boreas.c

The Boreas summon. More…

Included by battle_effect.c.

Macros

NameDescription
#defineBOREAS_OPENING_TICKS 288The two parts' lengths in ticks: the opening, of the crystals, the block and the spray; and the torrent.
#defineBOREAS_TORRENT_TICKS 146
#defineBOREAS_CRUMBLE_A_TICK 32The opening: the crystals crumble three times, the big ice block drops, lands on Boreas's head and sinks, and the spray streams out, a sparkle trailing each fleck from BOREAS_SPARKLES_TICK.
#defineBOREAS_CRUMBLE_B_TICK 64
#defineBOREAS_CRUMBLE_C_TICK 104
#defineBOREAS_BLOCK_DROP_TICK 160
#defineBOREAS_BLOCK_LAND_TICK 176
#defineBOREAS_BLOCK_SINK_TICK 208
#defineBOREAS_SPRAY_TICK 224
#defineBOREAS_SPARKLES_TICK (BOREAS_SPRAY_TICK + 4)
#defineBOREAS_TORRENT_RISE_TICK 16The torrent: crystals rise among the targets, then crash down as the streak of ice falls, and the targets take their damage.
#defineBOREAS_TORRENT_CRASH_TICK 72
#defineBOREAS_TORRENT_DAMAGE_TICK 96
#defineBOREAS_MASS_CRYSTALS 64The opening's particles in PARTICLES: the crystals of the mass, the shards that fly from it in two batches, and the flecks of spray, with a sparkle trailing each after them.
#defineBOREAS_SHARDS 64
#defineBOREAS_SPRAY 128
#defineBOREAS_SPRAY_SPARKLES (PARTICLES + BOREAS_SPRAY)
#defineBOREAS_TORRENT_CRYSTALS 64The torrent's particles: its crystals in state->particles and the sparkles among them in PARTICLES.
#defineBOREAS_TORRENT_SPARKLES 64
#defineBOREAS_CRYSTAL_WIDTH 24IceBlockSheet's first crystal, its big block and its streak.
#defineBOREAS_CRYSTAL_HEIGHT 48
#defineBOREAS_BIG_BLOCK_WIDTH 24
#defineBOREAS_BIG_BLOCK_HEIGHT 48
#defineBOREAS_STREAK_WIDTH 40
#defineBOREAS_STREAK_HEIGHT 80
#defineBOREAS_POINTS 16BoreasPoints has an x and a y for each of BOREAS_POINTS crystals: the mass's standing crystals, all BOREAS_POINTS at first, BOREAS_CRYSTALS_AFTER_CRUMBLE_A after the first crumble, BOREAS_CRYSTALS_AFTER_CRUMBLE_B after the second and none after the third, and the crystals that rise among the targets.
#defineBOREAS_POINT_X (crystal) BoreasPoints[crystal][0]
#defineBOREAS_POINT_Y (crystal) BoreasPoints[crystal][1]
#defineBOREAS_CRYSTALS_AFTER_CRUMBLE_A 10
#defineBOREAS_CRYSTALS_AFTER_CRUMBLE_B 6
#defineBOREAS_SPARKLE_LIFE 18The ticks a sparkle twinkles: its nine pictures, two ticks each.
#defineBOREAS_RAIN_LAST_REFILL_TICK 47Until this tick a raining crystal that falls past the battle view's foot starts again at the top; after it the sky clears and the rain heaps up over the targets for the crash.
#defineBOREAS_SHATTER_FLOOR_Y 135A crystal the crash throws is dropped once its foot sinks this far down, 15 pixels below the battle view.
#defineBOREAS_SPARKLE_SINK_TICK 54The glitter after the crash: a sparkle is born again a pixel lower for every two ticks past this one, so the glitter sinks through the targets, and none is born too late to twinkle out before the torrent ends.
#defineBOREAS_SPARKLE_LAST_BIRTH
#defineBOREAS_TARGETS_X_SHIFT 56How far left of the mass's crystals those rising among the targets stand.
#defineBOREAS_SPRAY_SIZE 16A spray picture's width and height.
#defineBOREAS_SPRITE_ROWS 3Boreas is three rows of three 32x32 sprites.
#defineBOREAS_SPRITES (BOREAS_SPRITE_ROWS * BOREAS_SPRITE_ROWS)

Enumerations

NameDescription
enumICE_BLOCK_SHEET_PICTURE { BOREAS_BIG_BLOCK, BOREAS_STREAK }The pictures in the ice block sprite sheet that this file draws; the tables in battle_effect_table.c read the rest.

Functions

NameDescription
voidbtEffectRunBoreas (BATTLE_EFFECT_PARM *args)The screen opens on Boreas standing in a mass of ice crystals over the violet sky; the crystals break away, a big ice block drops onto its head and a spray of ice streams out to the left.

Description

The Boreas summon. Part of battle_effect.c.

Macros in detail

BOREAS_OPENING_TICKS

#define BOREAS_OPENING_TICKS 288

The two parts' lengths in ticks: the opening, of the crystals, the block and the spray; and the torrent.

Referenced by btEffectRunBoreas().

Definition at line 5 of file battle_effect_boreas.c.

BOREAS_TORRENT_TICKS

#define BOREAS_TORRENT_TICKS 146

Referenced by btEffectRunBoreas().

Definition at line 6 of file battle_effect_boreas.c.

BOREAS_CRUMBLE_A_TICK

#define BOREAS_CRUMBLE_A_TICK 32

The opening: the crystals crumble three times, the big ice block drops, lands on Boreas's head and sinks, and the spray streams out, a sparkle trailing each fleck from BOREAS_SPARKLES_TICK.

Referenced by btEffectRunBoreas().

Definition at line 10 of file battle_effect_boreas.c.

BOREAS_CRUMBLE_B_TICK

#define BOREAS_CRUMBLE_B_TICK 64

Referenced by btEffectRunBoreas().

Definition at line 11 of file battle_effect_boreas.c.

BOREAS_CRUMBLE_C_TICK

#define BOREAS_CRUMBLE_C_TICK 104

Referenced by btEffectRunBoreas().

Definition at line 12 of file battle_effect_boreas.c.

BOREAS_BLOCK_DROP_TICK

#define BOREAS_BLOCK_DROP_TICK 160

Referenced by btEffectRunBoreas().

Definition at line 13 of file battle_effect_boreas.c.

BOREAS_BLOCK_LAND_TICK

#define BOREAS_BLOCK_LAND_TICK 176

Referenced by btEffectRunBoreas().

Definition at line 14 of file battle_effect_boreas.c.

BOREAS_BLOCK_SINK_TICK

#define BOREAS_BLOCK_SINK_TICK 208

Referenced by btEffectRunBoreas().

Definition at line 15 of file battle_effect_boreas.c.

BOREAS_SPRAY_TICK

#define BOREAS_SPRAY_TICK 224

Referenced by btEffectRunBoreas().

Definition at line 16 of file battle_effect_boreas.c.

BOREAS_SPARKLES_TICK

#define BOREAS_SPARKLES_TICK (BOREAS_SPRAY_TICK + 4)

Referenced by btEffectRunBoreas().

Definition at line 17 of file battle_effect_boreas.c.

BOREAS_TORRENT_RISE_TICK

#define BOREAS_TORRENT_RISE_TICK 16

The torrent: crystals rise among the targets, then crash down as the streak of ice falls, and the targets take their damage.

Referenced by btEffectRunBoreas().

Definition at line 20 of file battle_effect_boreas.c.

BOREAS_TORRENT_CRASH_TICK

#define BOREAS_TORRENT_CRASH_TICK 72

Referenced by btEffectRunBoreas().

Definition at line 21 of file battle_effect_boreas.c.

BOREAS_TORRENT_DAMAGE_TICK

#define BOREAS_TORRENT_DAMAGE_TICK 96

Referenced by btEffectRunBoreas().

Definition at line 22 of file battle_effect_boreas.c.

BOREAS_MASS_CRYSTALS

#define BOREAS_MASS_CRYSTALS 64

The opening's particles in PARTICLES: the crystals of the mass, the shards that fly from it in two batches, and the flecks of spray, with a sparkle trailing each after them.

Referenced by btEffectRunBoreas().

Definition at line 27 of file battle_effect_boreas.c.

BOREAS_SHARDS

#define BOREAS_SHARDS 64

Referenced by btEffectRunBoreas().

Definition at line 28 of file battle_effect_boreas.c.

BOREAS_SPRAY

#define BOREAS_SPRAY 128

Referenced by btEffectRunBoreas().

Definition at line 29 of file battle_effect_boreas.c.

BOREAS_SPRAY_SPARKLES

#define BOREAS_SPRAY_SPARKLES (PARTICLES + BOREAS_SPRAY)

Referenced by btEffectRunBoreas().

Definition at line 30 of file battle_effect_boreas.c.

BOREAS_TORRENT_CRYSTALS

#define BOREAS_TORRENT_CRYSTALS 64

The torrent's particles: its crystals in state->particles and the sparkles among them in PARTICLES.

Referenced by btEffectRunBoreas().

Definition at line 33 of file battle_effect_boreas.c.

BOREAS_TORRENT_SPARKLES

#define BOREAS_TORRENT_SPARKLES 64

Referenced by btEffectRunBoreas().

Definition at line 34 of file battle_effect_boreas.c.

BOREAS_CRYSTAL_WIDTH

#define BOREAS_CRYSTAL_WIDTH 24

IceBlockSheet's first crystal, its big block and its streak.

Referenced by btEffectRunBoreas().

Definition at line 37 of file battle_effect_boreas.c.

BOREAS_CRYSTAL_HEIGHT

#define BOREAS_CRYSTAL_HEIGHT 48

Referenced by btEffectRunBoreas().

Definition at line 38 of file battle_effect_boreas.c.

BOREAS_BIG_BLOCK_WIDTH

#define BOREAS_BIG_BLOCK_WIDTH 24

Referenced by btEffectRunBoreas().

Definition at line 39 of file battle_effect_boreas.c.

BOREAS_BIG_BLOCK_HEIGHT

#define BOREAS_BIG_BLOCK_HEIGHT 48

Referenced by btEffectRunBoreas().

Definition at line 40 of file battle_effect_boreas.c.

BOREAS_STREAK_WIDTH

#define BOREAS_STREAK_WIDTH 40

Referenced by btEffectRunBoreas().

Definition at line 41 of file battle_effect_boreas.c.

BOREAS_STREAK_HEIGHT

#define BOREAS_STREAK_HEIGHT 80

Referenced by btEffectRunBoreas().

Definition at line 42 of file battle_effect_boreas.c.

BOREAS_POINTS

#define BOREAS_POINTS 16

BoreasPoints has an x and a y for each of BOREAS_POINTS crystals: the mass's standing crystals, all BOREAS_POINTS at first, BOREAS_CRYSTALS_AFTER_CRUMBLE_A after the first crumble, BOREAS_CRYSTALS_AFTER_CRUMBLE_B after the second and none after the third, and the crystals that rise among the targets.

Referenced by btEffectRunBoreas().

Definition at line 61 of file battle_effect_boreas.c.

BOREAS_POINT_X

#define BOREAS_POINT_X(crystal) BoreasPoints[crystal][0]

Referenced by btEffectRunBoreas().

Definition at line 62 of file battle_effect_boreas.c.

BOREAS_POINT_Y

#define BOREAS_POINT_Y(crystal) BoreasPoints[crystal][1]

Referenced by btEffectRunBoreas().

Definition at line 63 of file battle_effect_boreas.c.

BOREAS_CRYSTALS_AFTER_CRUMBLE_A

#define BOREAS_CRYSTALS_AFTER_CRUMBLE_A 10

Referenced by btEffectRunBoreas().

Definition at line 64 of file battle_effect_boreas.c.

BOREAS_CRYSTALS_AFTER_CRUMBLE_B

#define BOREAS_CRYSTALS_AFTER_CRUMBLE_B 6

Referenced by btEffectRunBoreas().

Definition at line 65 of file battle_effect_boreas.c.

BOREAS_SPARKLE_LIFE

#define BOREAS_SPARKLE_LIFE 18

The ticks a sparkle twinkles: its nine pictures, two ticks each.

Referenced by btEffectRunBoreas().

Definition at line 67 of file battle_effect_boreas.c.

BOREAS_RAIN_LAST_REFILL_TICK

#define BOREAS_RAIN_LAST_REFILL_TICK 47

Until this tick a raining crystal that falls past the battle view's foot starts again at the top; after it the sky clears and the rain heaps up over the targets for the crash.

Referenced by btEffectRunBoreas().

Definition at line 71 of file battle_effect_boreas.c.

BOREAS_SHATTER_FLOOR_Y

#define BOREAS_SHATTER_FLOOR_Y 135

A crystal the crash throws is dropped once its foot sinks this far down, 15 pixels below the battle view.

Referenced by btEffectRunBoreas().

Definition at line 74 of file battle_effect_boreas.c.

BOREAS_SPARKLE_SINK_TICK

#define BOREAS_SPARKLE_SINK_TICK 54

The glitter after the crash: a sparkle is born again a pixel lower for every two ticks past this one, so the glitter sinks through the targets, and none is born too late to twinkle out before the torrent ends.

Referenced by btEffectRunBoreas().

Definition at line 78 of file battle_effect_boreas.c.

BOREAS_SPARKLE_LAST_BIRTH

#define BOREAS_SPARKLE_LAST_BIRTH

Referenced by btEffectRunBoreas().

Definition at line 79 of file battle_effect_boreas.c.

BOREAS_TARGETS_X_SHIFT

#define BOREAS_TARGETS_X_SHIFT 56

How far left of the mass's crystals those rising among the targets stand.

Referenced by btEffectRunBoreas().

Definition at line 82 of file battle_effect_boreas.c.

BOREAS_SPRAY_SIZE

#define BOREAS_SPRAY_SIZE 16

A spray picture's width and height.

Referenced by btEffectRunBoreas().

Definition at line 84 of file battle_effect_boreas.c.

BOREAS_SPRITE_ROWS

#define BOREAS_SPRITE_ROWS 3

Boreas is three rows of three 32x32 sprites.

Referenced by btEffectRunBoreas().

Definition at line 86 of file battle_effect_boreas.c.

BOREAS_SPRITES

#define BOREAS_SPRITES (BOREAS_SPRITE_ROWS * BOREAS_SPRITE_ROWS)

Referenced by btEffectRunBoreas().

Definition at line 87 of file battle_effect_boreas.c.

Enumerations in detail

ICE_BLOCK_SHEET_PICTURE

enum ICE_BLOCK_SHEET_PICTURE

The pictures in the ice block sprite sheet that this file draws; the tables in battle_effect_table.c read the rest.

EnumeratorValueDescription
BOREAS_BIG_BLOCK24 * 48 + 24 * 38 + 20 * 26 + 12 * 10 + 11 * 16 + 8 * 14 + 10 * 15After the three crystals and the four large shards.
BOREAS_STREAKBOREAS_BIG_BLOCK + 24 * 48 + 3 * (16 * 16) + 8 * 4 + 12 * 4 + 5 * 3 + 7 * 4 + 7 * 6 + 6 * 12 + 7 * 10After the big block, the three spray pictures and the seven small shards.

Definition at line 46 of file battle_effect_boreas.c.

Functions in detail

btEffectRunBoreas

void btEffectRunBoreas(BATTLE_EFFECT_PARM *args)

The screen opens on Boreas standing in a mass of ice crystals over the violet sky; the crystals break away, a big ice block drops onto its head and a spray of ice streams out to the left. Then a torrent of ice crystals sweeps down over the targets, crystals rise among them and burst, and a streak of ice falls through them.

Abilities: Boreas.

References BattleEffectSparklePictures, BattleEffectSparkleSizes, BgScrollWork, BoreasAnimations, BoreasCrystalHeights, BoreasCrystalPictures, BoreasCrystalWidths, BoreasDebrisHeights, BoreasDebrisPictures, BoreasDebrisWidths, BoreasFallHeights, BoreasFallPictures, BoreasFallWidths, BoreasRisingCrystalHeights, BoreasRisingCrystalPictures, BoreasRisingCrystalWidths, BoreasShakeOffsets, BoreasSprayHeights, BoreasSprayPictures, BoreasSprayWidths, btBackgroundLoadStub(), btCameraShake(), btEffectBuildWindowEdgeTable(), btEffectConfigureEffectDisplay(), btEffectCreateSprites(), btEffectEndCanvasLayer(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btEffectWipeCanvas(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), fdSpriteStartAnimationStub(), line, PerRepeat, ProjectionWork, Sint32, state, syCloseEvent(), syInitMatrix(), syRandom(), sySetEvent(), sySoundPlayStub() and sySynch().

Referenced by btEffectRunSummon().

Definition at line 96 of file battle_effect_boreas.c.