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
| Name | Description | |
|---|---|---|
struct | MOUND_VERTEX | Two corners of the mound: its upper edge, then its lower. |
Macros
| Name | Description | |
|---|---|---|
#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). |
#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. |
#define | HAURES_TICKS 92 | |
#define | HAURES_SLASH_TICK 267 | |
#define | HAURES_REAR_TICK 277 | |
#define | HAURES_DIVE_TICK 397 | |
#define | HAURES_DROP_INTERVAL 26 | The coming's other moments. |
#define | HAURES_FIRST_LANDING 48 | |
#define | HAURES_SWIRL_TICK 47 | |
#define | HAURES_SWIRL_FADE_IN 64 | |
#define | HAURES_RUMBLE_TICK 140 | |
#define | HAURES_MOUND_TICK 74 | |
#define | HAURES_GLOW_TICK 236 | |
#define | HAURES_GLOW_TICKS 32 | |
#define | HAURES_REDDEN_TICK 242 | |
#define | HAURES_REDDEN_TICKS 22 | |
#define | HAURES_CLATTER_TICK 271 | |
#define | HAURES_CAVE_COOL_TICK 360 | |
#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. |
#define | HAURES_CLAW_PIECES 2 | |
#define | HAURES_FIRST_FLAME 12 | |
#define | HAURES_FLAME_COUNT 4 | |
#define | HAURES_FIRST_DROP_SPRITE 16 | |
#define | HAURES_DROP_SPRITE_COUNT 2 | |
#define | HAURES_STAMP 18 | |
#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. |
#define | HAURES_DROP_LAND_Y 120 | |
#define | HAURES_FLAME_TICKS 24 | |
#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. |
#define | HAURES_STAMP_FIRST_COLOR (HAURES_STAMP_PALETTE * PALETTE_COLORS) | |
#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. |
#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. |
#define | HAURES_CLAW_DRIFT_TICK 210 | |
#define | HAURES_CLAW_DRIFT_TICKS 14 | |
#define | HAURES_CLAW_SWING_TICKS 4 | |
#define | HAURES_STAMP_GROWTH 564 | |
#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. |
#define | HAURES_PUFF_BYTES 6017 | |
#define | HAURES_PUFF_PICTURE_COUNT 6 | |
#define | HAURES_PUFF_PICTURE_TICKS 4 | |
#define | HAURES_PUFF_TICKS | |
#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. |
#define | HAURES_MOUND_QUADS (HAURES_MOUND_POINTS - 1) | |
#define | HAURES_POOL_WIDTH 128 | |
#define | HAURES_POOL_DEPTH 18 | |
#define | HAURES_POOL_STEP 992 | |
#define | HAURES_MOUND_SHAPES 13 | The shapes the mound's upper edge morphs through in turn, HAURES_MOUND_POINTS heights each. |
#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. |
#define | HAURES_SWIRL_SCALE_MAX (toFIXED(1875) / 2048) | |
#define | HAURES_MOUND_SCALE_MAX (toFIXED(2423) / 4096) | |
#define | HAURES_SWIRL_TEXTURE 16384 | Where SwirlTexture, 64 x 64 and dimmed to half, is decoded in the effect's pictures. |
#define | HAURES_SWIRL_WIDTH 64 | |
#define | HAURES_SWIRL_HEIGHT 64 | |
#define | HAURES_CHAIN_WIDTH 64 | ChainTexture is a quarter of the rune, mirrored into the other three. |
#define | HAURES_CHAIN_HEIGHT 64 | |
#define | HAURES_RED_LEVELS 32 | The canvas levels' colours: levels below HAURES_RED_LEVELS are red, the rest violet, from black to white. |
#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. |
#define | HAURES_CAVE_FADE_DARK 12 | |
#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). |
#define | HAURES_RUNE_GROW_TICK 269 | |
#define | HAURES_RUNE_HELD_SCALE (toFIXED(7567) / 4096) | |
#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. |
#define | HAURES_ARC_TEXTURE_WIDTH 64 | |
#define | HAURES_ARC_TEXTURE_BYTES (HAURES_ARC_TEXTURE_WIDTH * BLUE_ARC_HEIGHT) | |
#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. |
#define | HAURES_SHARD_ROW 10 | |
#define | HAURES_SHARD_CORNERS 4 | |
#define | HAURES_SHARD_CORNER_BYTES (HAURES_SHARD_CORNERS * sizeof(MODEL_VERTEX)) | |
#define | HAURES_SHARD_MESHES 2048 | |
#define | HAURES_SHARD_MESH_BYTES 12 | |
#define | SHARD_FACE (mesh, j, face) | Face face of shard j's mesh: its three corners, then a byte no face sets. |
#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. |
#define | HAURES_SHATTER_Y 60 | |
#define | HAURES_SHATTER_SPREAD_X_SHIFT 12 | |
#define | HAURES_SHARD_REACH 16 | A shard is drawn while its middle is no more than HAURES_SHARD_REACH outside the view. |
#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. |
#define | HAURES_DIVE_PULL_Y_SHIFT 13 | |
#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. |
#define | HAURES_SPARKS_PER_TICK 12 | |
#define | HAURES_SPARK_LIFE 16 | |
#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. |
#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. |
#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. |
#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. |
#define | HAURES_BAND_MIDDLE 60 | |
#define | HAURES_BAND_REACH 80 | |
#define | FIRST_RING_Y -36 | The two rings sit at y = -36 and y = -18. |
#define | RING_SPACING 18 | |
#define | COLUMN_WIDTH 8 | Each side of the band shows an 8 x 16 column of the texture. |
#define | COLUMN_HEIGHT 16 | |
#define | CYLINDER_RADIUS 96 |
Functions
| Name | Description | |
|---|---|---|
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. |
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). |
Variables
| Name | Description | |
|---|---|---|
extern MOUND_VERTEX | HauresMoundCorners [] | The mound strip's corners, rebuilt each tick from the morphing shapes. |
extern const Uint16 | HauresBodyPiecePoints [][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.