Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_haures.c

The Haures summon, and the open cylinder a summon's band is drawn on. More…

Included by battle_effect.c.

Structures

NameDescription
structMOUND_VERTEXTwo corners of the mound: its upper edge, then its lower.

Macros

NameDescription
#defineHAURES_RUNE_PICTURE (RamMapMetatileBuffer + 16384)The rune, ChainTexture mirrored into its four quarters, laid in the map cell buffer past its first 16 KB, where the charge later keeps its sparks (EXTRA_PARTICLES).
#defineHAURES_COMING_TICKS 440Haures's coming lasts HAURES_COMING_TICKS unless A or B skips it, and the charge that follows HAURES_TICKS.
#defineHAURES_TICKS 92
#defineHAURES_SLASH_TICK 267
#defineHAURES_REAR_TICK 277
#defineHAURES_DIVE_TICK 397
#defineHAURES_DROP_INTERVAL 26The coming's other moments.
#defineHAURES_FIRST_LANDING 48
#defineHAURES_SWIRL_TICK 47
#defineHAURES_SWIRL_FADE_IN 64
#defineHAURES_RUMBLE_TICK 140
#defineHAURES_MOUND_TICK 74
#defineHAURES_GLOW_TICK 236
#defineHAURES_GLOW_TICKS 32
#defineHAURES_REDDEN_TICK 242
#defineHAURES_REDDEN_TICKS 22
#defineHAURES_CLATTER_TICK 271
#defineHAURES_CAVE_COOL_TICK 360
#defineHAURES_BODY_PIECES 11Haures's sprites: the beast's eleven pieces (SPRITE_HAURES), four violet flames (SPRITE_HAURES_FLAME) and two drops (SPRITE_HAURES_DOT), then the 64x64 stamp.
#defineHAURES_CLAW_PIECES 2
#defineHAURES_FIRST_FLAME 12
#defineHAURES_FLAME_COUNT 4
#defineHAURES_FIRST_DROP_SPRITE 16
#defineHAURES_DROP_SPRITE_COUNT 2
#defineHAURES_STAMP 18
#defineHAURES_DROPS 4The drops: four fall one after another, drawn by the two drop sprites in turn, and land at HAURES_DROP_LAND_Y, each then bursting into a flame that plays its four pictures over HAURES_FLAME_TICKS.
#defineHAURES_DROP_LAND_Y 120
#defineHAURES_FLAME_TICKS 24
#defineHAURES_STAMP_PALETTE 14The stamp's colours: OBJ palette HAURES_STAMP_PALETTE, a violet ramp the ember puffs are drawn in, each puff level a quarter of its own.
#defineHAURES_STAMP_FIRST_COLOR (HAURES_STAMP_PALETTE * PALETTE_COLORS)
#defineHAURES_CLAW_RISE_TICK 150From HAURES_CLAW_RISE_TICK the claw rises out of the mound, and the stamp grows from its own size by HAURES_STAMP_GROWTH a tick in height and twice that across, to twice its height and four times its width.
#defineHAURES_CLAW_LIFT_TICKS 10The claw speeds upward for its first HAURES_CLAW_LIFT_TICKS, drifts up and to the left for the HAURES_CLAW_DRIFT_TICKS from HAURES_CLAW_DRIFT_TICK, and swings up and to the right for the HAURES_CLAW_SWING_TICKS from HAURES_GLOW_TICK, slowing between.
#defineHAURES_CLAW_DRIFT_TICK 210
#defineHAURES_CLAW_DRIFT_TICKS 14
#defineHAURES_CLAW_SWING_TICKS 4
#defineHAURES_STAMP_GROWTH 564
#defineHAURES_PUFFS 8The ember puffs that rise in the stamp: EmberStreakSheet's six pictures, which take HAURES_PUFF_BYTES at the start of the effect's pictures, four ticks each.
#defineHAURES_PUFF_BYTES 6017
#defineHAURES_PUFF_PICTURE_COUNT 6
#defineHAURES_PUFF_PICTURE_TICKS 4
#defineHAURES_PUFF_TICKS
#defineHAURES_MOUND_POINTS 32The mound: a strip of 32 points, upper and lower edge each, so 31 quads, first an ellipse HAURES_POOL_WIDTH across and twice HAURES_POOL_DEPTH tall whose points step HAURES_POOL_STEP round it.
#defineHAURES_MOUND_QUADS (HAURES_MOUND_POINTS - 1)
#defineHAURES_POOL_WIDTH 128
#defineHAURES_POOL_DEPTH 18
#defineHAURES_POOL_STEP 992
#defineHAURES_MOUND_SHAPES 13The shapes the mound's upper edge morphs through in turn, HAURES_MOUND_POINTS heights each.
#defineHAURES_SWIRL_TILT 4000The red swirl the mound stands on: tilted back about 22 degrees, turning and growing to HAURES_SWIRL_SCALE_MAX, where the mound grows to HAURES_MOUND_SCALE_MAX.
#defineHAURES_SWIRL_SCALE_MAX (toFIXED(1875) / 2048)
#defineHAURES_MOUND_SCALE_MAX (toFIXED(2423) / 4096)
#defineHAURES_SWIRL_TEXTURE 16384Where SwirlTexture, 64 x 64 and dimmed to half, is decoded in the effect's pictures.
#defineHAURES_SWIRL_WIDTH 64
#defineHAURES_SWIRL_HEIGHT 64
#defineHAURES_CHAIN_WIDTH 64ChainTexture is a quarter of the rune, mirrored into the other three.
#defineHAURES_CHAIN_HEIGHT 64
#defineHAURES_RED_LEVELS 32The canvas levels' colours: levels below HAURES_RED_LEVELS are red, the rest violet, from black to white.
#defineHAURES_CAVE_FADE_RED 8The cave turns red as Haures rears: its red raised by HAURES_CAVE_FADE_RED, its green and blue lowered by HAURES_CAVE_FADE_DARK.
#defineHAURES_CAVE_FADE_DARK 12
#defineHAURES_RUNE_SCALE (tick)The rune's scale on a tick: it holds its size at HAURES_RUNE_GROW_TICK until then, and from then grows a sixteenth a tick (its height; it is half as wide).
#defineHAURES_RUNE_GROW_TICK 269
#defineHAURES_RUNE_HELD_SCALE (toFIXED(7567) / 4096)
#defineHAURES_ARCS 6BlueArcSheetB's six arcs (BLUE_ARC_WIDTH by BLUE_ARC_HEIGHT), each laid in a texture HAURES_ARC_TEXTURE_WIDTH wide.
#defineHAURES_ARC_TEXTURE_WIDTH 64
#defineHAURES_ARC_TEXTURE_BYTES (HAURES_ARC_TEXTURE_WIDTH * BLUE_ARC_HEIGHT)
#defineHAURES_SHARDS 31The shards the view breaks into as Haures rears: a row of HauresPartPoints each, its middle then its four corners in screen pixels.
#defineHAURES_SHARD_ROW 10
#defineHAURES_SHARD_CORNERS 4
#defineHAURES_SHARD_CORNER_BYTES (HAURES_SHARD_CORNERS * sizeof(MODEL_VERTEX))
#defineHAURES_SHARD_MESHES 2048
#defineHAURES_SHARD_MESH_BYTES 12
#defineSHARD_FACE (mesh, j, face)Face face of shard j's mesh: its three corners, then a byte no face sets.
#defineHAURES_SHATTER_X 120The point the shards fly apart from: the right edge of the view, whose width the canvas halves, at its middle height.
#defineHAURES_SHATTER_Y 60
#defineHAURES_SHATTER_SPREAD_X_SHIFT 12
#defineHAURES_SHARD_REACH 16A shard is drawn while its middle is no more than HAURES_SHARD_REACH outside the view.
#defineHAURES_DIVE_PULL_X_SHIFT 14As Haures dives away up and to the left, each tick adds to his speed a quarter of a pixel a tick more than the one before (toFIXED(1) >> (16 - HAURES_DIVE_PULL_X_SHIFT)); the eighth more that would lift him goes unused.
#defineHAURES_DIVE_PULL_Y_SHIFT 13
#defineHAURES_SPARK_COUNT 512The charge's sparks: HAURES_SPARKS_PER_TICK start each tick of the first two passes, each living HAURES_SPARK_LIFE ticks.
#defineHAURES_SPARKS_PER_TICK 12
#defineHAURES_SPARK_LIFE 16
#defineHAURES_CHARGE_PASS_TICKS 20Haures charges through the foes three times, a pass every HAURES_CHARGE_PASS_TICKS: from the right, from the left drawn mirrored, then from the right again.
#defineHAURES_STREAK_TICKS 16Each of the first two passes' streaks of fire lasts HAURES_STREAK_TICKS from its HauresBandStarts tick, swelling and narrowing again over half a turn of a sine.
#defineHAURES_SECOND_BAND_ROLL 10192The second pass's streaks of fire slash at about 56 degrees, where the first's slash at -45.
#defineHAURES_BAND_INSET 4The band that opens across the canvas from tick 56, HAURES_BAND_INSET in from each side, its edges HAURES_BAND_REACH above and below its middle.
#defineHAURES_BAND_MIDDLE 60
#defineHAURES_BAND_REACH 80
#defineFIRST_RING_Y -36The two rings sit at y = -36 and y = -18.
#defineRING_SPACING 18
#defineCOLUMN_WIDTH 8Each side of the band shows an 8 x 16 column of the texture.
#defineCOLUMN_HEIGHT 16
#defineCYLINDER_RADIUS 96

Functions

NameDescription
voidbtEffectRunHaures (BATTLE_EFFECT_PARM *args)Haures: in a blue cavern four drops fall and burst into violet flames, a red swirl opens on the ground and a dark pool on it heaves up into a mound; the beast's claw rises from it in violet flame, a rune flashes as the claw slashes, and the dark breaks into shards to show him circling in a reddened cave; then he charges through the foes three times in streaks of fire that end in a flash of light.
voidbtMeshBuildCylinderBand (MESH_VERTEX *vertices, MESH_TRIANGLE *triangles, Sint32 segments)Builds the mesh of an open cylinder, the band Coatlicue's coil and Eclipse's rings are drawn on: two rings of segments vertices of radius CYLINDER_RADIUS around the y axis, and two textured triangles for each side of the band, joining the first ring (texture row 0) to the second (row 15).

Variables

NameDescription
extern MOUND_VERTEXHauresMoundCorners []The mound strip's corners, rebuilt each tick from the morphing shapes.
extern const Uint16HauresBodyPiecePoints [][2]Where each of Haures's eleven pieces is drawn, x and y, on a 32-pixel grid.

Description

The Haures summon, and the open cylinder a summon's band is drawn on. Part of battle_effect.c.

Macros in detail

HAURES_RUNE_PICTURE

#define HAURES_RUNE_PICTURE (RamMapMetatileBuffer + 16384)

The rune, ChainTexture mirrored into its four quarters, laid in the map cell buffer past its first 16 KB, where the charge later keeps its sparks (EXTRA_PARTICLES).

Referenced by btEffectRunHaures().

Definition at line 14 of file battle_effect_haures.c.

HAURES_COMING_TICKS

#define HAURES_COMING_TICKS 440

Haures's coming lasts HAURES_COMING_TICKS unless A or B skips it, and the charge that follows HAURES_TICKS. In the coming the claw slashes across the rune at HAURES_SLASH_TICK, Haures rears at HAURES_REAR_TICK, and he dives away from HAURES_DIVE_TICK.

Referenced by btEffectRunHaures().

Definition at line 23 of file battle_effect_haures.c.

HAURES_TICKS

#define HAURES_TICKS 92

Referenced by btEffectRunHaures().

Definition at line 24 of file battle_effect_haures.c.

HAURES_SLASH_TICK

#define HAURES_SLASH_TICK 267

Referenced by btEffectRunHaures().

Definition at line 25 of file battle_effect_haures.c.

HAURES_REAR_TICK

#define HAURES_REAR_TICK 277

Referenced by btEffectRunHaures().

Definition at line 26 of file battle_effect_haures.c.

HAURES_DIVE_TICK

#define HAURES_DIVE_TICK 397

Referenced by btEffectRunHaures().

Definition at line 27 of file battle_effect_haures.c.

HAURES_DROP_INTERVAL

#define HAURES_DROP_INTERVAL 26

The coming's other moments. Drop i starts falling after tick i * HAURES_DROP_INTERVAL, and a whoosh plays as each lands, the first at HAURES_FIRST_LANDING. The red swirl opens at HAURES_SWIRL_TICK and comes up from dark over HAURES_SWIRL_FADE_IN ticks; a rumble plays at HAURES_RUMBLE_TICK. The pool heaves up through the mound's shapes from HAURES_MOUND_TICK and glows brighter a level a tick for the HAURES_GLOW_TICKS from HAURES_GLOW_TICK, while the cave's red rises a level every other tick for the HAURES_REDDEN_TICKS from HAURES_REDDEN_TICK. A clatter follows the slash at HAURES_CLATTER_TICK. From HAURES_CAVE_COOL_TICK the reddened cave cools, its red down a level every four ticks and its blue up one every eight.

Referenced by btEffectRunHaures().

Definition at line 38 of file battle_effect_haures.c.

HAURES_FIRST_LANDING

#define HAURES_FIRST_LANDING 48

Referenced by btEffectRunHaures().

Definition at line 39 of file battle_effect_haures.c.

HAURES_SWIRL_TICK

#define HAURES_SWIRL_TICK 47

Referenced by btEffectRunHaures().

Definition at line 40 of file battle_effect_haures.c.

HAURES_SWIRL_FADE_IN

#define HAURES_SWIRL_FADE_IN 64

Referenced by btEffectRunHaures().

Definition at line 41 of file battle_effect_haures.c.

HAURES_RUMBLE_TICK

#define HAURES_RUMBLE_TICK 140

Referenced by btEffectRunHaures().

Definition at line 42 of file battle_effect_haures.c.

HAURES_MOUND_TICK

#define HAURES_MOUND_TICK 74

Referenced by btEffectRunHaures().

Definition at line 43 of file battle_effect_haures.c.

HAURES_GLOW_TICK

#define HAURES_GLOW_TICK 236

Referenced by btEffectRunHaures().

Definition at line 44 of file battle_effect_haures.c.

HAURES_GLOW_TICKS

#define HAURES_GLOW_TICKS 32

Referenced by btEffectRunHaures().

Definition at line 45 of file battle_effect_haures.c.

HAURES_REDDEN_TICK

#define HAURES_REDDEN_TICK 242

Referenced by btEffectRunHaures().

Definition at line 46 of file battle_effect_haures.c.

HAURES_REDDEN_TICKS

#define HAURES_REDDEN_TICKS 22

Referenced by btEffectRunHaures().

Definition at line 47 of file battle_effect_haures.c.

HAURES_CLATTER_TICK

#define HAURES_CLATTER_TICK 271

Referenced by btEffectRunHaures().

Definition at line 48 of file battle_effect_haures.c.

HAURES_CAVE_COOL_TICK

#define HAURES_CAVE_COOL_TICK 360

Referenced by btEffectRunHaures().

Definition at line 49 of file battle_effect_haures.c.

HAURES_BODY_PIECES

#define HAURES_BODY_PIECES 11

Haures's sprites: the beast's eleven pieces (SPRITE_HAURES), four violet flames (SPRITE_HAURES_FLAME) and two drops (SPRITE_HAURES_DOT), then the 64x64 stamp. The coming shows only the first two pieces, its raised claw, until the tick he rears.

Referenced by btEffectRunHaures().

Definition at line 54 of file battle_effect_haures.c.

HAURES_CLAW_PIECES

#define HAURES_CLAW_PIECES 2

Referenced by btEffectRunHaures().

Definition at line 55 of file battle_effect_haures.c.

HAURES_FIRST_FLAME

#define HAURES_FIRST_FLAME 12

Referenced by btEffectRunHaures().

Definition at line 56 of file battle_effect_haures.c.

HAURES_FLAME_COUNT

#define HAURES_FLAME_COUNT 4

Referenced by btEffectRunHaures().

Definition at line 57 of file battle_effect_haures.c.

HAURES_FIRST_DROP_SPRITE

#define HAURES_FIRST_DROP_SPRITE 16

Referenced by btEffectRunHaures().

Definition at line 58 of file battle_effect_haures.c.

HAURES_DROP_SPRITE_COUNT

#define HAURES_DROP_SPRITE_COUNT 2

Referenced by btEffectRunHaures().

Definition at line 59 of file battle_effect_haures.c.

HAURES_STAMP

#define HAURES_STAMP 18

Referenced by btEffectRunHaures().

Definition at line 60 of file battle_effect_haures.c.

HAURES_DROPS

#define HAURES_DROPS 4

The drops: four fall one after another, drawn by the two drop sprites in turn, and land at HAURES_DROP_LAND_Y, each then bursting into a flame that plays its four pictures over HAURES_FLAME_TICKS.

Referenced by btEffectRunHaures().

Definition at line 64 of file battle_effect_haures.c.

HAURES_DROP_LAND_Y

#define HAURES_DROP_LAND_Y 120

Referenced by btEffectRunHaures().

Definition at line 65 of file battle_effect_haures.c.

HAURES_FLAME_TICKS

#define HAURES_FLAME_TICKS 24

Referenced by btEffectRunHaures().

Definition at line 66 of file battle_effect_haures.c.

HAURES_STAMP_PALETTE

#define HAURES_STAMP_PALETTE 14

The stamp's colours: OBJ palette HAURES_STAMP_PALETTE, a violet ramp the ember puffs are drawn in, each puff level a quarter of its own.

Referenced by btEffectRunHaures().

Definition at line 69 of file battle_effect_haures.c.

HAURES_STAMP_FIRST_COLOR

#define HAURES_STAMP_FIRST_COLOR (HAURES_STAMP_PALETTE * PALETTE_COLORS)

Referenced by btEffectRunHaures().

Definition at line 70 of file battle_effect_haures.c.

HAURES_CLAW_RISE_TICK

#define HAURES_CLAW_RISE_TICK 150

From HAURES_CLAW_RISE_TICK the claw rises out of the mound, and the stamp grows from its own size by HAURES_STAMP_GROWTH a tick in height and twice that across, to twice its height and four times its width.

Referenced by btEffectRunHaures().

Definition at line 74 of file battle_effect_haures.c.

HAURES_CLAW_LIFT_TICKS

#define HAURES_CLAW_LIFT_TICKS 10

The claw speeds upward for its first HAURES_CLAW_LIFT_TICKS, drifts up and to the left for the HAURES_CLAW_DRIFT_TICKS from HAURES_CLAW_DRIFT_TICK, and swings up and to the right for the HAURES_CLAW_SWING_TICKS from HAURES_GLOW_TICK, slowing between.

Referenced by btEffectRunHaures().

Definition at line 79 of file battle_effect_haures.c.

HAURES_CLAW_DRIFT_TICK

#define HAURES_CLAW_DRIFT_TICK 210

Referenced by btEffectRunHaures().

Definition at line 80 of file battle_effect_haures.c.

HAURES_CLAW_DRIFT_TICKS

#define HAURES_CLAW_DRIFT_TICKS 14

Referenced by btEffectRunHaures().

Definition at line 81 of file battle_effect_haures.c.

HAURES_CLAW_SWING_TICKS

#define HAURES_CLAW_SWING_TICKS 4

Referenced by btEffectRunHaures().

Definition at line 82 of file battle_effect_haures.c.

HAURES_STAMP_GROWTH

#define HAURES_STAMP_GROWTH 564

Referenced by btEffectRunHaures().

Definition at line 83 of file battle_effect_haures.c.

HAURES_PUFFS

#define HAURES_PUFFS 8

The ember puffs that rise in the stamp: EmberStreakSheet's six pictures, which take HAURES_PUFF_BYTES at the start of the effect's pictures, four ticks each.

Referenced by btEffectRunHaures().

Definition at line 87 of file battle_effect_haures.c.

HAURES_PUFF_BYTES

#define HAURES_PUFF_BYTES 6017

Referenced by btEffectRunHaures().

Definition at line 88 of file battle_effect_haures.c.

HAURES_PUFF_PICTURE_COUNT

#define HAURES_PUFF_PICTURE_COUNT 6

Referenced by btEffectRunHaures().

Definition at line 89 of file battle_effect_haures.c.

HAURES_PUFF_PICTURE_TICKS

#define HAURES_PUFF_PICTURE_TICKS 4

Referenced by btEffectRunHaures().

Definition at line 90 of file battle_effect_haures.c.

HAURES_PUFF_TICKS

#define HAURES_PUFF_TICKS

Referenced by btEffectRunHaures().

Definition at line 91 of file battle_effect_haures.c.

HAURES_MOUND_POINTS

#define HAURES_MOUND_POINTS 32

The mound: a strip of 32 points, upper and lower edge each, so 31 quads, first an ellipse HAURES_POOL_WIDTH across and twice HAURES_POOL_DEPTH tall whose points step HAURES_POOL_STEP round it.

Referenced by btEffectRunHaures().

Definition at line 96 of file battle_effect_haures.c.

HAURES_MOUND_QUADS

#define HAURES_MOUND_QUADS (HAURES_MOUND_POINTS - 1)

Referenced by btEffectRunHaures().

Definition at line 97 of file battle_effect_haures.c.

HAURES_POOL_WIDTH

#define HAURES_POOL_WIDTH 128

Referenced by btEffectRunHaures().

Definition at line 98 of file battle_effect_haures.c.

HAURES_POOL_DEPTH

#define HAURES_POOL_DEPTH 18

Referenced by btEffectRunHaures().

Definition at line 99 of file battle_effect_haures.c.

HAURES_POOL_STEP

#define HAURES_POOL_STEP 992

Referenced by btEffectRunHaures().

Definition at line 100 of file battle_effect_haures.c.

HAURES_MOUND_SHAPES

#define HAURES_MOUND_SHAPES 13

The shapes the mound's upper edge morphs through in turn, HAURES_MOUND_POINTS heights each.

Referenced by btEffectRunHaures().

Definition at line 103 of file battle_effect_haures.c.

HAURES_SWIRL_TILT

#define HAURES_SWIRL_TILT 4000

The red swirl the mound stands on: tilted back about 22 degrees, turning and growing to HAURES_SWIRL_SCALE_MAX, where the mound grows to HAURES_MOUND_SCALE_MAX.

Referenced by btEffectRunHaures().

Definition at line 107 of file battle_effect_haures.c.

HAURES_SWIRL_SCALE_MAX

#define HAURES_SWIRL_SCALE_MAX (toFIXED(1875) / 2048)

Referenced by btEffectRunHaures().

Definition at line 108 of file battle_effect_haures.c.

HAURES_MOUND_SCALE_MAX

#define HAURES_MOUND_SCALE_MAX (toFIXED(2423) / 4096)

Referenced by btEffectRunHaures().

Definition at line 109 of file battle_effect_haures.c.

HAURES_SWIRL_TEXTURE

#define HAURES_SWIRL_TEXTURE 16384

Where SwirlTexture, 64 x 64 and dimmed to half, is decoded in the effect's pictures.

Referenced by btEffectRunHaures().

Definition at line 112 of file battle_effect_haures.c.

HAURES_SWIRL_WIDTH

#define HAURES_SWIRL_WIDTH 64

Definition at line 113 of file battle_effect_haures.c.

HAURES_SWIRL_HEIGHT

#define HAURES_SWIRL_HEIGHT 64

Definition at line 114 of file battle_effect_haures.c.

HAURES_CHAIN_WIDTH

#define HAURES_CHAIN_WIDTH 64

ChainTexture is a quarter of the rune, mirrored into the other three.

Referenced by btEffectRunHaures().

Definition at line 116 of file battle_effect_haures.c.

HAURES_CHAIN_HEIGHT

#define HAURES_CHAIN_HEIGHT 64

Referenced by btEffectRunHaures().

Definition at line 117 of file battle_effect_haures.c.

HAURES_RED_LEVELS

#define HAURES_RED_LEVELS 32

The canvas levels' colours: levels below HAURES_RED_LEVELS are red, the rest violet, from black to white.

Referenced by btEffectRunHaures().

Definition at line 120 of file battle_effect_haures.c.

HAURES_CAVE_FADE_RED

#define HAURES_CAVE_FADE_RED 8

The cave turns red as Haures rears: its red raised by HAURES_CAVE_FADE_RED, its green and blue lowered by HAURES_CAVE_FADE_DARK.

Referenced by btEffectRunHaures().

Definition at line 123 of file battle_effect_haures.c.

HAURES_CAVE_FADE_DARK

#define HAURES_CAVE_FADE_DARK 12

Referenced by btEffectRunHaures().

Definition at line 124 of file battle_effect_haures.c.

HAURES_RUNE_SCALE

#define HAURES_RUNE_SCALE(tick)

The rune's scale on a tick: it holds its size at HAURES_RUNE_GROW_TICK until then, and from then grows a sixteenth a tick (its height; it is half as wide).

Referenced by btEffectRunHaures().

Definition at line 128 of file battle_effect_haures.c.

HAURES_RUNE_GROW_TICK

#define HAURES_RUNE_GROW_TICK 269

Referenced by btEffectRunHaures().

Definition at line 131 of file battle_effect_haures.c.

HAURES_RUNE_HELD_SCALE

#define HAURES_RUNE_HELD_SCALE (toFIXED(7567) / 4096)

Referenced by btEffectRunHaures().

Definition at line 132 of file battle_effect_haures.c.

HAURES_ARCS

#define HAURES_ARCS 6

BlueArcSheetB's six arcs (BLUE_ARC_WIDTH by BLUE_ARC_HEIGHT), each laid in a texture HAURES_ARC_TEXTURE_WIDTH wide.

Referenced by btEffectRunHaures().

Definition at line 135 of file battle_effect_haures.c.

HAURES_ARC_TEXTURE_WIDTH

#define HAURES_ARC_TEXTURE_WIDTH 64

Referenced by btEffectRunHaures().

Definition at line 136 of file battle_effect_haures.c.

HAURES_ARC_TEXTURE_BYTES

#define HAURES_ARC_TEXTURE_BYTES (HAURES_ARC_TEXTURE_WIDTH * BLUE_ARC_HEIGHT)

Referenced by btEffectRunHaures().

Definition at line 137 of file battle_effect_haures.c.

HAURES_SHARDS

#define HAURES_SHARDS 31

The shards the view breaks into as Haures rears: a row of HauresPartPoints each, its middle then its four corners in screen pixels. Each is built in the effect's pictures as its corners, then from HAURES_SHARD_MESHES its mesh: two faces and the empty one that ends it.

Referenced by btEffectRunHaures().

Definition at line 142 of file battle_effect_haures.c.

HAURES_SHARD_ROW

#define HAURES_SHARD_ROW 10

Referenced by btEffectRunHaures().

Definition at line 143 of file battle_effect_haures.c.

HAURES_SHARD_CORNERS

#define HAURES_SHARD_CORNERS 4

Referenced by btEffectRunHaures().

Definition at line 144 of file battle_effect_haures.c.

HAURES_SHARD_CORNER_BYTES

#define HAURES_SHARD_CORNER_BYTES (HAURES_SHARD_CORNERS * sizeof(MODEL_VERTEX))

Referenced by btEffectRunHaures().

Definition at line 145 of file battle_effect_haures.c.

HAURES_SHARD_MESHES

#define HAURES_SHARD_MESHES 2048

Referenced by btEffectRunHaures().

Definition at line 146 of file battle_effect_haures.c.

HAURES_SHARD_MESH_BYTES

#define HAURES_SHARD_MESH_BYTES 12

Referenced by btEffectRunHaures().

Definition at line 147 of file battle_effect_haures.c.

SHARD_FACE

#define SHARD_FACE(mesh, j, face)

Face face of shard j's mesh: its three corners, then a byte no face sets.

Referenced by btEffectRunHaures().

Definition at line 149 of file battle_effect_haures.c.

HAURES_SHATTER_X

#define HAURES_SHATTER_X 120

The point the shards fly apart from: the right edge of the view, whose width the canvas halves, at its middle height. Each shard starts a sixteenth of a pixel a tick across (toFIXED(1) >> (16 - HAURES_SHATTER_SPREAD_X_SHIFT)) and a sixty-fourth up or down for each pixel it lies from it.

Referenced by btEffectRunHaures().

Definition at line 155 of file battle_effect_haures.c.

HAURES_SHATTER_Y

#define HAURES_SHATTER_Y 60

Referenced by btEffectRunHaures().

Definition at line 156 of file battle_effect_haures.c.

HAURES_SHATTER_SPREAD_X_SHIFT

#define HAURES_SHATTER_SPREAD_X_SHIFT 12

Referenced by btEffectRunHaures().

Definition at line 157 of file battle_effect_haures.c.

HAURES_SHARD_REACH

#define HAURES_SHARD_REACH 16

A shard is drawn while its middle is no more than HAURES_SHARD_REACH outside the view.

Referenced by btEffectRunHaures().

Definition at line 160 of file battle_effect_haures.c.

HAURES_DIVE_PULL_X_SHIFT

#define HAURES_DIVE_PULL_X_SHIFT 14

As Haures dives away up and to the left, each tick adds to his speed a quarter of a pixel a tick more than the one before (toFIXED(1) >> (16 - HAURES_DIVE_PULL_X_SHIFT)); the eighth more that would lift him goes unused.

Referenced by btEffectRunHaures().

Definition at line 164 of file battle_effect_haures.c.

HAURES_DIVE_PULL_Y_SHIFT

#define HAURES_DIVE_PULL_Y_SHIFT 13

Referenced by btEffectRunHaures().

Definition at line 165 of file battle_effect_haures.c.

HAURES_SPARK_COUNT

#define HAURES_SPARK_COUNT 512

The charge's sparks: HAURES_SPARKS_PER_TICK start each tick of the first two passes, each living HAURES_SPARK_LIFE ticks.

Referenced by btEffectRunHaures().

Definition at line 168 of file battle_effect_haures.c.

HAURES_SPARKS_PER_TICK

#define HAURES_SPARKS_PER_TICK 12

Referenced by btEffectRunHaures().

Definition at line 169 of file battle_effect_haures.c.

HAURES_SPARK_LIFE

#define HAURES_SPARK_LIFE 16

Referenced by btEffectRunHaures().

Definition at line 170 of file battle_effect_haures.c.

HAURES_CHARGE_PASS_TICKS

#define HAURES_CHARGE_PASS_TICKS 20

Haures charges through the foes three times, a pass every HAURES_CHARGE_PASS_TICKS: from the right, from the left drawn mirrored, then from the right again.

Referenced by btEffectRunHaures().

Definition at line 174 of file battle_effect_haures.c.

HAURES_STREAK_TICKS

#define HAURES_STREAK_TICKS 16

Each of the first two passes' streaks of fire lasts HAURES_STREAK_TICKS from its HauresBandStarts tick, swelling and narrowing again over half a turn of a sine.

Referenced by btEffectRunHaures().

Definition at line 178 of file battle_effect_haures.c.

HAURES_SECOND_BAND_ROLL

#define HAURES_SECOND_BAND_ROLL 10192

The second pass's streaks of fire slash at about 56 degrees, where the first's slash at -45.

Referenced by btEffectRunHaures().

Definition at line 181 of file battle_effect_haures.c.

HAURES_BAND_INSET

#define HAURES_BAND_INSET 4

The band that opens across the canvas from tick 56, HAURES_BAND_INSET in from each side, its edges HAURES_BAND_REACH above and below its middle.

Referenced by btEffectRunHaures().

Definition at line 184 of file battle_effect_haures.c.

HAURES_BAND_MIDDLE

#define HAURES_BAND_MIDDLE 60

Referenced by btEffectRunHaures().

Definition at line 185 of file battle_effect_haures.c.

HAURES_BAND_REACH

#define HAURES_BAND_REACH 80

Referenced by btEffectRunHaures().

Definition at line 186 of file battle_effect_haures.c.

FIRST_RING_Y

#define FIRST_RING_Y -36

The two rings sit at y = -36 and y = -18.

Referenced by btMeshBuildCylinderBand().

Definition at line 1460 of file battle_effect_haures.c.

RING_SPACING

#define RING_SPACING 18

Referenced by btMeshBuildCylinderBand().

Definition at line 1461 of file battle_effect_haures.c.

COLUMN_WIDTH

#define COLUMN_WIDTH 8

Each side of the band shows an 8 x 16 column of the texture.

Referenced by btMeshBuildCylinderBand().

Definition at line 1464 of file battle_effect_haures.c.

COLUMN_HEIGHT

#define COLUMN_HEIGHT 16

Referenced by btMeshBuildCylinderBand().

Definition at line 1465 of file battle_effect_haures.c.

CYLINDER_RADIUS

#define CYLINDER_RADIUS 96

Referenced by btMeshBuildCylinderBand().

Definition at line 1467 of file battle_effect_haures.c.

Functions in detail

btEffectRunHaures

void btEffectRunHaures(BATTLE_EFFECT_PARM *args)

Haures: in a blue cavern four drops fall and burst into violet flames, a red swirl opens on the ground and a dark pool on it heaves up into a mound; the beast's claw rises from it in violet flame, a rune flashes as the claw slashes, and the dark breaks into shards to show him circling in a reddened cave; then he charges through the foes three times in streaks of fire that end in a flash of light.

Abilities: Haures.

References BattleEffectEmberStreakPictureBiasY, BattleEffectEmberStreakPictureHeights, BattleEffectEmberStreakPictures, BattleEffectEmberStreakPictureWidths, BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, BattleEffectSmallSquareMeshReversed, BattleEffectSquareCorners, BattleEffectSquareMesh, BgScrollWork, btBackgroundLoadStub(), btCameraShake(), btEffectBuildBlitter(), btEffectConfigureEffectDisplay(), btEffectCountDownBattlerTints(), btEffectCreateSprites(), btEffectProcessPendingStampTransfer(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectSpriteCreateWithTiles(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btEffectWipeCanvas(), btPaletteBrightenBattleBg(), btPaletteBrightenSavedBattleBg(), btParticleAdvanceWithGravity2D(), btParticleAdvanceWithGravity3D(), btPictureMirrorIntoQuadrants(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteCreateStub(), fdSpriteDestroyStub(), fdSpriteStartAnimationStub(), HauresBandMesh, HauresBandStarts, HauresBodyPiecePoints, HauresBurstMesh, HauresChargeScale, HauresMoundCorners, HauresMoundMorphSteps, HauresMoundShades, HauresMoundShapes, HauresMoundStrip, HauresMoundStripEnd, HauresOpeningScale and 28 more.

Referenced by btEffectRunSummon().

Definition at line 196 of file battle_effect_haures.c.

btMeshBuildCylinderBand

void btMeshBuildCylinderBand(MESH_VERTEX *vertices, MESH_TRIANGLE *triangles, Sint32 segments)

Builds the mesh of an open cylinder, the band Coatlicue's coil and Eclipse's rings are drawn on: two rings of segments vertices of radius CYLINDER_RADIUS around the y axis, and two textured triangles for each side of the band, joining the first ring (texture row 0) to the second (row 15). A triangle whose three vertices are 0 ends the list. Both summons build it with 32 segments.

References Sint32, syCos() and sySin().

Referenced by btEffectRunCoatlicue() and btEffectRunEclipse().

Definition at line 1475 of file battle_effect_haures.c.

Variables in detail

HauresMoundCorners

extern MOUND_VERTEX HauresMoundCorners[]

The mound strip's corners, rebuilt each tick from the morphing shapes.

Referenced by btEffectRunHaures().

Definition at line 16 of file battle_effect_haures.c.

On this page

StructuresMacrosFunctionsVariablesDescriptionMacros in detailHAURES_RUNE_PICTUREHAURES_COMING_TICKSHAURES_TICKSHAURES_SLASH_TICKHAURES_REAR_TICKHAURES_DIVE_TICKHAURES_DROP_INTERVALHAURES_FIRST_LANDINGHAURES_SWIRL_TICKHAURES_SWIRL_FADE_INHAURES_RUMBLE_TICKHAURES_MOUND_TICKHAURES_GLOW_TICKHAURES_GLOW_TICKSHAURES_REDDEN_TICKHAURES_REDDEN_TICKSHAURES_CLATTER_TICKHAURES_CAVE_COOL_TICKHAURES_BODY_PIECESHAURES_CLAW_PIECESHAURES_FIRST_FLAMEHAURES_FLAME_COUNTHAURES_FIRST_DROP_SPRITEHAURES_DROP_SPRITE_COUNTHAURES_STAMPHAURES_DROPSHAURES_DROP_LAND_YHAURES_FLAME_TICKSHAURES_STAMP_PALETTEHAURES_STAMP_FIRST_COLORHAURES_CLAW_RISE_TICKHAURES_CLAW_LIFT_TICKSHAURES_CLAW_DRIFT_TICKHAURES_CLAW_DRIFT_TICKSHAURES_CLAW_SWING_TICKSHAURES_STAMP_GROWTHHAURES_PUFFSHAURES_PUFF_BYTESHAURES_PUFF_PICTURE_COUNTHAURES_PUFF_PICTURE_TICKSHAURES_PUFF_TICKSHAURES_MOUND_POINTSHAURES_MOUND_QUADSHAURES_POOL_WIDTHHAURES_POOL_DEPTHHAURES_POOL_STEPHAURES_MOUND_SHAPESHAURES_SWIRL_TILTHAURES_SWIRL_SCALE_MAXHAURES_MOUND_SCALE_MAXHAURES_SWIRL_TEXTUREHAURES_SWIRL_WIDTHHAURES_SWIRL_HEIGHTHAURES_CHAIN_WIDTHHAURES_CHAIN_HEIGHTHAURES_RED_LEVELSHAURES_CAVE_FADE_REDHAURES_CAVE_FADE_DARKHAURES_RUNE_SCALEHAURES_RUNE_GROW_TICKHAURES_RUNE_HELD_SCALEHAURES_ARCSHAURES_ARC_TEXTURE_WIDTHHAURES_ARC_TEXTURE_BYTESHAURES_SHARDSHAURES_SHARD_ROWHAURES_SHARD_CORNERSHAURES_SHARD_CORNER_BYTESHAURES_SHARD_MESHESHAURES_SHARD_MESH_BYTESSHARD_FACEHAURES_SHATTER_XHAURES_SHATTER_YHAURES_SHATTER_SPREAD_X_SHIFTHAURES_SHARD_REACHHAURES_DIVE_PULL_X_SHIFTHAURES_DIVE_PULL_Y_SHIFTHAURES_SPARK_COUNTHAURES_SPARKS_PER_TICKHAURES_SPARK_LIFEHAURES_CHARGE_PASS_TICKSHAURES_STREAK_TICKSHAURES_SECOND_BAND_ROLLHAURES_BAND_INSETHAURES_BAND_MIDDLEHAURES_BAND_REACHFIRST_RING_YRING_SPACINGCOLUMN_WIDTHCOLUMN_HEIGHTCYLINDER_RADIUSFunctions in detailbtEffectRunHauresbtMeshBuildCylinderBandVariables in detailHauresMoundCorners