src/battle_effect/battle_effect_azul.c
The summon Azul: a sea serpent that shatters the battlefield, closes the foes in a sphere of water and bursts it over them. More…
Included by battle_effect.c.
Structures
| Name | Description | |
|---|---|---|
struct | AZUL_FACE | One face of a shard of the shattered battlefield: its three corners and their texture coordinates in the battlefield's picture. |
Macros
| Name | Description | |
|---|---|---|
#define | CLAMP_Y (place) | Clamps a sprite's projected y to the screen's band. |
#define | AZUL_TICKS 228 | Azul's timeline, in ticks. |
#define | AZUL_SHATTER_TICK 10 | |
#define | AZUL_BUBBLES_TICK 16 | |
#define | AZUL_SWIM_TICK 54 | |
#define | AZUL_SPHERE_TICK 78 | The sphere is built; it shows two ticks on. |
#define | AZUL_DART_TICK 138 | |
#define | AZUL_SWIRL_TICK 152 | |
#define | AZUL_DEEPEN_TICK 160 | The water deepens again. |
#define | AZUL_RISE_TICK 168 | |
#define | AZUL_BURST_TICK 186 | |
#define | AZUL_DAMAGE_TICK 214 | |
#define | AZUL_SERPENT_OBJECTS 12 | Azul's objects: the serpent's twelve, then sixteen copies of its body segments 5 to 8 that trail behind them; and the 31 shards the battlefield breaks into as it plunges down. |
#define | AZUL_BODY_SEGMENT 5 | |
#define | AZUL_BODY_COPIES 16 | |
#define | AZUL_OBJECTS (AZUL_SERPENT_OBJECTS + AZUL_BODY_COPIES) | |
#define | AZUL_SWIMMING_OBJECTS 8 | The serpent's first sprites, which alone show as it swims in and circles the foes. |
#define | AZUL_TAIL_OBJECT 9 | Its last three, pictures 9 to 11 of the serpent's sheet, a last coil and two fins of its tail, which Azul never shows: upright they are moved a screen's height off the battle view, and the swim leaves them out. |
#define | AZUL_PARTS 31 | |
#define | AZUL_PART_POINTS 5 | A shard's points in AzulPartPoints: its middle, then its four corners. |
#define | AZUL_SHATTER_CENTER 60 | The point of the canvas the shards fly out from. |
#define | AZUL_BUBBLE_COUNT 27 | The bubbles that rise from tick 16, in the particles after the shards. |
#define | AZUL_FACES 496 | Azul's pictures and models in the effect's pictures: the shards' faces after their corners, the sphere, the grid, BlueBeamSheet, and its first picture, a blue bubble, with every other pixel kept as the canvas's halved width draws it. |
#define | AZUL_SPHERE 2048 | |
#define | AZUL_GRID 3072 | |
#define | AZUL_BLUE_BEAM 11192 | |
#define | AZUL_BUBBLE 11768 | |
#define | AZUL_BUBBLE_WIDTH 12 | |
#define | AZUL_BUBBLE_HEIGHT 24 | |
#define | AZUL_WISPS 12056 | WispSheet's six 64x32 pictures, turned a quarter and every other row kept: six 16x64 wisps of foam. |
#define | AZUL_WISP_WIDTH 16 | |
#define | AZUL_WISP_HEIGHT 64 | |
#define | AZUL_WISP_PICTURES 6 | |
#define | AZUL_SPHERE_RINGS 16 | The water sphere: 16 rings of 16 vertices from pole to pole, 48 pixels round. |
#define | AZUL_SPHERE_RING_VERTICES 16 | |
#define | AZUL_SPHERE_RADIUS 48 | |
#define | AZUL_BUBBLE_PHASE_STEP 6678 | The phase of a bubble's sway, a bubble after the one before. |
#define | AZUL_BUBBLE_DELAY 32 | The bubbles show one after another: bubble i waits AZUL_BUBBLE_DELAY times 1 - cos(i / 128 of a turn) ticks, each a little longer than the last. |
#define | AZUL_WATER_BLUE 40 | The water behind the foes: the backdrop's colour on each line of the battle view, its top line these levels of blue, green and red (cyan, the brighter levels held at the brightest), each channel a level darker every so many lines down. |
#define | AZUL_WATER_GREEN 32 | |
#define | AZUL_WATER_RED 16 | |
#define | AZUL_WATER_DEPTH 12 | |
#define | AZUL_WATER_DEEPEST 20 | |
#define | AZUL_DROPS 256 | The drops the sphere bursts into, kept in the map grid's cell buffer. |
#define | AZUL_RING_TURN 13384 | How far FireRingTexture's square is turned about the upright. |
#define | AZUL_TEXTURES 16384 | Where Azul decodes, one after another, WispSheet, CornerRuneASheet, FireRingTexture and SwirlTexture in the map cell buffer. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunAzul (BATTLE_EFFECT_PARM *args) | Azul: the serpent plunges down and the battlefield shatters behind it, bubbles rise round the foes, the serpent swims in from the right and closes them in a great sphere of water, and the sphere bursts over the field in foam and falling drops. |
Description
The summon Azul: a sea serpent that shatters the battlefield, closes the foes
in a sphere of water and bursts it over them. Part of battle_effect.c.
Macros in detail
CLAMP_Y
#define CLAMP_Y(place)
Clamps a sprite's projected y to the screen's band.
Referenced by btEffectRunAzul().
Definition at line 18 of file battle_effect_azul.c.
AZUL_TICKS
#define AZUL_TICKS 228
Azul's timeline, in ticks. The serpent plunges down from tick 0 and the
battlefield shatters behind it; bubbles rise round the foes; the serpent
swims in from the right and circles them while the water sphere closes; it
darts off, the sphere swirls, the serpent rises from below, and the sphere
bursts. A or B from AZUL_BUBBLES_TICK on skips to the burst.
Referenced by btEffectRunAzul().
Definition at line 29 of file battle_effect_azul.c.
AZUL_SHATTER_TICK
#define AZUL_SHATTER_TICK 10
Referenced by btEffectRunAzul().
Definition at line 30 of file battle_effect_azul.c.
AZUL_BUBBLES_TICK
#define AZUL_BUBBLES_TICK 16
Referenced by btEffectRunAzul().
Definition at line 31 of file battle_effect_azul.c.
AZUL_SWIM_TICK
#define AZUL_SWIM_TICK 54
Referenced by btEffectRunAzul().
Definition at line 32 of file battle_effect_azul.c.
AZUL_SPHERE_TICK
#define AZUL_SPHERE_TICK 78
The sphere is built; it shows two ticks on.
Referenced by btEffectRunAzul().
Definition at line 34 of file battle_effect_azul.c.
AZUL_DART_TICK
#define AZUL_DART_TICK 138
Referenced by btEffectRunAzul().
Definition at line 35 of file battle_effect_azul.c.
AZUL_SWIRL_TICK
#define AZUL_SWIRL_TICK 152
Referenced by btEffectRunAzul().
Definition at line 36 of file battle_effect_azul.c.
AZUL_DEEPEN_TICK
#define AZUL_DEEPEN_TICK 160
The water deepens again.
Referenced by btEffectRunAzul().
Definition at line 38 of file battle_effect_azul.c.
AZUL_RISE_TICK
#define AZUL_RISE_TICK 168
Referenced by btEffectRunAzul().
Definition at line 39 of file battle_effect_azul.c.
AZUL_BURST_TICK
#define AZUL_BURST_TICK 186
Referenced by btEffectRunAzul().
Definition at line 40 of file battle_effect_azul.c.
AZUL_DAMAGE_TICK
#define AZUL_DAMAGE_TICK 214
Referenced by btEffectRunAzul().
Definition at line 41 of file battle_effect_azul.c.
AZUL_SERPENT_OBJECTS
#define AZUL_SERPENT_OBJECTS 12
Azul's objects: the serpent's twelve, then sixteen copies of its body segments 5 to 8 that trail behind them; and the 31 shards the battlefield breaks into as it plunges down.
Referenced by btEffectRunAzul().
Definition at line 46 of file battle_effect_azul.c.
AZUL_BODY_SEGMENT
#define AZUL_BODY_SEGMENT 5
Referenced by btEffectRunAzul().
Definition at line 47 of file battle_effect_azul.c.
AZUL_BODY_COPIES
#define AZUL_BODY_COPIES 16
Referenced by btEffectRunAzul().
Definition at line 48 of file battle_effect_azul.c.
AZUL_OBJECTS
#define AZUL_OBJECTS (AZUL_SERPENT_OBJECTS + AZUL_BODY_COPIES)
Referenced by btEffectRunAzul().
Definition at line 49 of file battle_effect_azul.c.
AZUL_SWIMMING_OBJECTS
#define AZUL_SWIMMING_OBJECTS 8
The serpent's first sprites, which alone show as it swims in and circles the foes.
Referenced by btEffectRunAzul().
Definition at line 52 of file battle_effect_azul.c.
AZUL_TAIL_OBJECT
#define AZUL_TAIL_OBJECT 9
Its last three, pictures 9 to 11 of the serpent's sheet, a last coil and two fins of its tail, which Azul never shows: upright they are moved a screen's height off the battle view, and the swim leaves them out.
Referenced by btEffectRunAzul().
Definition at line 56 of file battle_effect_azul.c.
AZUL_PARTS
#define AZUL_PARTS 31
Referenced by btEffectRunAzul().
Definition at line 57 of file battle_effect_azul.c.
AZUL_PART_POINTS
#define AZUL_PART_POINTS 5
A shard's points in AzulPartPoints: its middle, then its four corners.
Referenced by btEffectRunAzul().
Definition at line 59 of file battle_effect_azul.c.
AZUL_SHATTER_CENTER
#define AZUL_SHATTER_CENTER 60
The point of the canvas the shards fly out from.
Referenced by btEffectRunAzul().
Definition at line 61 of file battle_effect_azul.c.
AZUL_BUBBLE_COUNT
#define AZUL_BUBBLE_COUNT 27
The bubbles that rise from tick 16, in the particles after the shards.
Referenced by btEffectRunAzul().
Definition at line 63 of file battle_effect_azul.c.
AZUL_FACES
#define AZUL_FACES 496
Azul's pictures and models in the effect's pictures: the shards' faces after their corners, the sphere, the grid, BlueBeamSheet, and its first picture, a blue bubble, with every other pixel kept as the canvas's halved width draws it.
Referenced by btEffectRunAzul().
Definition at line 69 of file battle_effect_azul.c.
AZUL_SPHERE
#define AZUL_SPHERE 2048
Referenced by btEffectRunAzul().
Definition at line 70 of file battle_effect_azul.c.
AZUL_GRID
#define AZUL_GRID 3072
Referenced by btEffectRunAzul().
Definition at line 71 of file battle_effect_azul.c.
AZUL_BLUE_BEAM
#define AZUL_BLUE_BEAM 11192
Referenced by btEffectRunAzul().
Definition at line 72 of file battle_effect_azul.c.
AZUL_BUBBLE
#define AZUL_BUBBLE 11768
Referenced by btEffectRunAzul().
Definition at line 73 of file battle_effect_azul.c.
AZUL_BUBBLE_WIDTH
#define AZUL_BUBBLE_WIDTH 12
Referenced by btEffectRunAzul().
Definition at line 74 of file battle_effect_azul.c.
AZUL_BUBBLE_HEIGHT
#define AZUL_BUBBLE_HEIGHT 24
Referenced by btEffectRunAzul().
Definition at line 75 of file battle_effect_azul.c.
AZUL_WISPS
#define AZUL_WISPS 12056
WispSheet's six 64x32 pictures, turned a quarter and every other row kept: six 16x64 wisps of foam.
Referenced by btEffectRunAzul().
Definition at line 78 of file battle_effect_azul.c.
AZUL_WISP_WIDTH
#define AZUL_WISP_WIDTH 16
Referenced by btEffectRunAzul().
Definition at line 79 of file battle_effect_azul.c.
AZUL_WISP_HEIGHT
#define AZUL_WISP_HEIGHT 64
Referenced by btEffectRunAzul().
Definition at line 80 of file battle_effect_azul.c.
AZUL_WISP_PICTURES
#define AZUL_WISP_PICTURES 6
Referenced by btEffectRunAzul().
Definition at line 81 of file battle_effect_azul.c.
AZUL_SPHERE_RINGS
#define AZUL_SPHERE_RINGS 16
The water sphere: 16 rings of 16 vertices from pole to pole, 48 pixels round.
Referenced by btEffectRunAzul().
Definition at line 83 of file battle_effect_azul.c.
AZUL_SPHERE_RING_VERTICES
#define AZUL_SPHERE_RING_VERTICES 16
Referenced by btEffectRunAzul().
Definition at line 84 of file battle_effect_azul.c.
AZUL_SPHERE_RADIUS
#define AZUL_SPHERE_RADIUS 48
Referenced by btEffectRunAzul().
Definition at line 85 of file battle_effect_azul.c.
AZUL_BUBBLE_PHASE_STEP
#define AZUL_BUBBLE_PHASE_STEP 6678
The phase of a bubble's sway, a bubble after the one before.
Referenced by btEffectRunAzul().
Definition at line 87 of file battle_effect_azul.c.
AZUL_BUBBLE_DELAY
#define AZUL_BUBBLE_DELAY 32
The bubbles show one after another: bubble i waits AZUL_BUBBLE_DELAY times 1
- cos(i / 128 of a turn) ticks, each a little longer than the last.
Referenced by btEffectRunAzul().
Definition at line 90 of file battle_effect_azul.c.
AZUL_WATER_BLUE
#define AZUL_WATER_BLUE 40
The water behind the foes: the backdrop's colour on each line of the battle
view, its top line these levels of blue, green and red (cyan, the brighter
levels held at the brightest), each channel a level darker every so many
lines down. The water deepens a level every 8 ticks for AZUL_WATER_DEPTH
ticks of 8, and from tick 160 a level every 4 ticks from AZUL_WATER_DEPTH to
AZUL_WATER_DEEPEST.
Referenced by btEffectRunAzul().
Definition at line 97 of file battle_effect_azul.c.
AZUL_WATER_GREEN
#define AZUL_WATER_GREEN 32
Referenced by btEffectRunAzul().
Definition at line 98 of file battle_effect_azul.c.
AZUL_WATER_RED
#define AZUL_WATER_RED 16
Referenced by btEffectRunAzul().
Definition at line 99 of file battle_effect_azul.c.
AZUL_WATER_DEPTH
#define AZUL_WATER_DEPTH 12
Referenced by btEffectRunAzul().
Definition at line 100 of file battle_effect_azul.c.
AZUL_WATER_DEEPEST
#define AZUL_WATER_DEEPEST 20
Referenced by btEffectRunAzul().
Definition at line 101 of file battle_effect_azul.c.
AZUL_DROPS
#define AZUL_DROPS 256
The drops the sphere bursts into, kept in the map grid's cell buffer.
Referenced by btEffectRunAzul().
Definition at line 103 of file battle_effect_azul.c.
AZUL_RING_TURN
#define AZUL_RING_TURN 13384
How far FireRingTexture's square is turned about the upright.
Referenced by btEffectRunAzul().
Definition at line 105 of file battle_effect_azul.c.
AZUL_TEXTURES
#define AZUL_TEXTURES 16384
Where Azul decodes, one after another, WispSheet, CornerRuneASheet, FireRingTexture and SwirlTexture in the map cell buffer.
Referenced by btEffectRunAzul().
Definition at line 108 of file battle_effect_azul.c.
Functions in detail
btEffectRunAzul
void btEffectRunAzul(BATTLE_EFFECT_PARM *args)
Azul: the serpent plunges down and the battlefield shatters behind it, bubbles rise round the foes, the serpent swims in from the right and closes them in a great sphere of water, and the sphere bursts over the field in foam and falling drops.
Abilities: Azul.
References AzulLateObjectX, AzulLateObjectZ, AzulLateUnitScale, AzulObjectX, AzulObjectZ, AzulPartPoints, AzulUnitScale, BattleEffectLargeSquareMesh, BattleEffectSquareCorners, BattleEffectSquareMesh, BgScrollWork, btActorGetSpriteStub(), btBackgroundLoadStub(), btCameraShake(), btColorBufferScaleStub(), btEffectArmPaletteHBlankDMA(), btEffectConfigureEffectDisplay(), btEffectCountDownBattlerTints(), btEffectCreateSprites(), btEffectEndCanvasLayer(), btEffectShowLivingTargets(), btEffectSpriteAcquire(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMeshBuildGrid(), btObjectDestroySpritesStub(), btObjectGetStub(), btObjectSpawnObjectsForListStub(), btParticleAdvanceWithGravity2D(), btParticleAdvanceWithGravity3D(), btPictureMirrorIntoQuadrants(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), fdSpriteRemoveAnimationStub(), MapGridMetatileBuffer, PerWork, Sint32, syCloseEvent(), syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syMatrixScaleUniform() and 10 more.
Referenced by btEffectRunSummon().
Definition at line 116 of file battle_effect_azul.c.