src/battle_effect/battle_effect_daedalus.c
Yellow orb packing and the summon Daedalus with its second strike. More…
Included by battle_effect.c.
Structures
| Name | Description | |
|---|---|---|
struct | SPR_ATTR | A sprite's first ten bytes, its attribute 2 fields after eight others. |
struct | STRIKE_ROCKET | The rocket's display fields that the strike sets: a SPR from its rotation on. |
Macros
| Name | Description | |
|---|---|---|
#define | DAEDALUS_SPRITE (i) ((SPR *)state->sprites[i]) | The effect state's sprite slot i. |
#define | DECODE_BUFFER RamMapMetatileBuffer | Where the effect's pictures are decoded before they are copied to OBJ VRAM. |
#define | DAEDALUS_PARTICLE_COUNT (DAEDALUS_MISSILE_COUNT * DAEDALUS_TRAIL_LENGTH) | The particles the sky scene, the fall and the second strike's sparks keep in EXTRA_PARTICLES. |
#define | DAEDALUS_MOTE 3 | The opening's mote copies: DAEDALUS_MOTE_COPIES copies of YellowGlowSheet's mote DAEDALUS_MOTE, 4 pixels wide and 8 tall, in the battle sprite sheet's heap slot, the first DAEDALUS_MOTE_DIM_FIRST levels dimmer than the mote and each next DAEDALUS_MOTE_DIM_STEP more. |
#define | DAEDALUS_MOTE_BYTES ((DAEDALUS_MOTE + 1) * (DAEDALUS_MOTE + 1) * 2) | |
#define | DAEDALUS_MOTE_COPIES 10 | |
#define | DAEDALUS_MOTE_DIM_FIRST 40 | |
#define | DAEDALUS_MOTE_DIM_STEP 4 | |
#define | CANOPY_PALETTE 15 | ForestCanopyTiles: two rows of eight 32x32 pictures of treetops, in OBJ palette CANOPY_PALETTE. |
#define | CANOPY_ROWS 2 | |
#define | CANOPY_PICTURES 8 | |
#define | CANOPY_PICTURE_SIZE 32 | |
#define | CANOPY_ROW_BYTES (CANOPY_PICTURES * OBJ_32X32_4BPP_BYTES) | |
#define | CANOPY_WRAP (CANOPY_PICTURES * 8) | A whole number of rows of pictures, added to a picture's place before the remainder by CANOPY_PICTURES takes it away again. |
#define | CANOPY_Y 132 | The canopy's top in the sky scene. |
#define | DAEDALUS_CLIMB 29 | |
#define | ROCKET_FLAME_WIDTH 12 | RocketFlameSheet: six 12x24 flames, each dimmer than the last. |
#define | ROCKET_FLAME_HEIGHT 24 | |
#define | ROCKET_FLAME_COUNT 6 | |
#define | BIRD_WIDTH 16 | BirdFlockSheet's 16x16 birds, and the twelve steps of a wing beat (DaedalusWingBeatPictures). |
#define | BIRD_HEIGHT 16 | |
#define | BIRD_WING_BEAT 12 | |
#define | DAEDALUS_FLASH_BURST_PICTURES | The sky scene's pictures: the rocket's flames, then the bursts, then the birds. |
#define | DAEDALUS_BIRD_FLOCK | |
#define | DAEDALUS_ROCKET_FLAMES | The fall's pictures: the bursts, then the rocket's flames. |
#define | DAEDALUS_CANOPY_ROW (CANOPY_PICTURES + 1) | The sky scene's sprites: the canopy's two rows; the twenty-one 32x32 pieces of the machine (BronzeAutomatonTiles), among them its missiles' cover, its four hull plates and its spinning blade; the 32x64 rocket it launches; and the missile with fifteen copies. |
#define | DAEDALUS_MACHINE 18 | |
#define | DAEDALUS_MACHINE_PIECES 21 | |
#define | DAEDALUS_MACHINE_COLORS 224 | BronzeAutomatonTiles' colours, OBJ palette 0 to 223. |
#define | CORE_DARK RGB(11, 8, 6) | The core's colour: dark at first; from DAEDALUS_GLOW_START it brightens a level a tick towards orange (red at most, CORE_GLOW_GREEN and CORE_GLOW_BLUE) until DAEDALUS_GLOW_END, then cools towards a dark red (CORE_EMBER_RED). |
#define | CORE_GLOW_GREEN 20 | |
#define | CORE_GLOW_BLUE 6 | |
#define | CORE_EMBER_RED 20 | |
#define | DAEDALUS_GLOW_START 542 | |
#define | DAEDALUS_GLOW_END 558 | |
#define | DAEDALUS_SWAY 4 | Until DAEDALUS_SWAY_STOP the machine's legs swing DAEDALUS_SWAY pixels to and fro, opposite ways, once every 256 ticks, and it bobs up twice a swing, never below its place. |
#define | DAEDALUS_SWAY_STEP (TRIG_TURN / 256) | |
#define | DAEDALUS_SWAY_STOP 538 | |
#define | DAEDALUS_LURCH_STEP (TRIG_TURN / 32) | |
#define | DAEDALUS_RECOIL_START 560 | |
#define | DAEDALUS_RECOIL_END 576 | |
#define | DAEDALUS_FIRE_TICK 568 | The tick the machine fires: a ring of fire and a ring of flames spread from it, and two ticks later the rocket leaves. |
#define | DAEDALUS_ROCKET_X 152 | The rocket: where it rests in the machine and leaves from, how far its nozzle is from its middle, the pull of its flight, from which tick of it the camera would let it draw ahead, and its scale, a little over one so that it turns in a sprite box twice its size and keeps its fins. |
#define | DAEDALUS_ROCKET_Y 92 | |
#define | ROCKET_NOZZLE 27 | |
#define | ROCKET_GRAVITY toFIXED(0.03431) | |
#define | ROCKET_LEAD_START 230 | |
#define | ROCKET_SCALE toFIXED(1.01561) | |
#define | ROCKET_THRUST_START 30 | The rocket's flight, in ticks from its launch. |
#define | ROCKET_LIFT_START 40 | |
#define | ROCKET_NOSE_UP_START 50 | |
#define | ROCKET_NOSE_UP_END 60 | |
#define | ROCKET_LIFT_END 68 | |
#define | ROCKET_SINK_TICKS 80 | |
#define | ROCKET_TURN_START 108 | |
#define | ROCKET_BURSTS_START 113 | |
#define | ROCKET_DIP_START 120 | |
#define | ROCKET_DIP_END 123 | |
#define | ROCKET_TURN_END 140 | |
#define | ROCKET_SOAR_START 160 | |
#define | ROCKET_BURSTS_END 200 | |
#define | FLAME_RING_COUNT 32 | The ring of flames the machine sends out as it fires: FLAME_RING_COUNT flames round a ring centred on DaedalusRingX and FLAME_RING_Y, its radius spreading for FLAME_RING_TICKS ticks while each flame burns down through RocketFlameSheet's pictures, two ticks each. |
#define | FLAME_RING_STEP (TRIG_TURN / FLAME_RING_COUNT) | |
#define | FLAME_RING_Y 60 | |
#define | FLAME_RING_TICKS 26 | |
#define | DAEDALUS_SPLASH_START 490 | From DAEDALUS_SPLASH_START, flames burst along four lines of six points over the hull (DaedalusSplashPoints), a point every two ticks, each burning down through RocketFlameSheet's pictures two ticks each; the hull falls away after them. |
#define | DAEDALUS_SKY_TICKS 800 | The sky scene's ticks, unless A or B ends it sooner. |
#define | DAEDALUS_TRAILS_FRONT 279 | The sky scene's other moments. |
#define | DAEDALUS_COVER_OFF 280 | |
#define | DAEDALUS_BLADE_OFF 288 | |
#define | DAEDALUS_THROWN_GONE 316 | |
#define | DAEDALUS_CANOPY_STOP 473 | |
#define | DAEDALUS_MISSILES_GONE 489 | |
#define | DAEDALUS_HULL_OFF 506 | |
#define | DAEDALUS_LIGHT_UP_SOUND 510 | |
#define | DAEDALUS_CANVAS_BEHIND 528 | |
#define | DAEDALUS_HULL_GONE 540 | |
#define | DAEDALUS_RUSH_START 578 | |
#define | DAEDALUS_RUSH_END 594 | |
#define | DAEDALUS_RUSH_STEP_TICKS 8 | |
#define | DAEDALUS_FLAME_COLORS 602 | |
#define | DAEDALUS_FALL_TICKS 109 | The fall's ticks, and its runs of EXTRA_PARTICLES: each missile's FALL_BURST_SLOTS, of which its two bursts use the first, and from FALL_TRAILS each missile's trail of FALL_TRAIL_LENGTH flames. |
#define | FALL_BURST_SLOTS 8 | |
#define | FALL_TRAILS 256 | |
#define | FALL_TRAIL_LENGTH 16 | |
#define | FALL_DIVE_SPREAD 40 | The angle a missile's dive turns by for each unit of its velocityZ, a spread the fall leaves at 0. |
#define | DAEDALUS_VOLLEY_START 10 | The missiles fire in pairs, the first DAEDALUS_VOLLEY_START ticks after their cover flies off and the next every DAEDALUS_VOLLEY_STEP ticks. |
#define | DAEDALUS_VOLLEY_STEP 6 | |
#define | DAEDALUS_TOP DAEDALUS_MACHINE | The machine's pieces, 32 pixels square, by their place in BronzeAutomatonTiles: the two of its top; its core; the five of its body behind the hull; the five of the leg on the right, whose thigh holds the front missiles behind a cover; the cover; the two of the leg on the left; the four hull plates; and the blade. |
#define | DAEDALUS_CORE (DAEDALUS_MACHINE + 2) | |
#define | DAEDALUS_BODY (DAEDALUS_MACHINE + 3) | |
#define | DAEDALUS_RIGHT_LEG (DAEDALUS_MACHINE + 8) | |
#define | DAEDALUS_COVER (DAEDALUS_MACHINE + 13) | |
#define | DAEDALUS_LEFT_LEG (DAEDALUS_MACHINE + 14) | |
#define | DAEDALUS_HULL (DAEDALUS_MACHINE + 16) | |
#define | DAEDALUS_BLADE (DAEDALUS_MACHINE + 20) | |
#define | DAEDALUS_PIECE_SIZE 32 | |
#define | DAEDALUS_ROCKET (DAEDALUS_MACHINE + DAEDALUS_MACHINE_PIECES) | |
#define | DAEDALUS_MISSILE 41 | |
#define | DAEDALUS_MISSILE_COPIES 15 | |
#define | DAEDALUS_MISSILE_COUNT (DAEDALUS_MISSILE_COPIES + 1) | |
#define | DAEDALUS_MISSILE_PALETTE 14 | |
#define | DAEDALUS_ROCKET_BYTES (32 * 64) | The rocket's 32x64 picture in 256 colours, and MissileTiles as decoded: the 16x8 missile's 64 bytes and 192 more after it (missile_leftover.tsv), all copied to the missile's VRAM. |
#define | MISSILE_TILES_BYTES 256 | |
#define | DAEDALUS_TRAIL_LENGTH 32 | Runs of EXTRA_PARTICLES in the sky scene: each missile's trail of DAEDALUS_TRAIL_LENGTH, the flames of the rocket's launch, its exhaust, the bursts that rise from the foot of the view as it climbs, and the birds that drift across. |
#define | DAEDALUS_LAUNCH_FLAMES 312 | |
#define | DAEDALUS_LAUNCH_FLAME_COUNT 16 | |
#define | DAEDALUS_EXHAUST 400 | |
#define | DAEDALUS_EXHAUST_FLAMES 32 | |
#define | DAEDALUS_BURSTS 432 | |
#define | DAEDALUS_BURST_COUNT 32 | |
#define | DAEDALUS_BIRDS 502 | |
#define | DAEDALUS_BIRD_COUNT 10 | |
#define | DAEDALUS_COVER_MOTION 20 | In the sky scene the machine comes apart: the missiles' cover, which flies off and times the missiles, the four hull plates, the rocket and the blade each move by a particle of their own, as do the spreading ring of flames and the sixteen missiles. |
#define | DAEDALUS_HULL_MOTION 21 | |
#define | DAEDALUS_ROCKET_MOTION 22 | |
#define | DAEDALUS_BLADE_MOTION 23 | |
#define | DAEDALUS_RING_MOTION 30 | |
#define | DAEDALUS_MISSILE_MOTIONS 32 | |
#define | DAEDALUS_STRIKE_TICKS 108 | |
#define | DAEDALUS_STRIKE_DIVE_TICKS 92 | The rocket dives in over the strike's first DAEDALUS_STRIKE_DIVE_TICKS. |
#define | DAEDALUS_STRIKE_GLOW_START 56 | From DAEDALUS_STRIKE_GLOW_START a disc of light swells to DAEDALUS_STRIKE_DISC_SIZE beneath it and its rays of light spin out: six of the sixteen set up, each shown for DAEDALUS_STRIKE_RAY_LIFE steps, two a tick. |
#define | DAEDALUS_STRIKE_DISC_SIZE 128 | |
#define | DAEDALUS_STRIKE_RAYS_SET_UP 16 | |
#define | DAEDALUS_STRIKE_RAYS 6 | |
#define | DAEDALUS_STRIKE_RAY_LIFE 48 | |
#define | DAEDALUS_STRIKE_SPARK_TICK 80 | At DAEDALUS_STRIKE_SPARK_TICK the canvas flashes, and a burst of SPARKS_PER_BURST sparks scatters each of the next DAEDALUS_STRIKE_BURSTS ticks. |
#define | DAEDALUS_STRIKE_BURSTS 8 | |
#define | SPARKS_PER_BURST 8 | |
#define | DAEDALUS_STRIKE_SPARKS (DAEDALUS_STRIKE_BURSTS * SPARKS_PER_BURST) | |
#define | DAEDALUS_STRIKE_GLOW_BAND 16384 | Where GlowBandTextureA is decoded in the effect's pictures. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectPackYellowOrbs (Uint8 *src, Uint8 *dest, Sint32 stride) | Packs YellowOrbSheet's six pictures to half width for the canvas, which holds every other column: each row keeps its odd columns. stride is a source row's bytes; a packed row takes half as many. |
void | btEffectRunDaedalus (BATTLE_EFFECT_PARM *args) | Daedalus: the battle flashes away to a cloudy blue sky over a forest. |
void | btEffectRunDaedalusStrike (BATTLE_EFFECT_PARM *args) | Daedalus's second strike, at the end of the turn after the summon: its rocket (SPRITE_DAEDALUS_ROCKET) dives from above the screen and settles while, from DAEDALUS_STRIKE_GLOW_START, a disc of light swells beneath it and rays of light spin out. |
Variables
| Name | Description | |
|---|---|---|
extern const SCALE | DaedalusStrikeRocketScale | The rocket's scale in the second strike: twice its size. |
Description
Yellow orb packing and the summon Daedalus with its second strike. Part of
battle_effect.c.
Macros in detail
DAEDALUS_SPRITE
#define DAEDALUS_SPRITE(i) ((SPR *)state->sprites[i])
The effect state's sprite slot i.
Referenced by btEffectRunDaedalus().
Definition at line 26 of file battle_effect_daedalus.c.
DECODE_BUFFER
#define DECODE_BUFFER RamMapMetatileBuffer
Where the effect's pictures are decoded before they are copied to OBJ VRAM.
Referenced by btEffectRunDaedalus().
Definition at line 38 of file battle_effect_daedalus.c.
DAEDALUS_PARTICLE_COUNT
#define DAEDALUS_PARTICLE_COUNT (DAEDALUS_MISSILE_COUNT * DAEDALUS_TRAIL_LENGTH)
The particles the sky scene, the fall and the second strike's sparks keep in
EXTRA_PARTICLES.
Referenced by btEffectRunDaedalus().
Definition at line 41 of file battle_effect_daedalus.c.
DAEDALUS_MOTE
#define DAEDALUS_MOTE 3
The opening's mote copies: DAEDALUS_MOTE_COPIES copies of YellowGlowSheet's
mote DAEDALUS_MOTE, 4 pixels wide and 8 tall, in the battle sprite sheet's
heap slot, the first DAEDALUS_MOTE_DIM_FIRST levels dimmer than the mote and
each next DAEDALUS_MOTE_DIM_STEP more. Nothing in Daedalus draws them.
Referenced by btEffectRunDaedalus().
Definition at line 47 of file battle_effect_daedalus.c.
DAEDALUS_MOTE_BYTES
#define DAEDALUS_MOTE_BYTES ((DAEDALUS_MOTE + 1) * (DAEDALUS_MOTE + 1) * 2)
Referenced by btEffectRunDaedalus().
Definition at line 48 of file battle_effect_daedalus.c.
DAEDALUS_MOTE_COPIES
#define DAEDALUS_MOTE_COPIES 10
Referenced by btEffectRunDaedalus().
Definition at line 49 of file battle_effect_daedalus.c.
DAEDALUS_MOTE_DIM_FIRST
#define DAEDALUS_MOTE_DIM_FIRST 40
Referenced by btEffectRunDaedalus().
Definition at line 50 of file battle_effect_daedalus.c.
DAEDALUS_MOTE_DIM_STEP
#define DAEDALUS_MOTE_DIM_STEP 4
Referenced by btEffectRunDaedalus().
Definition at line 51 of file battle_effect_daedalus.c.
CANOPY_PALETTE
#define CANOPY_PALETTE 15
ForestCanopyTiles: two rows of eight 32x32 pictures of treetops, in OBJ
palette CANOPY_PALETTE. Each row is drawn by DAEDALUS_CANOPY_ROW sprites, the
last showing the picture before the first, so the row wraps as it scrolls.
Referenced by btEffectRunDaedalus().
Definition at line 56 of file battle_effect_daedalus.c.
CANOPY_ROWS
#define CANOPY_ROWS 2
Referenced by btEffectRunDaedalus().
Definition at line 57 of file battle_effect_daedalus.c.
CANOPY_PICTURES
#define CANOPY_PICTURES 8
Referenced by btEffectRunDaedalus().
Definition at line 58 of file battle_effect_daedalus.c.
CANOPY_PICTURE_SIZE
#define CANOPY_PICTURE_SIZE 32
Referenced by btEffectRunDaedalus().
Definition at line 59 of file battle_effect_daedalus.c.
CANOPY_ROW_BYTES
#define CANOPY_ROW_BYTES (CANOPY_PICTURES * OBJ_32X32_4BPP_BYTES)
Referenced by btEffectRunDaedalus().
Definition at line 60 of file battle_effect_daedalus.c.
CANOPY_WRAP
#define CANOPY_WRAP (CANOPY_PICTURES * 8)
A whole number of rows of pictures, added to a picture's place before the
remainder by CANOPY_PICTURES takes it away again.
Referenced by btEffectRunDaedalus().
Definition at line 63 of file battle_effect_daedalus.c.
CANOPY_Y
#define CANOPY_Y 132
The canopy's top in the sky scene. The opening shows it DAEDALUS_CLIMB pixels
higher; as the camera climbs, the sky scene lowers the canopy by that much
and raises the machine twice as far.
Referenced by btEffectRunDaedalus().
Definition at line 67 of file battle_effect_daedalus.c.
DAEDALUS_CLIMB
#define DAEDALUS_CLIMB 29
Referenced by btEffectRunDaedalus().
Definition at line 68 of file battle_effect_daedalus.c.
ROCKET_FLAME_WIDTH
#define ROCKET_FLAME_WIDTH 12
RocketFlameSheet: six 12x24 flames, each dimmer than the last.
Referenced by btEffectRunDaedalus().
Definition at line 71 of file battle_effect_daedalus.c.
ROCKET_FLAME_HEIGHT
#define ROCKET_FLAME_HEIGHT 24
Referenced by btEffectRunDaedalus().
Definition at line 72 of file battle_effect_daedalus.c.
ROCKET_FLAME_COUNT
#define ROCKET_FLAME_COUNT 6
Referenced by btEffectRunDaedalus().
Definition at line 73 of file battle_effect_daedalus.c.
BIRD_WIDTH
#define BIRD_WIDTH 16
BirdFlockSheet's 16x16 birds, and the twelve steps of a wing beat
(DaedalusWingBeatPictures).
Referenced by btEffectRunDaedalus().
Definition at line 76 of file battle_effect_daedalus.c.
BIRD_HEIGHT
#define BIRD_HEIGHT 16
Referenced by btEffectRunDaedalus().
Definition at line 77 of file battle_effect_daedalus.c.
BIRD_WING_BEAT
#define BIRD_WING_BEAT 12
Referenced by btEffectRunDaedalus().
Definition at line 78 of file battle_effect_daedalus.c.
DAEDALUS_FLASH_BURST_PICTURES
#define DAEDALUS_FLASH_BURST_PICTURES
The sky scene's pictures: the rocket's flames, then the bursts, then the birds.
Referenced by btEffectRunDaedalus().
Definition at line 82 of file battle_effect_daedalus.c.
DAEDALUS_BIRD_FLOCK
#define DAEDALUS_BIRD_FLOCK
Referenced by btEffectRunDaedalus().
Definition at line 84 of file battle_effect_daedalus.c.
DAEDALUS_ROCKET_FLAMES
#define DAEDALUS_ROCKET_FLAMES
The fall's pictures: the bursts, then the rocket's flames.
Referenced by btEffectRunDaedalus().
Definition at line 89 of file battle_effect_daedalus.c.
DAEDALUS_CANOPY_ROW
#define DAEDALUS_CANOPY_ROW (CANOPY_PICTURES + 1)
The sky scene's sprites: the canopy's two rows; the twenty-one 32x32 pieces of the machine (BronzeAutomatonTiles), among them its missiles' cover, its four hull plates and its spinning blade; the 32x64 rocket it launches; and the missile with fifteen copies. The state's first particles keep the canopy pictures' tile numbers in their variants, row by row as the sprites.
Referenced by btEffectRunDaedalus().
Definition at line 97 of file battle_effect_daedalus.c.
DAEDALUS_MACHINE
#define DAEDALUS_MACHINE 18
Referenced by btEffectRunDaedalus().
Definition at line 98 of file battle_effect_daedalus.c.
DAEDALUS_MACHINE_PIECES
#define DAEDALUS_MACHINE_PIECES 21
Referenced by btEffectRunDaedalus().
Definition at line 99 of file battle_effect_daedalus.c.
DAEDALUS_MACHINE_COLORS
#define DAEDALUS_MACHINE_COLORS 224
BronzeAutomatonTiles' colours, OBJ palette 0 to 223. The first of them all green is the machine's core, which the sky scene recolours as it glows.
Referenced by btEffectRunDaedalus().
Definition at line 102 of file battle_effect_daedalus.c.
CORE_DARK
#define CORE_DARK RGB(11, 8, 6)
The core's colour: dark at first; from DAEDALUS_GLOW_START it brightens a
level a tick towards orange (red at most, CORE_GLOW_GREEN and CORE_GLOW_BLUE)
until DAEDALUS_GLOW_END, then cools towards a dark red (CORE_EMBER_RED).
Referenced by btEffectRunDaedalus().
Definition at line 106 of file battle_effect_daedalus.c.
CORE_GLOW_GREEN
#define CORE_GLOW_GREEN 20
Referenced by btEffectRunDaedalus().
Definition at line 107 of file battle_effect_daedalus.c.
CORE_GLOW_BLUE
#define CORE_GLOW_BLUE 6
Referenced by btEffectRunDaedalus().
Definition at line 108 of file battle_effect_daedalus.c.
CORE_EMBER_RED
#define CORE_EMBER_RED 20
Referenced by btEffectRunDaedalus().
Definition at line 109 of file battle_effect_daedalus.c.
DAEDALUS_GLOW_START
#define DAEDALUS_GLOW_START 542
Referenced by btEffectRunDaedalus().
Definition at line 110 of file battle_effect_daedalus.c.
DAEDALUS_GLOW_END
#define DAEDALUS_GLOW_END 558
Referenced by btEffectRunDaedalus().
Definition at line 111 of file battle_effect_daedalus.c.
DAEDALUS_SWAY
#define DAEDALUS_SWAY 4
Until DAEDALUS_SWAY_STOP the machine's legs swing DAEDALUS_SWAY pixels to and
fro, opposite ways, once every 256 ticks, and it bobs up twice a swing, never
below its place. It lurches as its core glows and again as it fires, each
lurch half a turn of a sine over 16 ticks.
Referenced by btEffectRunDaedalus().
Definition at line 117 of file battle_effect_daedalus.c.
DAEDALUS_SWAY_STEP
#define DAEDALUS_SWAY_STEP (TRIG_TURN / 256)
Referenced by btEffectRunDaedalus().
Definition at line 118 of file battle_effect_daedalus.c.
DAEDALUS_SWAY_STOP
#define DAEDALUS_SWAY_STOP 538
Referenced by btEffectRunDaedalus().
Definition at line 119 of file battle_effect_daedalus.c.
DAEDALUS_LURCH_STEP
#define DAEDALUS_LURCH_STEP (TRIG_TURN / 32)
Referenced by btEffectRunDaedalus().
Definition at line 120 of file battle_effect_daedalus.c.
DAEDALUS_RECOIL_START
#define DAEDALUS_RECOIL_START 560
Referenced by btEffectRunDaedalus().
Definition at line 121 of file battle_effect_daedalus.c.
DAEDALUS_RECOIL_END
#define DAEDALUS_RECOIL_END 576
Referenced by btEffectRunDaedalus().
Definition at line 122 of file battle_effect_daedalus.c.
DAEDALUS_FIRE_TICK
#define DAEDALUS_FIRE_TICK 568
The tick the machine fires: a ring of fire and a ring of flames spread from it, and two ticks later the rocket leaves.
Referenced by btEffectRunDaedalus().
Definition at line 125 of file battle_effect_daedalus.c.
DAEDALUS_ROCKET_X
#define DAEDALUS_ROCKET_X 152
The rocket: where it rests in the machine and leaves from, how far its nozzle is from its middle, the pull of its flight, from which tick of it the camera would let it draw ahead, and its scale, a little over one so that it turns in a sprite box twice its size and keeps its fins.
Referenced by btEffectRunDaedalus().
Definition at line 131 of file battle_effect_daedalus.c.
DAEDALUS_ROCKET_Y
#define DAEDALUS_ROCKET_Y 92
Referenced by btEffectRunDaedalus().
Definition at line 132 of file battle_effect_daedalus.c.
ROCKET_NOZZLE
#define ROCKET_NOZZLE 27
Referenced by btEffectRunDaedalus().
Definition at line 133 of file battle_effect_daedalus.c.
ROCKET_GRAVITY
#define ROCKET_GRAVITY toFIXED(0.03431)
Referenced by btEffectRunDaedalus().
Definition at line 134 of file battle_effect_daedalus.c.
ROCKET_LEAD_START
#define ROCKET_LEAD_START 230
Referenced by btEffectRunDaedalus().
Definition at line 135 of file battle_effect_daedalus.c.
ROCKET_SCALE
#define ROCKET_SCALE toFIXED(1.01561)
Referenced by btEffectRunDaedalus().
Definition at line 136 of file battle_effect_daedalus.c.
ROCKET_THRUST_START
#define ROCKET_THRUST_START 30
The rocket's flight, in ticks from its launch. It sinks a little faster over
its first ROCKET_SINK_TICKS and speeds forward from ROCKET_THRUST_START. It
lifts from ROCKET_LIFT_START to ROCKET_LIFT_END, tipping its nose up from
ROCKET_NOSE_UP_START to ROCKET_NOSE_UP_END. From ROCKET_TURN_START to
ROCKET_TURN_END it turns its nose up as it climbs, the nose dipping a moment
from ROCKET_DIP_START to ROCKET_DIP_END; it climbs more gently until
ROCKET_SOAR_START and steeply after. Bursts rise from the foot of the view
every fourth tick while its nose tips up, and again from ROCKET_BURSTS_START
to ROCKET_BURSTS_END.
Referenced by btEffectRunDaedalus().
Definition at line 147 of file battle_effect_daedalus.c.
ROCKET_LIFT_START
#define ROCKET_LIFT_START 40
Referenced by btEffectRunDaedalus().
Definition at line 148 of file battle_effect_daedalus.c.
ROCKET_NOSE_UP_START
#define ROCKET_NOSE_UP_START 50
Referenced by btEffectRunDaedalus().
Definition at line 149 of file battle_effect_daedalus.c.
ROCKET_NOSE_UP_END
#define ROCKET_NOSE_UP_END 60
Referenced by btEffectRunDaedalus().
Definition at line 150 of file battle_effect_daedalus.c.
ROCKET_LIFT_END
#define ROCKET_LIFT_END 68
Referenced by btEffectRunDaedalus().
Definition at line 151 of file battle_effect_daedalus.c.
ROCKET_SINK_TICKS
#define ROCKET_SINK_TICKS 80
Referenced by btEffectRunDaedalus().
Definition at line 152 of file battle_effect_daedalus.c.
ROCKET_TURN_START
#define ROCKET_TURN_START 108
Referenced by btEffectRunDaedalus().
Definition at line 153 of file battle_effect_daedalus.c.
ROCKET_BURSTS_START
#define ROCKET_BURSTS_START 113
Referenced by btEffectRunDaedalus().
Definition at line 154 of file battle_effect_daedalus.c.
ROCKET_DIP_START
#define ROCKET_DIP_START 120
Referenced by btEffectRunDaedalus().
Definition at line 155 of file battle_effect_daedalus.c.
ROCKET_DIP_END
#define ROCKET_DIP_END 123
Referenced by btEffectRunDaedalus().
Definition at line 156 of file battle_effect_daedalus.c.
ROCKET_TURN_END
#define ROCKET_TURN_END 140
Referenced by btEffectRunDaedalus().
Definition at line 157 of file battle_effect_daedalus.c.
ROCKET_SOAR_START
#define ROCKET_SOAR_START 160
Referenced by btEffectRunDaedalus().
Definition at line 158 of file battle_effect_daedalus.c.
ROCKET_BURSTS_END
#define ROCKET_BURSTS_END 200
Referenced by btEffectRunDaedalus().
Definition at line 159 of file battle_effect_daedalus.c.
FLAME_RING_COUNT
#define FLAME_RING_COUNT 32
The ring of flames the machine sends out as it fires: FLAME_RING_COUNT flames
round a ring centred on DaedalusRingX and FLAME_RING_Y, its radius spreading
for FLAME_RING_TICKS ticks while each flame burns down through
RocketFlameSheet's pictures, two ticks each.
Referenced by btEffectRunDaedalus().
Definition at line 165 of file battle_effect_daedalus.c.
FLAME_RING_STEP
#define FLAME_RING_STEP (TRIG_TURN / FLAME_RING_COUNT)
Referenced by btEffectRunDaedalus().
Definition at line 166 of file battle_effect_daedalus.c.
FLAME_RING_Y
#define FLAME_RING_Y 60
Referenced by btEffectRunDaedalus().
Definition at line 167 of file battle_effect_daedalus.c.
FLAME_RING_TICKS
#define FLAME_RING_TICKS 26
Referenced by btEffectRunDaedalus().
Definition at line 168 of file battle_effect_daedalus.c.
DAEDALUS_SPLASH_START
#define DAEDALUS_SPLASH_START 490
From DAEDALUS_SPLASH_START, flames burst along four lines of six points over
the hull (DaedalusSplashPoints), a point every two ticks, each burning down
through RocketFlameSheet's pictures two ticks each; the hull falls away after
them.
Referenced by btEffectRunDaedalus().
Definition at line 174 of file battle_effect_daedalus.c.
DAEDALUS_SKY_TICKS
#define DAEDALUS_SKY_TICKS 800
The sky scene's ticks, unless A or B ends it sooner.
Referenced by btEffectRunDaedalus().
Definition at line 177 of file battle_effect_daedalus.c.
DAEDALUS_TRAILS_FRONT
#define DAEDALUS_TRAILS_FRONT 279
The sky scene's other moments. A tick before the cover flies off, the canvas,
where the missiles' smoke trails are drawn, comes in front of every sprite.
The cover flies off at DAEDALUS_COVER_OFF and the blade at
DAEDALUS_BLADE_OFF, both drawn until DAEDALUS_THROWN_GONE. The forest scrolls
by until DAEDALUS_CANOPY_STOP. After DAEDALUS_MISSILES_GONE the missiles are
no longer drawn and the sky stops scrolling. The hull falls away at
DAEDALUS_HULL_OFF and is drawn until DAEDALUS_HULL_GONE; the light-up sound
plays as the core is bared, and the canvas drops behind the sprites of
priority 1 (the canopy and the hull) at DAEDALUS_CANVAS_BEHIND. From
DAEDALUS_RUSH_START the sky scrolls a pixel a tick, two from halfway to
DAEDALUS_RUSH_END, as the rocket goes; after DAEDALUS_FLAME_COLORS the
canvas's colours step from the smoke's towards OrangePaletteB's flames.
Referenced by btEffectRunDaedalus().
Definition at line 191 of file battle_effect_daedalus.c.
DAEDALUS_COVER_OFF
#define DAEDALUS_COVER_OFF 280
Referenced by btEffectRunDaedalus().
Definition at line 192 of file battle_effect_daedalus.c.
DAEDALUS_BLADE_OFF
#define DAEDALUS_BLADE_OFF 288
Referenced by btEffectRunDaedalus().
Definition at line 193 of file battle_effect_daedalus.c.
DAEDALUS_THROWN_GONE
#define DAEDALUS_THROWN_GONE 316
Referenced by btEffectRunDaedalus().
Definition at line 194 of file battle_effect_daedalus.c.
DAEDALUS_CANOPY_STOP
#define DAEDALUS_CANOPY_STOP 473
Referenced by btEffectRunDaedalus().
Definition at line 195 of file battle_effect_daedalus.c.
DAEDALUS_MISSILES_GONE
#define DAEDALUS_MISSILES_GONE 489
Referenced by btEffectRunDaedalus().
Definition at line 196 of file battle_effect_daedalus.c.
DAEDALUS_HULL_OFF
#define DAEDALUS_HULL_OFF 506
Referenced by btEffectRunDaedalus().
Definition at line 197 of file battle_effect_daedalus.c.
DAEDALUS_LIGHT_UP_SOUND
#define DAEDALUS_LIGHT_UP_SOUND 510
Referenced by btEffectRunDaedalus().
Definition at line 198 of file battle_effect_daedalus.c.
DAEDALUS_CANVAS_BEHIND
#define DAEDALUS_CANVAS_BEHIND 528
Referenced by btEffectRunDaedalus().
Definition at line 199 of file battle_effect_daedalus.c.
DAEDALUS_HULL_GONE
#define DAEDALUS_HULL_GONE 540
Referenced by btEffectRunDaedalus().
Definition at line 200 of file battle_effect_daedalus.c.
DAEDALUS_RUSH_START
#define DAEDALUS_RUSH_START 578
Referenced by btEffectRunDaedalus().
Definition at line 201 of file battle_effect_daedalus.c.
DAEDALUS_RUSH_END
#define DAEDALUS_RUSH_END 594
Referenced by btEffectRunDaedalus().
Definition at line 202 of file battle_effect_daedalus.c.
DAEDALUS_RUSH_STEP_TICKS
#define DAEDALUS_RUSH_STEP_TICKS 8
Referenced by btEffectRunDaedalus().
Definition at line 203 of file battle_effect_daedalus.c.
DAEDALUS_FLAME_COLORS
#define DAEDALUS_FLAME_COLORS 602
Referenced by btEffectRunDaedalus().
Definition at line 204 of file battle_effect_daedalus.c.
DAEDALUS_FALL_TICKS
#define DAEDALUS_FALL_TICKS 109
The fall's ticks, and its runs of EXTRA_PARTICLES: each missile's
FALL_BURST_SLOTS, of which its two bursts use the first, and from FALL_TRAILS
each missile's trail of FALL_TRAIL_LENGTH flames.
Referenced by btEffectRunDaedalus().
Definition at line 209 of file battle_effect_daedalus.c.
FALL_BURST_SLOTS
#define FALL_BURST_SLOTS 8
Referenced by btEffectRunDaedalus().
Definition at line 210 of file battle_effect_daedalus.c.
FALL_TRAILS
#define FALL_TRAILS 256
Referenced by btEffectRunDaedalus().
Definition at line 211 of file battle_effect_daedalus.c.
FALL_TRAIL_LENGTH
#define FALL_TRAIL_LENGTH 16
Referenced by btEffectRunDaedalus().
Definition at line 212 of file battle_effect_daedalus.c.
FALL_DIVE_SPREAD
#define FALL_DIVE_SPREAD 40
The angle a missile's dive turns by for each unit of its velocityZ, a spread the fall leaves at 0.
Referenced by btEffectRunDaedalus().
Definition at line 215 of file battle_effect_daedalus.c.
DAEDALUS_VOLLEY_START
#define DAEDALUS_VOLLEY_START 10
The missiles fire in pairs, the first DAEDALUS_VOLLEY_START ticks after their
cover flies off and the next every DAEDALUS_VOLLEY_STEP ticks.
Referenced by btEffectRunDaedalus().
Definition at line 219 of file battle_effect_daedalus.c.
DAEDALUS_VOLLEY_STEP
#define DAEDALUS_VOLLEY_STEP 6
Referenced by btEffectRunDaedalus().
Definition at line 220 of file battle_effect_daedalus.c.
DAEDALUS_TOP
#define DAEDALUS_TOP DAEDALUS_MACHINE
The machine's pieces, 32 pixels square, by their place in BronzeAutomatonTiles: the two of its top; its core; the five of its body behind the hull; the five of the leg on the right, whose thigh holds the front missiles behind a cover; the cover; the two of the leg on the left; the four hull plates; and the blade.
Referenced by btEffectRunDaedalus().
Definition at line 227 of file battle_effect_daedalus.c.
DAEDALUS_CORE
#define DAEDALUS_CORE (DAEDALUS_MACHINE + 2)
Referenced by btEffectRunDaedalus().
Definition at line 228 of file battle_effect_daedalus.c.
DAEDALUS_BODY
#define DAEDALUS_BODY (DAEDALUS_MACHINE + 3)
Referenced by btEffectRunDaedalus().
Definition at line 229 of file battle_effect_daedalus.c.
DAEDALUS_RIGHT_LEG
#define DAEDALUS_RIGHT_LEG (DAEDALUS_MACHINE + 8)
Referenced by btEffectRunDaedalus().
Definition at line 230 of file battle_effect_daedalus.c.
DAEDALUS_COVER
#define DAEDALUS_COVER (DAEDALUS_MACHINE + 13)
Referenced by btEffectRunDaedalus().
Definition at line 231 of file battle_effect_daedalus.c.
DAEDALUS_LEFT_LEG
#define DAEDALUS_LEFT_LEG (DAEDALUS_MACHINE + 14)
Referenced by btEffectRunDaedalus().
Definition at line 232 of file battle_effect_daedalus.c.
DAEDALUS_HULL
#define DAEDALUS_HULL (DAEDALUS_MACHINE + 16)
Referenced by btEffectRunDaedalus().
Definition at line 233 of file battle_effect_daedalus.c.
DAEDALUS_BLADE
#define DAEDALUS_BLADE (DAEDALUS_MACHINE + 20)
Referenced by btEffectRunDaedalus().
Definition at line 234 of file battle_effect_daedalus.c.
DAEDALUS_PIECE_SIZE
#define DAEDALUS_PIECE_SIZE 32
Referenced by btEffectRunDaedalus().
Definition at line 235 of file battle_effect_daedalus.c.
DAEDALUS_ROCKET
#define DAEDALUS_ROCKET (DAEDALUS_MACHINE + DAEDALUS_MACHINE_PIECES)
Referenced by btEffectRunDaedalus().
Definition at line 236 of file battle_effect_daedalus.c.
DAEDALUS_MISSILE
#define DAEDALUS_MISSILE 41
Referenced by btEffectRunDaedalus().
Definition at line 237 of file battle_effect_daedalus.c.
DAEDALUS_MISSILE_COPIES
#define DAEDALUS_MISSILE_COPIES 15
Referenced by btEffectRunDaedalus().
Definition at line 238 of file battle_effect_daedalus.c.
DAEDALUS_MISSILE_COUNT
#define DAEDALUS_MISSILE_COUNT (DAEDALUS_MISSILE_COPIES + 1)
Referenced by btEffectRunDaedalus().
Definition at line 239 of file battle_effect_daedalus.c.
DAEDALUS_MISSILE_PALETTE
#define DAEDALUS_MISSILE_PALETTE 14
Referenced by btEffectRunDaedalus().
Definition at line 240 of file battle_effect_daedalus.c.
DAEDALUS_ROCKET_BYTES
#define DAEDALUS_ROCKET_BYTES (32 * 64)
The rocket's 32x64 picture in 256 colours, and MissileTiles as decoded: the
16x8 missile's 64 bytes and 192 more after it (missile_leftover.tsv), all
copied to the missile's VRAM.
Referenced by btEffectRunDaedalus().
Definition at line 244 of file battle_effect_daedalus.c.
MISSILE_TILES_BYTES
#define MISSILE_TILES_BYTES 256
Referenced by btEffectRunDaedalus().
Definition at line 245 of file battle_effect_daedalus.c.
DAEDALUS_TRAIL_LENGTH
#define DAEDALUS_TRAIL_LENGTH 32
Runs of EXTRA_PARTICLES in the sky scene: each missile's trail of
DAEDALUS_TRAIL_LENGTH, the flames of the rocket's launch, its exhaust, the
bursts that rise from the foot of the view as it climbs, and the birds that
drift across. The later runs share the last missiles' trails.
Referenced by btEffectRunDaedalus().
Definition at line 251 of file battle_effect_daedalus.c.
DAEDALUS_LAUNCH_FLAMES
#define DAEDALUS_LAUNCH_FLAMES 312
Referenced by btEffectRunDaedalus().
Definition at line 252 of file battle_effect_daedalus.c.
DAEDALUS_LAUNCH_FLAME_COUNT
#define DAEDALUS_LAUNCH_FLAME_COUNT 16
Referenced by btEffectRunDaedalus().
Definition at line 253 of file battle_effect_daedalus.c.
DAEDALUS_EXHAUST
#define DAEDALUS_EXHAUST 400
Referenced by btEffectRunDaedalus().
Definition at line 254 of file battle_effect_daedalus.c.
DAEDALUS_EXHAUST_FLAMES
#define DAEDALUS_EXHAUST_FLAMES 32
Referenced by btEffectRunDaedalus().
Definition at line 255 of file battle_effect_daedalus.c.
DAEDALUS_BURSTS
#define DAEDALUS_BURSTS 432
Referenced by btEffectRunDaedalus().
Definition at line 256 of file battle_effect_daedalus.c.
DAEDALUS_BURST_COUNT
#define DAEDALUS_BURST_COUNT 32
Referenced by btEffectRunDaedalus().
Definition at line 257 of file battle_effect_daedalus.c.
DAEDALUS_BIRDS
#define DAEDALUS_BIRDS 502
Referenced by btEffectRunDaedalus().
Definition at line 258 of file battle_effect_daedalus.c.
DAEDALUS_BIRD_COUNT
#define DAEDALUS_BIRD_COUNT 10
Referenced by btEffectRunDaedalus().
Definition at line 259 of file battle_effect_daedalus.c.
DAEDALUS_COVER_MOTION
#define DAEDALUS_COVER_MOTION 20
In the sky scene the machine comes apart: the missiles' cover, which flies off and times the missiles, the four hull plates, the rocket and the blade each move by a particle of their own, as do the spreading ring of flames and the sixteen missiles.
Referenced by btEffectRunDaedalus().
Definition at line 265 of file battle_effect_daedalus.c.
DAEDALUS_HULL_MOTION
#define DAEDALUS_HULL_MOTION 21
Referenced by btEffectRunDaedalus().
Definition at line 266 of file battle_effect_daedalus.c.
DAEDALUS_ROCKET_MOTION
#define DAEDALUS_ROCKET_MOTION 22
Referenced by btEffectRunDaedalus().
Definition at line 267 of file battle_effect_daedalus.c.
DAEDALUS_BLADE_MOTION
#define DAEDALUS_BLADE_MOTION 23
Referenced by btEffectRunDaedalus().
Definition at line 268 of file battle_effect_daedalus.c.
DAEDALUS_RING_MOTION
#define DAEDALUS_RING_MOTION 30
Referenced by btEffectRunDaedalus().
Definition at line 269 of file battle_effect_daedalus.c.
DAEDALUS_MISSILE_MOTIONS
#define DAEDALUS_MISSILE_MOTIONS 32
Referenced by btEffectRunDaedalus().
Definition at line 270 of file battle_effect_daedalus.c.
DAEDALUS_STRIKE_TICKS
#define DAEDALUS_STRIKE_TICKS 108
Referenced by btEffectRunDaedalusStrike().
Definition at line 1751 of file battle_effect_daedalus.c.
DAEDALUS_STRIKE_DIVE_TICKS
#define DAEDALUS_STRIKE_DIVE_TICKS 92
The rocket dives in over the strike's first DAEDALUS_STRIKE_DIVE_TICKS.
Referenced by btEffectRunDaedalusStrike().
Definition at line 1753 of file battle_effect_daedalus.c.
DAEDALUS_STRIKE_GLOW_START
#define DAEDALUS_STRIKE_GLOW_START 56
From DAEDALUS_STRIKE_GLOW_START a disc of light swells to
DAEDALUS_STRIKE_DISC_SIZE beneath it and its rays of light spin out: six of
the sixteen set up, each shown for DAEDALUS_STRIKE_RAY_LIFE steps, two a
tick.
Referenced by btEffectRunDaedalusStrike().
Definition at line 1758 of file battle_effect_daedalus.c.
DAEDALUS_STRIKE_DISC_SIZE
#define DAEDALUS_STRIKE_DISC_SIZE 128
Referenced by btEffectRunDaedalusStrike().
Definition at line 1759 of file battle_effect_daedalus.c.
DAEDALUS_STRIKE_RAYS_SET_UP
#define DAEDALUS_STRIKE_RAYS_SET_UP 16
Referenced by btEffectRunDaedalusStrike().
Definition at line 1760 of file battle_effect_daedalus.c.
DAEDALUS_STRIKE_RAYS
#define DAEDALUS_STRIKE_RAYS 6
Referenced by btEffectRunDaedalusStrike().
Definition at line 1761 of file battle_effect_daedalus.c.
DAEDALUS_STRIKE_RAY_LIFE
#define DAEDALUS_STRIKE_RAY_LIFE 48
Referenced by btEffectRunDaedalusStrike().
Definition at line 1762 of file battle_effect_daedalus.c.
DAEDALUS_STRIKE_SPARK_TICK
#define DAEDALUS_STRIKE_SPARK_TICK 80
At DAEDALUS_STRIKE_SPARK_TICK the canvas flashes, and a burst of
SPARKS_PER_BURST sparks scatters each of the next DAEDALUS_STRIKE_BURSTS
ticks.
Referenced by btEffectRunDaedalusStrike().
Definition at line 1766 of file battle_effect_daedalus.c.
DAEDALUS_STRIKE_BURSTS
#define DAEDALUS_STRIKE_BURSTS 8
Referenced by btEffectRunDaedalusStrike().
Definition at line 1767 of file battle_effect_daedalus.c.
SPARKS_PER_BURST
#define SPARKS_PER_BURST 8
Referenced by btEffectRunDaedalusStrike().
Definition at line 1768 of file battle_effect_daedalus.c.
DAEDALUS_STRIKE_SPARKS
#define DAEDALUS_STRIKE_SPARKS (DAEDALUS_STRIKE_BURSTS * SPARKS_PER_BURST)
Referenced by btEffectRunDaedalusStrike().
Definition at line 1769 of file battle_effect_daedalus.c.
DAEDALUS_STRIKE_GLOW_BAND
#define DAEDALUS_STRIKE_GLOW_BAND 16384
Where GlowBandTextureA is decoded in the effect's pictures.
Referenced by btEffectRunDaedalusStrike().
Definition at line 1782 of file battle_effect_daedalus.c.
Functions in detail
btEffectPackYellowOrbs
void btEffectPackYellowOrbs(Uint8 *src, Uint8 *dest, Sint32 stride)
Packs YellowOrbSheet's six pictures to half width for the canvas, which holds every other column: each row keeps its odd columns. stride is a source row's bytes; a packed row takes half as many.
References Sint32.
Referenced by btEffectRunCastingImpact().
Definition at line 7 of file battle_effect_daedalus.c.
btEffectRunDaedalus
void btEffectRunDaedalus(BATTLE_EFFECT_PARM *args)
Daedalus: the battle flashes away to a cloudy blue sky over a forest. In the
sky scene the bronze machine climbs into view among birds, throws off the
cover of its missiles and its blade as the sixteen missiles fly, sheds its
hull plates, and its core glows until it sends out a ring of fire and
launches its rocket; A or B skips the scene. Then the battle comes back and
the missiles dive onto the foes in bursts of fire. Its second strike
(btEffectRunDaedalusStrike) comes at the end of the next turn.
Abilities: Daedalus.
References BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, BattleEffectMotePictures, BgScrollWork, btActorSpawnObjectsForListStub(), btBackgroundLoadStub(), btCameraShake(), btEffectAdvanceScrollOnInterval(), btEffectBuildCanvasBlitters(), btEffectConfigureEffectDisplay(), btEffectCreateSprites(), btEffectFillWhiteBand(), btEffectSetupBlendedDisplay(), btEffectSpriteAcquire(), btEffectSpriteCreateWithTiles(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btEffectTransferCanvas(), btParticleAdvanceWithGravity2D(), btParticleAdvanceWithGravity3D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), DaedalusBirdSpeeds, DaedalusBirdStarts, DaedalusBirdTicks, DaedalusCanopyScale, DaedalusClatterTicks, DaedalusDiveStarts, DaedalusMachineScale, DaedalusMissileScale, DaedalusRightLegPoints, DaedalusRingStarts, DaedalusRingX, DaedalusShakeOffsets, DaedalusSplashPoints, DaedalusWingBeatPictures, fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), PerWork, ProjectionWork, Sint32, syCloseEvent(), syCos(), syDecompressTaggedLZ(), syDMAXCopy(), syHeapAllocateEWRAM() and 17 more.
Referenced by btEffectRunSummon().
Definition at line 281 of file battle_effect_daedalus.c.
btEffectRunDaedalusStrike
void btEffectRunDaedalusStrike(BATTLE_EFFECT_PARM *args)
Daedalus's second strike, at the end of the turn after the summon: its rocket
(SPRITE_DAEDALUS_ROCKET) dives from above the screen and settles while, from
DAEDALUS_STRIKE_GLOW_START, a disc of light swells beneath it and rays of
light spin out. At DAEDALUS_STRIKE_SPARK_TICK the canvas flashes and a burst
of sparks scatters each tick of DAEDALUS_STRIKE_BURSTS, and at the ticks of
DaedalusStrikeHitTicks every target is knocked back and flashes.
Abilities: Daedalus (its second strike).
References BattleEffectSmallSquareMesh, BattleEffectTaperedBeamCorners, btCameraShake(), btCanvasBlitMirroredQuarters(), btEffectConfigureEffectDisplay(), btEffectCreateSprites(), btEffectDrawShadedDiscQuarter(), btEffectEndCanvasLayer(), btEffectShowLivingTargets(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btParticleAdvanceWithGravity2D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), DaedalusStrikeHitTicks, DaedalusStrikeRocketScale, fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), MapGridMetatileBuffer, Sint32, syCloseEvent(), syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syRandom(), syResourceGetTableEntry(), syRotZ(), syScale(), sySin(), sySoundPlayStub() and syTranslate().
Referenced by btEffectRunSummon().
Definition at line 1792 of file battle_effect_daedalus.c.