src/battle_effect/battle_effect_judgment.c
The Judgment summon. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | JUDGMENT_SHEET_BYTES 10000 | The bytes of the gathering's pictures at the start of the state's sheet (the pink burst, the burst's quarters and the tornado sprite sheet); the dimmed motes, which the gathering's ring of motes steps through as it fades, follow them. |
#define | JUDGMENT_MOTES 128 | The gathering's motes in PARTICLES, then its sparks. |
#define | JUDGMENT_SPARK_COUNT 128 | |
#define | JUDGMENT_SPARKS (&PARTICLES[JUDGMENT_MOTES]) | |
#define | JUDGMENT_RING_MOTES 128 | The motes in the ring that spreads from the burst, and in the flash's ring. |
#define | JUDGMENT_FLASH_RING_MOTES 256 | |
#define | JUDGMENT_GATHER_TICKS 160 | Ticks of the gathering. |
#define | JUDGMENT_SWEEP_TICKS 320 | |
#define | JUDGMENT_BEAM_TICK 144 | The gathering's crash: the canvas fills to JUDGMENT_CRASH_LEVEL the tick before, then the beams fall. |
#define | JUDGMENT_CRASH_LEVEL 42 | |
#define | JUDGMENT_FORMATION_OBJECTS 16 | Sprites in the formation, 4x4. |
#define | JUDGMENT_FORMATION_COLUMNS 4 | |
#define | JUDGMENT_FORMATION_SPRITE_SIZE 32 | Each sprite is 32 pixels square. |
#define | JUDGMENT_POSE_SHIELD_SWINGING JUDGMENT_FORMATION_OBJECTS | The formation's animations, one a sprite for each of Judgment's poses: its lion shield at its side, swinging round, then held before it. |
#define | JUDGMENT_POSE_SHIELD_FORWARD (2 * JUDGMENT_FORMATION_OBJECTS) | |
#define | JUDGMENT_DEBRIS_OBJECTS 16 | Debris sprites of the sweep. |
#define | JUDGMENT_BURST_X 60 | Where the motes gather on the canvas, at Judgment's shield: the burst's quarters and shards and the falling beams are drawn about it. |
#define | JUDGMENT_BURST_Y 80 | |
#define | JUDGMENT_SHARD_RADIUS 16 | How far from the burst's centre its shards flicker. |
#define | JUDGMENT_MOTE_DEPTH 60 | The gathering motes' depths either side of the burst; a mote is drawn a size larger for each JUDGMENT_MOTE_SIZE_DEPTH nearer, from size 2. |
#define | JUDGMENT_MOTE_SIZE_DEPTH 20 | |
#define | JUDGMENT_SPARK_DEPTH_NEAR 100 | The unused sparks stage's depths, and the depth it starts its nearest from, above any a spark can have. |
#define | JUDGMENT_SPARK_DEPTH_FAR 900 | |
#define | JUDGMENT_SPARK_DEPTH_NONE 65535 | |
#define | JUDGMENT_SPARK_AMPLITUDE 255 | |
#define | JUDGMENT_BEAM_WIDTH 24 | The pink burst's beam picture, at the sprite sheet's start. |
#define | JUDGMENT_BEAM_HEIGHT 64 | |
#define | JUDGMENT_SHEET_BURST PICTURE_BYTES(JUDGMENT_BEAM) | The burst's seven quarter pictures (JudgmentBurstSheet), after the beam. |
#define | JUDGMENT_SHEET_TORNADO | The tornado sprite sheet, after the burst's seven quarter pictures; its six glint pictures are the burst's shards (JudgmentShardPictures counts from the sprite sheet's start). |
#define | JUDGMENT_SHEET_EXPLOSION 16384 | The explosion's four pictures, loaded over the flares on the sweep's tick 64. |
#define | JUDGMENT_FLARE_WIDTH 24 | The two flare pictures, from the crescent sprite sheet the sweep loads. |
#define | JUDGMENT_FLARE_HEIGHT 24 | |
#define | JUDGMENT_SHEET_FLARE_A 16384 | |
#define | JUDGMENT_SHEET_FLARE_B | |
#define | JUDGMENT_SHEET_FLASH_SMALL_WIDTH 16 | JudgmentFlashSheet's three flash pictures, a byte a pixel, one after another in the sprite sheet: the small flash, the large flash and the glow. |
#define | JUDGMENT_SHEET_FLASH_SMALL_HEIGHT 17 | |
#define | JUDGMENT_SHEET_FLASH_LARGE_WIDTH 24 | |
#define | JUDGMENT_SHEET_FLASH_LARGE_HEIGHT 41 | |
#define | JUDGMENT_SHEET_FLASH_GLOW_WIDTH 22 | |
#define | JUDGMENT_SHEET_FLASH_GLOW_HEIGHT 44 | |
#define | JUDGMENT_SHEET_FLASH_SMALL 24576 | |
#define | JUDGMENT_SHEET_FLASH_LARGE | |
#define | JUDGMENT_SHEET_FLASH_GLOW | |
#define | JUDGMENT_EXPLOSION_WIDTH 32 | |
#define | JUDGMENT_EXPLOSION_HEIGHT 54 | |
#define | JUDGMENT_EXPLOSION_PICTURE_BYTES PICTURE_BYTES(JUDGMENT_EXPLOSION) | |
#define | JUDGMENT_SWEEP_EXPLOSION 64 | The sweep's scenes, by the tick each opens on: the flare lands on the aerial view and it explodes, the wave crosses the beach, the debris rises in the forest, and the battle returns. |
#define | JUDGMENT_SWEEP_BEACH 150 | |
#define | JUDGMENT_SWEEP_FOREST 214 | |
#define | JUDGMENT_SWEEP_RETURN 280 | |
#define | JUDGMENT_WAVE_SIZE 120 | the wave picture is 120x120 |
#define | JUDGMENT_RING_LEVEL 20 | The level the wave's rings are drawn at. |
#define | JUDGMENT_SWEEP_CANVAS_X ((DISPLAY_WIDTH - JUDGMENT_WAVE_SIZE) / 2) | Where the canvas sits on the screen in the sweep: the wave picture centred. |
#define | JUDGMENT_FLARE_X (JUDGMENT_WAVE_SIZE / 2) | The column of the wave picture the flare falls down and the aerial view's rings spread from, at JUDGMENT_AERIAL_RINGS_Y; the beach's rings spread from further right and higher. |
#define | JUDGMENT_AERIAL_RINGS_Y 44 | |
#define | JUDGMENT_BEACH_RINGS_X 112 | |
#define | JUDGMENT_BEACH_RINGS_Y 32 | |
#define | JUDGMENT_RETURN_BLAST_X (DISPLAY_WIDTH + 32) | Where the blast and its debris sweep back in from as the battle returns, beyond the screen's right edge. |
#define | JUDGMENT_PLOT_RING_POINTS (left, right, top, bottom) | Sets a ring's four mirrored points (left or right, top or bottom) of the wave picture to JUDGMENT_RING_LEVEL. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunJudgment (BATTLE_EFFECT_PARM *args) | The battle wipes away to a violet sky where Judgment, a winged knight with a lion shield, flies forward while motes gather into its shield; they burst in a flash, a flare falls on the land below and explodes in rings of light, and the blast sweeps over a beach and through a forest, throwing up rocks, before the battle returns. |
Description
The Judgment summon. Part of battle_effect.c.
Macros in detail
JUDGMENT_SHEET_BYTES
#define JUDGMENT_SHEET_BYTES 10000
The bytes of the gathering's pictures at the start of the state's sheet (the pink burst, the burst's quarters and the tornado sprite sheet); the dimmed motes, which the gathering's ring of motes steps through as it fades, follow them. The sweep's wave picture later overwrites the gathering's part.
Referenced by btEffectRunJudgment().
Definition at line 7 of file battle_effect_judgment.c.
JUDGMENT_MOTES
#define JUDGMENT_MOTES 128
The gathering's motes in PARTICLES, then its sparks.
Referenced by btEffectRunJudgment().
Definition at line 10 of file battle_effect_judgment.c.
JUDGMENT_SPARK_COUNT
#define JUDGMENT_SPARK_COUNT 128
Referenced by btEffectRunJudgment().
Definition at line 11 of file battle_effect_judgment.c.
JUDGMENT_SPARKS
#define JUDGMENT_SPARKS (&PARTICLES[JUDGMENT_MOTES])
Referenced by btEffectRunJudgment().
Definition at line 12 of file battle_effect_judgment.c.
JUDGMENT_RING_MOTES
#define JUDGMENT_RING_MOTES 128
The motes in the ring that spreads from the burst, and in the flash's ring.
Referenced by btEffectRunJudgment().
Definition at line 14 of file battle_effect_judgment.c.
JUDGMENT_FLASH_RING_MOTES
#define JUDGMENT_FLASH_RING_MOTES 256
Referenced by btEffectRunJudgment().
Definition at line 15 of file battle_effect_judgment.c.
JUDGMENT_GATHER_TICKS
#define JUDGMENT_GATHER_TICKS 160
Ticks of the gathering.
Referenced by btEffectRunJudgment().
Definition at line 18 of file battle_effect_judgment.c.
JUDGMENT_SWEEP_TICKS
#define JUDGMENT_SWEEP_TICKS 320
Referenced by btEffectRunJudgment().
Definition at line 19 of file battle_effect_judgment.c.
JUDGMENT_BEAM_TICK
#define JUDGMENT_BEAM_TICK 144
The gathering's crash: the canvas fills to JUDGMENT_CRASH_LEVEL the tick
before, then the beams fall.
Referenced by btEffectRunJudgment().
Definition at line 22 of file battle_effect_judgment.c.
JUDGMENT_CRASH_LEVEL
#define JUDGMENT_CRASH_LEVEL 42
Referenced by btEffectRunJudgment().
Definition at line 23 of file battle_effect_judgment.c.
JUDGMENT_FORMATION_OBJECTS
#define JUDGMENT_FORMATION_OBJECTS 16
Sprites in the formation, 4x4.
Referenced by btEffectRunJudgment().
Definition at line 25 of file battle_effect_judgment.c.
JUDGMENT_FORMATION_COLUMNS
#define JUDGMENT_FORMATION_COLUMNS 4
Referenced by btEffectRunJudgment().
Definition at line 26 of file battle_effect_judgment.c.
JUDGMENT_FORMATION_SPRITE_SIZE
#define JUDGMENT_FORMATION_SPRITE_SIZE 32
Each sprite is 32 pixels square.
Referenced by btEffectRunJudgment().
Definition at line 28 of file battle_effect_judgment.c.
JUDGMENT_POSE_SHIELD_SWINGING
#define JUDGMENT_POSE_SHIELD_SWINGING JUDGMENT_FORMATION_OBJECTS
The formation's animations, one a sprite for each of Judgment's poses: its lion shield at its side, swinging round, then held before it.
Referenced by btEffectRunJudgment().
Definition at line 31 of file battle_effect_judgment.c.
JUDGMENT_POSE_SHIELD_FORWARD
#define JUDGMENT_POSE_SHIELD_FORWARD (2 * JUDGMENT_FORMATION_OBJECTS)
Referenced by btEffectRunJudgment().
Definition at line 32 of file battle_effect_judgment.c.
JUDGMENT_DEBRIS_OBJECTS
#define JUDGMENT_DEBRIS_OBJECTS 16
Debris sprites of the sweep.
Referenced by btEffectRunJudgment().
Definition at line 34 of file battle_effect_judgment.c.
JUDGMENT_BURST_X
#define JUDGMENT_BURST_X 60
Where the motes gather on the canvas, at Judgment's shield: the burst's quarters and shards and the falling beams are drawn about it.
Referenced by btEffectRunJudgment().
Definition at line 38 of file battle_effect_judgment.c.
JUDGMENT_BURST_Y
#define JUDGMENT_BURST_Y 80
Referenced by btEffectRunJudgment().
Definition at line 39 of file battle_effect_judgment.c.
JUDGMENT_SHARD_RADIUS
#define JUDGMENT_SHARD_RADIUS 16
How far from the burst's centre its shards flicker.
Referenced by btEffectRunJudgment().
Definition at line 41 of file battle_effect_judgment.c.
JUDGMENT_MOTE_DEPTH
#define JUDGMENT_MOTE_DEPTH 60
The gathering motes' depths either side of the burst; a mote is drawn a size
larger for each JUDGMENT_MOTE_SIZE_DEPTH nearer, from size 2.
Referenced by btEffectRunJudgment().
Definition at line 44 of file battle_effect_judgment.c.
JUDGMENT_MOTE_SIZE_DEPTH
#define JUDGMENT_MOTE_SIZE_DEPTH 20
Referenced by btEffectRunJudgment().
Definition at line 45 of file battle_effect_judgment.c.
JUDGMENT_SPARK_DEPTH_NEAR
#define JUDGMENT_SPARK_DEPTH_NEAR 100
The unused sparks stage's depths, and the depth it starts its nearest from,
above any a spark can have. The sparks start on a ring a quarter of
JUDGMENT_SPARK_AMPLITUDE out, and at tick 64 burst outward by an eighth of
it.
Referenced by btEffectRunJudgment().
Definition at line 50 of file battle_effect_judgment.c.
JUDGMENT_SPARK_DEPTH_FAR
#define JUDGMENT_SPARK_DEPTH_FAR 900
Referenced by btEffectRunJudgment().
Definition at line 51 of file battle_effect_judgment.c.
JUDGMENT_SPARK_DEPTH_NONE
#define JUDGMENT_SPARK_DEPTH_NONE 65535
Referenced by btEffectRunJudgment().
Definition at line 52 of file battle_effect_judgment.c.
JUDGMENT_SPARK_AMPLITUDE
#define JUDGMENT_SPARK_AMPLITUDE 255
Referenced by btEffectRunJudgment().
Definition at line 53 of file battle_effect_judgment.c.
JUDGMENT_BEAM_WIDTH
#define JUDGMENT_BEAM_WIDTH 24
The pink burst's beam picture, at the sprite sheet's start.
Referenced by btEffectRunJudgment().
Definition at line 55 of file battle_effect_judgment.c.
JUDGMENT_BEAM_HEIGHT
#define JUDGMENT_BEAM_HEIGHT 64
Referenced by btEffectRunJudgment().
Definition at line 56 of file battle_effect_judgment.c.
JUDGMENT_SHEET_BURST
#define JUDGMENT_SHEET_BURST PICTURE_BYTES(JUDGMENT_BEAM)
The burst's seven quarter pictures (JudgmentBurstSheet), after the beam.
Referenced by btEffectRunJudgment().
Definition at line 58 of file battle_effect_judgment.c.
JUDGMENT_SHEET_TORNADO
#define JUDGMENT_SHEET_TORNADO
The tornado sprite sheet, after the burst's seven quarter pictures; its six
glint pictures are the burst's shards (JudgmentShardPictures counts from the
sprite sheet's start).
Referenced by btEffectRunJudgment().
Definition at line 62 of file battle_effect_judgment.c.
JUDGMENT_SHEET_EXPLOSION
#define JUDGMENT_SHEET_EXPLOSION 16384
The explosion's four pictures, loaded over the flares on the sweep's tick 64.
Referenced by btEffectRunJudgment().
Definition at line 66 of file battle_effect_judgment.c.
JUDGMENT_FLARE_WIDTH
#define JUDGMENT_FLARE_WIDTH 24
The two flare pictures, from the crescent sprite sheet the sweep loads.
Referenced by btEffectRunJudgment().
Definition at line 68 of file battle_effect_judgment.c.
JUDGMENT_FLARE_HEIGHT
#define JUDGMENT_FLARE_HEIGHT 24
Referenced by btEffectRunJudgment().
Definition at line 69 of file battle_effect_judgment.c.
JUDGMENT_SHEET_FLARE_A
#define JUDGMENT_SHEET_FLARE_A 16384
Referenced by btEffectRunJudgment().
Definition at line 70 of file battle_effect_judgment.c.
JUDGMENT_SHEET_FLARE_B
#define JUDGMENT_SHEET_FLARE_B
Referenced by btEffectRunJudgment().
Definition at line 71 of file battle_effect_judgment.c.
JUDGMENT_SHEET_FLASH_SMALL_WIDTH
#define JUDGMENT_SHEET_FLASH_SMALL_WIDTH 16
JudgmentFlashSheet's three flash pictures, a byte a pixel, one after another in the sprite sheet: the small flash, the large flash and the glow.
Definition at line 75 of file battle_effect_judgment.c.
JUDGMENT_SHEET_FLASH_SMALL_HEIGHT
#define JUDGMENT_SHEET_FLASH_SMALL_HEIGHT 17
Definition at line 76 of file battle_effect_judgment.c.
JUDGMENT_SHEET_FLASH_LARGE_WIDTH
#define JUDGMENT_SHEET_FLASH_LARGE_WIDTH 24
Definition at line 77 of file battle_effect_judgment.c.
JUDGMENT_SHEET_FLASH_LARGE_HEIGHT
#define JUDGMENT_SHEET_FLASH_LARGE_HEIGHT 41
Definition at line 78 of file battle_effect_judgment.c.
JUDGMENT_SHEET_FLASH_GLOW_WIDTH
#define JUDGMENT_SHEET_FLASH_GLOW_WIDTH 22
Definition at line 79 of file battle_effect_judgment.c.
JUDGMENT_SHEET_FLASH_GLOW_HEIGHT
#define JUDGMENT_SHEET_FLASH_GLOW_HEIGHT 44
Definition at line 80 of file battle_effect_judgment.c.
JUDGMENT_SHEET_FLASH_SMALL
#define JUDGMENT_SHEET_FLASH_SMALL 24576
Referenced by btEffectRunJudgment().
Definition at line 81 of file battle_effect_judgment.c.
JUDGMENT_SHEET_FLASH_LARGE
#define JUDGMENT_SHEET_FLASH_LARGE
Referenced by btEffectRunJudgment().
Definition at line 82 of file battle_effect_judgment.c.
JUDGMENT_SHEET_FLASH_GLOW
#define JUDGMENT_SHEET_FLASH_GLOW
Referenced by btEffectRunJudgment().
Definition at line 84 of file battle_effect_judgment.c.
JUDGMENT_EXPLOSION_WIDTH
#define JUDGMENT_EXPLOSION_WIDTH 32
Referenced by btEffectRunJudgment().
Definition at line 86 of file battle_effect_judgment.c.
JUDGMENT_EXPLOSION_HEIGHT
#define JUDGMENT_EXPLOSION_HEIGHT 54
Referenced by btEffectRunJudgment().
Definition at line 87 of file battle_effect_judgment.c.
JUDGMENT_EXPLOSION_PICTURE_BYTES
#define JUDGMENT_EXPLOSION_PICTURE_BYTES PICTURE_BYTES(JUDGMENT_EXPLOSION)
Referenced by btEffectRunJudgment().
Definition at line 88 of file battle_effect_judgment.c.
JUDGMENT_SWEEP_EXPLOSION
#define JUDGMENT_SWEEP_EXPLOSION 64
The sweep's scenes, by the tick each opens on: the flare lands on the aerial view and it explodes, the wave crosses the beach, the debris rises in the forest, and the battle returns. A or B skips to the next scene from five ticks into one.
Referenced by btEffectRunJudgment().
Definition at line 94 of file battle_effect_judgment.c.
JUDGMENT_SWEEP_BEACH
#define JUDGMENT_SWEEP_BEACH 150
Referenced by btEffectRunJudgment().
Definition at line 95 of file battle_effect_judgment.c.
JUDGMENT_SWEEP_FOREST
#define JUDGMENT_SWEEP_FOREST 214
Referenced by btEffectRunJudgment().
Definition at line 96 of file battle_effect_judgment.c.
JUDGMENT_SWEEP_RETURN
#define JUDGMENT_SWEEP_RETURN 280
Referenced by btEffectRunJudgment().
Definition at line 97 of file battle_effect_judgment.c.
JUDGMENT_WAVE_SIZE
#define JUDGMENT_WAVE_SIZE 120
the wave picture is 120x120
Referenced by btEffectRunJudgment().
Definition at line 98 of file battle_effect_judgment.c.
JUDGMENT_RING_LEVEL
#define JUDGMENT_RING_LEVEL 20
The level the wave's rings are drawn at.
Definition at line 100 of file battle_effect_judgment.c.
JUDGMENT_SWEEP_CANVAS_X
#define JUDGMENT_SWEEP_CANVAS_X ((DISPLAY_WIDTH - JUDGMENT_WAVE_SIZE) / 2)
Where the canvas sits on the screen in the sweep: the wave picture centred.
Referenced by btEffectRunJudgment().
Definition at line 102 of file battle_effect_judgment.c.
JUDGMENT_FLARE_X
#define JUDGMENT_FLARE_X (JUDGMENT_WAVE_SIZE / 2)
The column of the wave picture the flare falls down and the aerial view's
rings spread from, at JUDGMENT_AERIAL_RINGS_Y; the beach's rings spread from
further right and higher.
Referenced by btEffectRunJudgment().
Definition at line 106 of file battle_effect_judgment.c.
JUDGMENT_AERIAL_RINGS_Y
#define JUDGMENT_AERIAL_RINGS_Y 44
Referenced by btEffectRunJudgment().
Definition at line 107 of file battle_effect_judgment.c.
JUDGMENT_BEACH_RINGS_X
#define JUDGMENT_BEACH_RINGS_X 112
Referenced by btEffectRunJudgment().
Definition at line 108 of file battle_effect_judgment.c.
JUDGMENT_BEACH_RINGS_Y
#define JUDGMENT_BEACH_RINGS_Y 32
Referenced by btEffectRunJudgment().
Definition at line 109 of file battle_effect_judgment.c.
JUDGMENT_RETURN_BLAST_X
#define JUDGMENT_RETURN_BLAST_X (DISPLAY_WIDTH + 32)
Where the blast and its debris sweep back in from as the battle returns, beyond the screen's right edge.
Referenced by btEffectRunJudgment().
Definition at line 112 of file battle_effect_judgment.c.
JUDGMENT_PLOT_RING_POINTS
#define JUDGMENT_PLOT_RING_POINTS(left, right, top, bottom)
Sets a ring's four mirrored points (left or right, top or bottom) of the wave
picture to JUDGMENT_RING_LEVEL.
Referenced by btEffectRunJudgment().
Definition at line 116 of file battle_effect_judgment.c.
Functions in detail
btEffectRunJudgment
void btEffectRunJudgment(BATTLE_EFFECT_PARM *args)
The battle wipes away to a violet sky where Judgment, a winged knight with a lion shield, flies forward while motes gather into its shield; they burst in a flash, a flare falls on the land below and explodes in rings of light, and the blast sweeps over a beach and through a forest, throwing up rocks, before the battle returns.
Abilities: Judgment.
References BattleEffectMotePictures, BgScrollWork, btBackgroundLoadStub(), btBackgroundSetModeStub(), btEffectConfigureEffectDisplay(), btEffectCreateSprites(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectTintBattler(), btEffectTransferCanvas(), btEffectWipeCanvas(), btParticleAdvanceWithGravity3D(), btProjectionPoint(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteCreateStub(), fdSpriteDestroyStub(), fdSpriteStartAnimationStub(), HeapSlots, JudgmentBurstHeights, JudgmentBurstPictures, JudgmentShardHeights, JudgmentShardPictures, JudgmentShardWidths, PerRepeat, ProjectionWork, Sint32, state, syCos(), syHeapSlotRelease(), syInitMatrix(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotY(), syRotZ(), sySetEvent(), sySin(), sySoundPlayStub(), sySynch(), syWordsCopy() and syWordsFill().
Referenced by btEffectRunSummon().
Definition at line 131 of file battle_effect_judgment.c.