Skip to Content
The Alchemy Project

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

NameDescription
structSPR_ATTRA sprite's first ten bytes, its attribute 2 fields after eight others.
structSTRIKE_ROCKETThe rocket's display fields that the strike sets: a SPR from its rotation on.

Macros

NameDescription
#defineDAEDALUS_SPRITE (i) ((SPR *)state->sprites[i])The effect state's sprite slot i.
#defineDECODE_BUFFER RamMapMetatileBufferWhere the effect's pictures are decoded before they are copied to OBJ VRAM.
#defineDAEDALUS_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.
#defineDAEDALUS_MOTE 3The 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.
#defineDAEDALUS_MOTE_BYTES ((DAEDALUS_MOTE + 1) * (DAEDALUS_MOTE + 1) * 2)
#defineDAEDALUS_MOTE_COPIES 10
#defineDAEDALUS_MOTE_DIM_FIRST 40
#defineDAEDALUS_MOTE_DIM_STEP 4
#defineCANOPY_PALETTE 15ForestCanopyTiles: two rows of eight 32x32 pictures of treetops, in OBJ palette CANOPY_PALETTE.
#defineCANOPY_ROWS 2
#defineCANOPY_PICTURES 8
#defineCANOPY_PICTURE_SIZE 32
#defineCANOPY_ROW_BYTES (CANOPY_PICTURES * OBJ_32X32_4BPP_BYTES)
#defineCANOPY_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.
#defineCANOPY_Y 132The canopy's top in the sky scene.
#defineDAEDALUS_CLIMB 29
#defineROCKET_FLAME_WIDTH 12RocketFlameSheet: six 12x24 flames, each dimmer than the last.
#defineROCKET_FLAME_HEIGHT 24
#defineROCKET_FLAME_COUNT 6
#defineBIRD_WIDTH 16BirdFlockSheet's 16x16 birds, and the twelve steps of a wing beat (DaedalusWingBeatPictures).
#defineBIRD_HEIGHT 16
#defineBIRD_WING_BEAT 12
#defineDAEDALUS_FLASH_BURST_PICTURESThe sky scene's pictures: the rocket's flames, then the bursts, then the birds.
#defineDAEDALUS_BIRD_FLOCK
#defineDAEDALUS_ROCKET_FLAMESThe fall's pictures: the bursts, then the rocket's flames.
#defineDAEDALUS_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.
#defineDAEDALUS_MACHINE 18
#defineDAEDALUS_MACHINE_PIECES 21
#defineDAEDALUS_MACHINE_COLORS 224BronzeAutomatonTiles' colours, OBJ palette 0 to 223.
#defineCORE_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).
#defineCORE_GLOW_GREEN 20
#defineCORE_GLOW_BLUE 6
#defineCORE_EMBER_RED 20
#defineDAEDALUS_GLOW_START 542
#defineDAEDALUS_GLOW_END 558
#defineDAEDALUS_SWAY 4Until 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.
#defineDAEDALUS_SWAY_STEP (TRIG_TURN / 256)
#defineDAEDALUS_SWAY_STOP 538
#defineDAEDALUS_LURCH_STEP (TRIG_TURN / 32)
#defineDAEDALUS_RECOIL_START 560
#defineDAEDALUS_RECOIL_END 576
#defineDAEDALUS_FIRE_TICK 568The tick the machine fires: a ring of fire and a ring of flames spread from it, and two ticks later the rocket leaves.
#defineDAEDALUS_ROCKET_X 152The 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.
#defineDAEDALUS_ROCKET_Y 92
#defineROCKET_NOZZLE 27
#defineROCKET_GRAVITY toFIXED(0.03431)
#defineROCKET_LEAD_START 230
#defineROCKET_SCALE toFIXED(1.01561)
#defineROCKET_THRUST_START 30The rocket's flight, in ticks from its launch.
#defineROCKET_LIFT_START 40
#defineROCKET_NOSE_UP_START 50
#defineROCKET_NOSE_UP_END 60
#defineROCKET_LIFT_END 68
#defineROCKET_SINK_TICKS 80
#defineROCKET_TURN_START 108
#defineROCKET_BURSTS_START 113
#defineROCKET_DIP_START 120
#defineROCKET_DIP_END 123
#defineROCKET_TURN_END 140
#defineROCKET_SOAR_START 160
#defineROCKET_BURSTS_END 200
#defineFLAME_RING_COUNT 32The 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.
#defineFLAME_RING_STEP (TRIG_TURN / FLAME_RING_COUNT)
#defineFLAME_RING_Y 60
#defineFLAME_RING_TICKS 26
#defineDAEDALUS_SPLASH_START 490From 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.
#defineDAEDALUS_SKY_TICKS 800The sky scene's ticks, unless A or B ends it sooner.
#defineDAEDALUS_TRAILS_FRONT 279The sky scene's other moments.
#defineDAEDALUS_COVER_OFF 280
#defineDAEDALUS_BLADE_OFF 288
#defineDAEDALUS_THROWN_GONE 316
#defineDAEDALUS_CANOPY_STOP 473
#defineDAEDALUS_MISSILES_GONE 489
#defineDAEDALUS_HULL_OFF 506
#defineDAEDALUS_LIGHT_UP_SOUND 510
#defineDAEDALUS_CANVAS_BEHIND 528
#defineDAEDALUS_HULL_GONE 540
#defineDAEDALUS_RUSH_START 578
#defineDAEDALUS_RUSH_END 594
#defineDAEDALUS_RUSH_STEP_TICKS 8
#defineDAEDALUS_FLAME_COLORS 602
#defineDAEDALUS_FALL_TICKS 109The 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.
#defineFALL_BURST_SLOTS 8
#defineFALL_TRAILS 256
#defineFALL_TRAIL_LENGTH 16
#defineFALL_DIVE_SPREAD 40The angle a missile's dive turns by for each unit of its velocityZ, a spread the fall leaves at 0.
#defineDAEDALUS_VOLLEY_START 10The missiles fire in pairs, the first DAEDALUS_VOLLEY_START ticks after their cover flies off and the next every DAEDALUS_VOLLEY_STEP ticks.
#defineDAEDALUS_VOLLEY_STEP 6
#defineDAEDALUS_TOP DAEDALUS_MACHINEThe 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.
#defineDAEDALUS_CORE (DAEDALUS_MACHINE + 2)
#defineDAEDALUS_BODY (DAEDALUS_MACHINE + 3)
#defineDAEDALUS_RIGHT_LEG (DAEDALUS_MACHINE + 8)
#defineDAEDALUS_COVER (DAEDALUS_MACHINE + 13)
#defineDAEDALUS_LEFT_LEG (DAEDALUS_MACHINE + 14)
#defineDAEDALUS_HULL (DAEDALUS_MACHINE + 16)
#defineDAEDALUS_BLADE (DAEDALUS_MACHINE + 20)
#defineDAEDALUS_PIECE_SIZE 32
#defineDAEDALUS_ROCKET (DAEDALUS_MACHINE + DAEDALUS_MACHINE_PIECES)
#defineDAEDALUS_MISSILE 41
#defineDAEDALUS_MISSILE_COPIES 15
#defineDAEDALUS_MISSILE_COUNT (DAEDALUS_MISSILE_COPIES + 1)
#defineDAEDALUS_MISSILE_PALETTE 14
#defineDAEDALUS_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.
#defineMISSILE_TILES_BYTES 256
#defineDAEDALUS_TRAIL_LENGTH 32Runs 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.
#defineDAEDALUS_LAUNCH_FLAMES 312
#defineDAEDALUS_LAUNCH_FLAME_COUNT 16
#defineDAEDALUS_EXHAUST 400
#defineDAEDALUS_EXHAUST_FLAMES 32
#defineDAEDALUS_BURSTS 432
#defineDAEDALUS_BURST_COUNT 32
#defineDAEDALUS_BIRDS 502
#defineDAEDALUS_BIRD_COUNT 10
#defineDAEDALUS_COVER_MOTION 20In 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.
#defineDAEDALUS_HULL_MOTION 21
#defineDAEDALUS_ROCKET_MOTION 22
#defineDAEDALUS_BLADE_MOTION 23
#defineDAEDALUS_RING_MOTION 30
#defineDAEDALUS_MISSILE_MOTIONS 32
#defineDAEDALUS_STRIKE_TICKS 108
#defineDAEDALUS_STRIKE_DIVE_TICKS 92The rocket dives in over the strike's first DAEDALUS_STRIKE_DIVE_TICKS.
#defineDAEDALUS_STRIKE_GLOW_START 56From 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.
#defineDAEDALUS_STRIKE_DISC_SIZE 128
#defineDAEDALUS_STRIKE_RAYS_SET_UP 16
#defineDAEDALUS_STRIKE_RAYS 6
#defineDAEDALUS_STRIKE_RAY_LIFE 48
#defineDAEDALUS_STRIKE_SPARK_TICK 80At DAEDALUS_STRIKE_SPARK_TICK the canvas flashes, and a burst of SPARKS_PER_BURST sparks scatters each of the next DAEDALUS_STRIKE_BURSTS ticks.
#defineDAEDALUS_STRIKE_BURSTS 8
#defineSPARKS_PER_BURST 8
#defineDAEDALUS_STRIKE_SPARKS (DAEDALUS_STRIKE_BURSTS * SPARKS_PER_BURST)
#defineDAEDALUS_STRIKE_GLOW_BAND 16384Where GlowBandTextureA is decoded in the effect's pictures.

Functions

NameDescription
voidbtEffectPackYellowOrbs (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.
voidbtEffectRunDaedalus (BATTLE_EFFECT_PARM *args)Daedalus: the battle flashes away to a cloudy blue sky over a forest.
voidbtEffectRunDaedalusStrike (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

NameDescription
extern const SCALEDaedalusStrikeRocketScaleThe 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.

On this page

StructuresMacrosFunctionsVariablesDescriptionMacros in detailDAEDALUS_SPRITEDECODE_BUFFERDAEDALUS_PARTICLE_COUNTDAEDALUS_MOTEDAEDALUS_MOTE_BYTESDAEDALUS_MOTE_COPIESDAEDALUS_MOTE_DIM_FIRSTDAEDALUS_MOTE_DIM_STEPCANOPY_PALETTECANOPY_ROWSCANOPY_PICTURESCANOPY_PICTURE_SIZECANOPY_ROW_BYTESCANOPY_WRAPCANOPY_YDAEDALUS_CLIMBROCKET_FLAME_WIDTHROCKET_FLAME_HEIGHTROCKET_FLAME_COUNTBIRD_WIDTHBIRD_HEIGHTBIRD_WING_BEATDAEDALUS_FLASH_BURST_PICTURESDAEDALUS_BIRD_FLOCKDAEDALUS_ROCKET_FLAMESDAEDALUS_CANOPY_ROWDAEDALUS_MACHINEDAEDALUS_MACHINE_PIECESDAEDALUS_MACHINE_COLORSCORE_DARKCORE_GLOW_GREENCORE_GLOW_BLUECORE_EMBER_REDDAEDALUS_GLOW_STARTDAEDALUS_GLOW_ENDDAEDALUS_SWAYDAEDALUS_SWAY_STEPDAEDALUS_SWAY_STOPDAEDALUS_LURCH_STEPDAEDALUS_RECOIL_STARTDAEDALUS_RECOIL_ENDDAEDALUS_FIRE_TICKDAEDALUS_ROCKET_XDAEDALUS_ROCKET_YROCKET_NOZZLEROCKET_GRAVITYROCKET_LEAD_STARTROCKET_SCALEROCKET_THRUST_STARTROCKET_LIFT_STARTROCKET_NOSE_UP_STARTROCKET_NOSE_UP_ENDROCKET_LIFT_ENDROCKET_SINK_TICKSROCKET_TURN_STARTROCKET_BURSTS_STARTROCKET_DIP_STARTROCKET_DIP_ENDROCKET_TURN_ENDROCKET_SOAR_STARTROCKET_BURSTS_ENDFLAME_RING_COUNTFLAME_RING_STEPFLAME_RING_YFLAME_RING_TICKSDAEDALUS_SPLASH_STARTDAEDALUS_SKY_TICKSDAEDALUS_TRAILS_FRONTDAEDALUS_COVER_OFFDAEDALUS_BLADE_OFFDAEDALUS_THROWN_GONEDAEDALUS_CANOPY_STOPDAEDALUS_MISSILES_GONEDAEDALUS_HULL_OFFDAEDALUS_LIGHT_UP_SOUNDDAEDALUS_CANVAS_BEHINDDAEDALUS_HULL_GONEDAEDALUS_RUSH_STARTDAEDALUS_RUSH_ENDDAEDALUS_RUSH_STEP_TICKSDAEDALUS_FLAME_COLORSDAEDALUS_FALL_TICKSFALL_BURST_SLOTSFALL_TRAILSFALL_TRAIL_LENGTHFALL_DIVE_SPREADDAEDALUS_VOLLEY_STARTDAEDALUS_VOLLEY_STEPDAEDALUS_TOPDAEDALUS_COREDAEDALUS_BODYDAEDALUS_RIGHT_LEGDAEDALUS_COVERDAEDALUS_LEFT_LEGDAEDALUS_HULLDAEDALUS_BLADEDAEDALUS_PIECE_SIZEDAEDALUS_ROCKETDAEDALUS_MISSILEDAEDALUS_MISSILE_COPIESDAEDALUS_MISSILE_COUNTDAEDALUS_MISSILE_PALETTEDAEDALUS_ROCKET_BYTESMISSILE_TILES_BYTESDAEDALUS_TRAIL_LENGTHDAEDALUS_LAUNCH_FLAMESDAEDALUS_LAUNCH_FLAME_COUNTDAEDALUS_EXHAUSTDAEDALUS_EXHAUST_FLAMESDAEDALUS_BURSTSDAEDALUS_BURST_COUNTDAEDALUS_BIRDSDAEDALUS_BIRD_COUNTDAEDALUS_COVER_MOTIONDAEDALUS_HULL_MOTIONDAEDALUS_ROCKET_MOTIONDAEDALUS_BLADE_MOTIONDAEDALUS_RING_MOTIONDAEDALUS_MISSILE_MOTIONSDAEDALUS_STRIKE_TICKSDAEDALUS_STRIKE_DIVE_TICKSDAEDALUS_STRIKE_GLOW_STARTDAEDALUS_STRIKE_DISC_SIZEDAEDALUS_STRIKE_RAYS_SET_UPDAEDALUS_STRIKE_RAYSDAEDALUS_STRIKE_RAY_LIFEDAEDALUS_STRIKE_SPARK_TICKDAEDALUS_STRIKE_BURSTSSPARKS_PER_BURSTDAEDALUS_STRIKE_SPARKSDAEDALUS_STRIKE_GLOW_BANDFunctions in detailbtEffectPackYellowOrbsbtEffectRunDaedalusbtEffectRunDaedalusStrike