Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_judgment.c

The Judgment summon. More…

Included by battle_effect.c.

Macros

NameDescription
#defineJUDGMENT_GATHER_TICKS 160The gathering's length and the sweep's, in ticks.
#defineJUDGMENT_SWEEP_TICKS 336
#defineJUDGMENT_BEAM_TICK 144The gathering's crash: the canvas fills to JUDGMENT_CRASH_LEVEL the tick before, then the beams fall.
#defineJUDGMENT_CRASH_LEVEL 42
#defineJUDGMENT_SHIELD_SWING_TICK 72The gathering's turns: Judgment swings its shield round as the battle background darkens, then holds it forward; the motes start to circle in, the knight brightens, and the glow swells.
#defineJUDGMENT_SHIELD_FORWARD_TICK 76
#defineJUDGMENT_MOTES_TICK 80
#defineJUDGMENT_BRIGHTEN_TICK 108
#defineJUDGMENT_GLOW_TICK 116
#defineJUDGMENT_FORMATION_OBJECTS 16Sprites in the formation, 4x4.
#defineJUDGMENT_FORMATION_COLUMNS 4
#defineJUDGMENT_FORMATION_SPRITE_SIZE 32
#defineJUDGMENT_SHIELD_FORWARD_OBJECTS 13The formation's last pose, its lion shield held before it (WingedKnightCTiles), draws JUDGMENT_SHIELD_FORWARD_OBJECTS of the sprites and leaves the three JUDGMENT_SHIELD_FORWARD_EMPTY says empty.
#defineJUDGMENT_SHIELD_FORWARD_EMPTY (i) ((i) == 8 || (i) == 12 || (i) == 15)
#defineJUDGMENT_DEBRIS_OBJECTS 16Debris sprites of the sweep.
#defineJUDGMENT_BURST_X 60Where the motes gather on the canvas, at Judgment's shield: the glow, its shards and the falling beams are drawn about it.
#defineJUDGMENT_BURST_Y 80
#defineJUDGMENT_SHARD_RADIUS 16How far from the burst's centre its shards flicker as the glow swells, out to twice as far.
#defineJUDGMENT_MOTES_X 56The point the gathering's motes circle in to, just below the burst.
#defineJUDGMENT_MOTES_Y 96
#defineJUDGMENT_MOTE_DEPTH 60The gathering motes' depths either side of their centre; a mote is drawn a size larger for each JUDGMENT_MOTE_SIZE_DEPTH nearer, from size 2.
#defineJUDGMENT_MOTE_SIZE_DEPTH 20
#defineJUDGMENT_BEAM_WIDTH 24The pink burst's beam picture, at the sprite sheet's start.
#defineJUDGMENT_BEAM_HEIGHT 64
#defineJUDGMENT_SHEET_TORNADO PICTURE_BYTES(JUDGMENT_BEAM)The tornado sprite sheet, after the beam; its six glint pictures are the glow's shards (JudgmentShardPictures counts from the sprite sheet's start).
#defineJUDGMENT_SHEET_GLOW (JUDGMENT_SHEET_TORNADO + GLINT_SET_BYTES)The glow, a shaded disc up to JUDGMENT_GLOW_SIZE pixels tall, drawn over the tornado sprite sheet's strips after its six glints.
#defineJUDGMENT_GLOW_SIZE 80
#defineJUDGMENT_SHEET_EXPLOSION 16384The explosion's four pictures, loaded over the flares on the sweep's tick 64.
#defineJUDGMENT_FLARE_WIDTH 24The two flare pictures, from the crescent sprite sheet the sweep loads.
#defineJUDGMENT_FLARE_HEIGHT 24
#defineJUDGMENT_SHEET_FLARE_A 16384
#defineJUDGMENT_SHEET_FLARE_B
#defineJUDGMENT_SHEET_FLASH_SMALL_WIDTH 16JudgmentFlashSheet's three flash pictures, a byte a pixel, one after another in the sprite sheet: the small flash, the large flash and the glow.
#defineJUDGMENT_SHEET_FLASH_SMALL_HEIGHT 17
#defineJUDGMENT_SHEET_FLASH_LARGE_WIDTH 24
#defineJUDGMENT_SHEET_FLASH_LARGE_HEIGHT 41
#defineJUDGMENT_SHEET_FLASH_GLOW_WIDTH 22
#defineJUDGMENT_SHEET_FLASH_GLOW_HEIGHT 44
#defineJUDGMENT_SHEET_FLASH_SMALL 24576
#defineJUDGMENT_SHEET_FLASH_LARGE
#defineJUDGMENT_SHEET_FLASH_GLOW
#defineJUDGMENT_EXPLOSION_WIDTH 32
#defineJUDGMENT_EXPLOSION_HEIGHT 54
#defineJUDGMENT_EXPLOSION_PICTURE_BYTES PICTURE_BYTES(JUDGMENT_EXPLOSION)
#defineJUDGMENT_FIRE_RING 16384FireRingTexture, in the map cell buffer: the rings of light that spread over the ground at the crash and at the flare's explosion, tilted JUDGMENT_CRASH_RING_TILT and JUDGMENT_FLASH_RING_TILT.
#defineJUDGMENT_FIRE_RING_FADE_TICK 152The ticks from which the crash's ring and the explosion's ring fade, eight levels a tick.
#defineJUDGMENT_FLASH_RING_FADE_TICK 80
#defineJUDGMENT_CRASH_RING_TILT 3000
#defineJUDGMENT_FLASH_RING_TILT 5000
#defineJUDGMENT_SWEEP_EXPLOSION 64The 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.
#defineJUDGMENT_SWEEP_BEACH 150
#defineJUDGMENT_SWEEP_FOREST 214
#defineJUDGMENT_SWEEP_RETURN 280
#defineJUDGMENT_SKIP_DELAY 5
#defineJUDGMENT_WAVE_SIZE 120
#defineJUDGMENT_RING_LEVEL 20The level the wave's rings are drawn at.
#defineJUDGMENT_SWEEP_CANVAS_X ((DISPLAY_WIDTH - JUDGMENT_WAVE_SIZE) / 2)Where the canvas sits on the screen in the sweep: the wave picture centred.
#defineJUDGMENT_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.
#defineJUDGMENT_AERIAL_RINGS_Y 44
#defineJUDGMENT_BEACH_RINGS_X 112
#defineJUDGMENT_BEACH_RINGS_Y 32
#defineJUDGMENT_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.
#defineJUDGMENT_FLARE_LAND_Y 60The explosion, on the sweep's clock.
#defineJUDGMENT_FLASH_LARGE_TICK 66
#defineJUDGMENT_FLASH_GLOWS_TICK 68
#defineJUDGMENT_FLASH_WHITE_TICK 69
#defineJUDGMENT_FLASH_RESTORE_TICK 70
#defineJUDGMENT_FLASH_RING_TICK 72
#defineJUDGMENT_FLASH_RING_TICKS 16
#defineJUDGMENT_FLASH_GLOWS_END 76
#defineJUDGMENT_SECOND_FLASH_TICK 78
#defineJUDGMENT_SECOND_LARGE_TICK 80
#defineJUDGMENT_SECOND_GLOWS_TICK 82
#defineJUDGMENT_WAVE_TICK 86
#defineJUDGMENT_FLASH_LEFT (name) (JUDGMENT_FLARE_X - name##_WIDTH / 2)The flashes' places, each centred on the flare's landing point, the small one a pixel high.
#defineJUDGMENT_FLASH_TOP (name) (JUDGMENT_FLARE_LAND_Y - name##_HEIGHT / 2)
#defineJUDGMENT_FLASH_SMALL_X JUDGMENT_FLASH_LEFT(JUDGMENT_SHEET_FLASH_SMALL)
#defineJUDGMENT_FLASH_SMALL_Y
#defineJUDGMENT_FLASH_LARGE_X JUDGMENT_FLASH_LEFT(JUDGMENT_SHEET_FLASH_LARGE)
#defineJUDGMENT_FLASH_LARGE_Y JUDGMENT_FLASH_TOP(JUDGMENT_SHEET_FLASH_LARGE)
#defineJUDGMENT_FLASH_GLOW_X JUDGMENT_FLASH_LEFT(JUDGMENT_SHEET_FLASH_GLOW)
#defineJUDGMENT_FLASH_GLOW_Y JUDGMENT_FLASH_TOP(JUDGMENT_SHEET_FLASH_GLOW)
#defineJUDGMENT_DRAIN_SOUND_TICK 88The sweep's sounds after the explosion's: SE_WATER_DRAIN over the aerial view, SE_WAVE on the beach and SE_SWITCH_MECHANISM in the forest.
#defineJUDGMENT_WAVE_SOUND_TICK 155
#defineJUDGMENT_FOREST_SOUND_TICK 217
#defineJUDGMENT_BEACH_FLASH_TICK 182The canvas flashes white in the beach and in the forest.
#defineJUDGMENT_FOREST_FLASH_TICK 238
#defineJUDGMENT_BLAST_TICK 246
#defineJUDGMENT_STRIKE_TICK 300
#defineJUDGMENT_DEBRIS_END_TICK 302
#defineJUDGMENT_END_FLASH_TICK 318
#defineJUDGMENT_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

NameDescription
voidbtEffectRunJudgment (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; a glow swells there and bursts, beams fall and a ring of light spreads below, then 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.

Variables

NameDescription
extern const SCALEJudgmentUnitScaleJudgment's sprite scale, one to one.

Description

The Judgment summon. Part of battle_effect.c.

Macros in detail

JUDGMENT_GATHER_TICKS

#define JUDGMENT_GATHER_TICKS 160

The gathering's length and the sweep's, in ticks.

Referenced by btEffectRunJudgment().

Definition at line 7 of file battle_effect_judgment.c.

JUDGMENT_SWEEP_TICKS

#define JUDGMENT_SWEEP_TICKS 336

Referenced by btEffectRunJudgment().

Definition at line 8 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 11 of file battle_effect_judgment.c.

JUDGMENT_CRASH_LEVEL

#define JUDGMENT_CRASH_LEVEL 42

Referenced by btEffectRunJudgment().

Definition at line 12 of file battle_effect_judgment.c.

JUDGMENT_SHIELD_SWING_TICK

#define JUDGMENT_SHIELD_SWING_TICK 72

The gathering's turns: Judgment swings its shield round as the battle background darkens, then holds it forward; the motes start to circle in, the knight brightens, and the glow swells.

Referenced by btEffectRunJudgment().

Definition at line 16 of file battle_effect_judgment.c.

JUDGMENT_SHIELD_FORWARD_TICK

#define JUDGMENT_SHIELD_FORWARD_TICK 76

Referenced by btEffectRunJudgment().

Definition at line 17 of file battle_effect_judgment.c.

JUDGMENT_MOTES_TICK

#define JUDGMENT_MOTES_TICK 80

Referenced by btEffectRunJudgment().

Definition at line 18 of file battle_effect_judgment.c.

JUDGMENT_BRIGHTEN_TICK

#define JUDGMENT_BRIGHTEN_TICK 108

Referenced by btEffectRunJudgment().

Definition at line 19 of file battle_effect_judgment.c.

JUDGMENT_GLOW_TICK

#define JUDGMENT_GLOW_TICK 116

Referenced by btEffectRunJudgment().

Definition at line 20 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 22 of file battle_effect_judgment.c.

JUDGMENT_FORMATION_COLUMNS

#define JUDGMENT_FORMATION_COLUMNS 4

Referenced by btEffectRunJudgment().

Definition at line 23 of file battle_effect_judgment.c.

JUDGMENT_FORMATION_SPRITE_SIZE

#define JUDGMENT_FORMATION_SPRITE_SIZE 32

Referenced by btEffectRunJudgment().

Definition at line 24 of file battle_effect_judgment.c.

JUDGMENT_SHIELD_FORWARD_OBJECTS

#define JUDGMENT_SHIELD_FORWARD_OBJECTS 13

The formation's last pose, its lion shield held before it (WingedKnightCTiles), draws JUDGMENT_SHIELD_FORWARD_OBJECTS of the sprites and leaves the three JUDGMENT_SHIELD_FORWARD_EMPTY says empty.

Referenced by btEffectRunJudgment().

Definition at line 28 of file battle_effect_judgment.c.

JUDGMENT_SHIELD_FORWARD_EMPTY

#define JUDGMENT_SHIELD_FORWARD_EMPTY(i) ((i) == 8 || (i) == 12 || (i) == 15)

Referenced by btEffectRunJudgment().

Definition at line 29 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 31 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 glow, its shards and the falling beams are drawn about it.

Referenced by btEffectRunJudgment().

Definition at line 35 of file battle_effect_judgment.c.

JUDGMENT_BURST_Y

#define JUDGMENT_BURST_Y 80

Referenced by btEffectRunJudgment().

Definition at line 36 of file battle_effect_judgment.c.

JUDGMENT_SHARD_RADIUS

#define JUDGMENT_SHARD_RADIUS 16

How far from the burst's centre its shards flicker as the glow swells, out to twice as far.

Referenced by btEffectRunJudgment().

Definition at line 39 of file battle_effect_judgment.c.

JUDGMENT_MOTES_X

#define JUDGMENT_MOTES_X 56

The point the gathering's motes circle in to, just below the burst.

Referenced by btEffectRunJudgment().

Definition at line 41 of file battle_effect_judgment.c.

JUDGMENT_MOTES_Y

#define JUDGMENT_MOTES_Y 96

Referenced by btEffectRunJudgment().

Definition at line 42 of file battle_effect_judgment.c.

JUDGMENT_MOTE_DEPTH

#define JUDGMENT_MOTE_DEPTH 60

The gathering motes' depths either side of their centre; a mote is drawn a size larger for each JUDGMENT_MOTE_SIZE_DEPTH nearer, from size 2.

Referenced by btEffectRunJudgment().

Definition at line 45 of file battle_effect_judgment.c.

JUDGMENT_MOTE_SIZE_DEPTH

#define JUDGMENT_MOTE_SIZE_DEPTH 20

Referenced by btEffectRunJudgment().

Definition at line 46 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 48 of file battle_effect_judgment.c.

JUDGMENT_BEAM_HEIGHT

#define JUDGMENT_BEAM_HEIGHT 64

Referenced by btEffectRunJudgment().

Definition at line 49 of file battle_effect_judgment.c.

JUDGMENT_SHEET_TORNADO

#define JUDGMENT_SHEET_TORNADO PICTURE_BYTES(JUDGMENT_BEAM)

The tornado sprite sheet, after the beam; its six glint pictures are the glow's shards (JudgmentShardPictures counts from the sprite sheet's start).

Referenced by btEffectRunJudgment().

Definition at line 52 of file battle_effect_judgment.c.

JUDGMENT_SHEET_GLOW

#define JUDGMENT_SHEET_GLOW (JUDGMENT_SHEET_TORNADO + GLINT_SET_BYTES)

The glow, a shaded disc up to JUDGMENT_GLOW_SIZE pixels tall, drawn over the tornado sprite sheet's strips after its six glints.

Referenced by btEffectRunJudgment().

Definition at line 55 of file battle_effect_judgment.c.

JUDGMENT_GLOW_SIZE

#define JUDGMENT_GLOW_SIZE 80

Referenced by btEffectRunJudgment().

Definition at line 56 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 58 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 60 of file battle_effect_judgment.c.

JUDGMENT_FLARE_HEIGHT

#define JUDGMENT_FLARE_HEIGHT 24

Referenced by btEffectRunJudgment().

Definition at line 61 of file battle_effect_judgment.c.

JUDGMENT_SHEET_FLARE_A

#define JUDGMENT_SHEET_FLARE_A 16384

Referenced by btEffectRunJudgment().

Definition at line 62 of file battle_effect_judgment.c.

JUDGMENT_SHEET_FLARE_B

#define JUDGMENT_SHEET_FLARE_B

Referenced by btEffectRunJudgment().

Definition at line 63 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 67 of file battle_effect_judgment.c.

JUDGMENT_SHEET_FLASH_SMALL_HEIGHT

#define JUDGMENT_SHEET_FLASH_SMALL_HEIGHT 17

Definition at line 68 of file battle_effect_judgment.c.

JUDGMENT_SHEET_FLASH_LARGE_WIDTH

#define JUDGMENT_SHEET_FLASH_LARGE_WIDTH 24

Definition at line 69 of file battle_effect_judgment.c.

JUDGMENT_SHEET_FLASH_LARGE_HEIGHT

#define JUDGMENT_SHEET_FLASH_LARGE_HEIGHT 41

Definition at line 70 of file battle_effect_judgment.c.

JUDGMENT_SHEET_FLASH_GLOW_WIDTH

#define JUDGMENT_SHEET_FLASH_GLOW_WIDTH 22

Definition at line 71 of file battle_effect_judgment.c.

JUDGMENT_SHEET_FLASH_GLOW_HEIGHT

#define JUDGMENT_SHEET_FLASH_GLOW_HEIGHT 44

Definition at line 72 of file battle_effect_judgment.c.

JUDGMENT_SHEET_FLASH_SMALL

#define JUDGMENT_SHEET_FLASH_SMALL 24576

Referenced by btEffectRunJudgment().

Definition at line 73 of file battle_effect_judgment.c.

JUDGMENT_SHEET_FLASH_LARGE

#define JUDGMENT_SHEET_FLASH_LARGE

Referenced by btEffectRunJudgment().

Definition at line 74 of file battle_effect_judgment.c.

JUDGMENT_SHEET_FLASH_GLOW

#define JUDGMENT_SHEET_FLASH_GLOW

Referenced by btEffectRunJudgment().

Definition at line 76 of file battle_effect_judgment.c.

JUDGMENT_EXPLOSION_WIDTH

#define JUDGMENT_EXPLOSION_WIDTH 32

Referenced by btEffectRunJudgment().

Definition at line 78 of file battle_effect_judgment.c.

JUDGMENT_EXPLOSION_HEIGHT

#define JUDGMENT_EXPLOSION_HEIGHT 54

Referenced by btEffectRunJudgment().

Definition at line 79 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 80 of file battle_effect_judgment.c.

JUDGMENT_FIRE_RING

#define JUDGMENT_FIRE_RING 16384

FireRingTexture, in the map cell buffer: the rings of light that spread over the ground at the crash and at the flare's explosion, tilted JUDGMENT_CRASH_RING_TILT and JUDGMENT_FLASH_RING_TILT.

Referenced by btEffectRunJudgment().

Definition at line 85 of file battle_effect_judgment.c.

JUDGMENT_FIRE_RING_FADE_TICK

#define JUDGMENT_FIRE_RING_FADE_TICK 152

The ticks from which the crash's ring and the explosion's ring fade, eight levels a tick.

Referenced by btEffectRunJudgment().

Definition at line 88 of file battle_effect_judgment.c.

JUDGMENT_FLASH_RING_FADE_TICK

#define JUDGMENT_FLASH_RING_FADE_TICK 80

Referenced by btEffectRunJudgment().

Definition at line 89 of file battle_effect_judgment.c.

JUDGMENT_CRASH_RING_TILT

#define JUDGMENT_CRASH_RING_TILT 3000

Referenced by btEffectRunJudgment().

Definition at line 90 of file battle_effect_judgment.c.

JUDGMENT_FLASH_RING_TILT

#define JUDGMENT_FLASH_RING_TILT 5000

Referenced by btEffectRunJudgment().

Definition at line 91 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 97 of file battle_effect_judgment.c.

JUDGMENT_SWEEP_BEACH

#define JUDGMENT_SWEEP_BEACH 150

Referenced by btEffectRunJudgment().

Definition at line 98 of file battle_effect_judgment.c.

JUDGMENT_SWEEP_FOREST

#define JUDGMENT_SWEEP_FOREST 214

Referenced by btEffectRunJudgment().

Definition at line 99 of file battle_effect_judgment.c.

JUDGMENT_SWEEP_RETURN

#define JUDGMENT_SWEEP_RETURN 280

Referenced by btEffectRunJudgment().

Definition at line 100 of file battle_effect_judgment.c.

JUDGMENT_SKIP_DELAY

#define JUDGMENT_SKIP_DELAY 5

Referenced by btEffectRunJudgment().

Definition at line 101 of file battle_effect_judgment.c.

JUDGMENT_WAVE_SIZE

#define JUDGMENT_WAVE_SIZE 120

Referenced by btEffectRunJudgment().

Definition at line 102 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 104 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 106 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 110 of file battle_effect_judgment.c.

JUDGMENT_AERIAL_RINGS_Y

#define JUDGMENT_AERIAL_RINGS_Y 44

Referenced by btEffectRunJudgment().

Definition at line 111 of file battle_effect_judgment.c.

JUDGMENT_BEACH_RINGS_X

#define JUDGMENT_BEACH_RINGS_X 112

Referenced by btEffectRunJudgment().

Definition at line 112 of file battle_effect_judgment.c.

JUDGMENT_BEACH_RINGS_Y

#define JUDGMENT_BEACH_RINGS_Y 32

Referenced by btEffectRunJudgment().

Definition at line 113 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 116 of file battle_effect_judgment.c.

JUDGMENT_FLARE_LAND_Y

#define JUDGMENT_FLARE_LAND_Y 60

The explosion, on the sweep's clock. The flare lands at (JUDGMENT_FLARE_X, JUDGMENT_FLARE_LAND_Y) and flashes there twice: the small flash, then from JUDGMENT_FLASH_LARGE_TICK the large one, as a sound plays and the background's colours are inverted, then from JUDGMENT_FLASH_GLOWS_TICK four glows close in on it until JUDGMENT_FLASH_GLOWS_END. The canvas flashes white at JUDGMENT_FLASH_WHITE_TICK, and at JUDGMENT_FLASH_RESTORE_TICK the background's colours come back darker. From JUDGMENT_FLASH_RING_TICK a ring of light spreads for JUDGMENT_FLASH_RING_TICKS. The second flash starts at JUDGMENT_SECOND_FLASH_TICK, its large flash at JUDGMENT_SECOND_LARGE_TICK and its glows, which spread out, at JUDGMENT_SECOND_GLOWS_TICK; at JUDGMENT_WAVE_TICK the wave's rings and a fan of bursts spread from the aerial view's rings' centre.

Definition at line 130 of file battle_effect_judgment.c.

JUDGMENT_FLASH_LARGE_TICK

#define JUDGMENT_FLASH_LARGE_TICK 66

Referenced by btEffectRunJudgment().

Definition at line 131 of file battle_effect_judgment.c.

JUDGMENT_FLASH_GLOWS_TICK

#define JUDGMENT_FLASH_GLOWS_TICK 68

Referenced by btEffectRunJudgment().

Definition at line 132 of file battle_effect_judgment.c.

JUDGMENT_FLASH_WHITE_TICK

#define JUDGMENT_FLASH_WHITE_TICK 69

Referenced by btEffectRunJudgment().

Definition at line 133 of file battle_effect_judgment.c.

JUDGMENT_FLASH_RESTORE_TICK

#define JUDGMENT_FLASH_RESTORE_TICK 70

Referenced by btEffectRunJudgment().

Definition at line 134 of file battle_effect_judgment.c.

JUDGMENT_FLASH_RING_TICK

#define JUDGMENT_FLASH_RING_TICK 72

Referenced by btEffectRunJudgment().

Definition at line 135 of file battle_effect_judgment.c.

JUDGMENT_FLASH_RING_TICKS

#define JUDGMENT_FLASH_RING_TICKS 16

Referenced by btEffectRunJudgment().

Definition at line 136 of file battle_effect_judgment.c.

JUDGMENT_FLASH_GLOWS_END

#define JUDGMENT_FLASH_GLOWS_END 76

Referenced by btEffectRunJudgment().

Definition at line 137 of file battle_effect_judgment.c.

JUDGMENT_SECOND_FLASH_TICK

#define JUDGMENT_SECOND_FLASH_TICK 78

Referenced by btEffectRunJudgment().

Definition at line 138 of file battle_effect_judgment.c.

JUDGMENT_SECOND_LARGE_TICK

#define JUDGMENT_SECOND_LARGE_TICK 80

Referenced by btEffectRunJudgment().

Definition at line 139 of file battle_effect_judgment.c.

JUDGMENT_SECOND_GLOWS_TICK

#define JUDGMENT_SECOND_GLOWS_TICK 82

Referenced by btEffectRunJudgment().

Definition at line 140 of file battle_effect_judgment.c.

JUDGMENT_WAVE_TICK

#define JUDGMENT_WAVE_TICK 86

Referenced by btEffectRunJudgment().

Definition at line 141 of file battle_effect_judgment.c.

JUDGMENT_FLASH_LEFT

#define JUDGMENT_FLASH_LEFT(name) (JUDGMENT_FLARE_X - name##_WIDTH / 2)

The flashes' places, each centred on the flare's landing point, the small one a pixel high.

Definition at line 144 of file battle_effect_judgment.c.

JUDGMENT_FLASH_TOP

#define JUDGMENT_FLASH_TOP(name) (JUDGMENT_FLARE_LAND_Y - name##_HEIGHT / 2)

Definition at line 145 of file battle_effect_judgment.c.

JUDGMENT_FLASH_SMALL_X

#define JUDGMENT_FLASH_SMALL_X JUDGMENT_FLASH_LEFT(JUDGMENT_SHEET_FLASH_SMALL)

Referenced by btEffectRunJudgment().

Definition at line 146 of file battle_effect_judgment.c.

JUDGMENT_FLASH_SMALL_Y

#define JUDGMENT_FLASH_SMALL_Y

Referenced by btEffectRunJudgment().

Definition at line 147 of file battle_effect_judgment.c.

JUDGMENT_FLASH_LARGE_X

#define JUDGMENT_FLASH_LARGE_X JUDGMENT_FLASH_LEFT(JUDGMENT_SHEET_FLASH_LARGE)

Referenced by btEffectRunJudgment().

Definition at line 149 of file battle_effect_judgment.c.

JUDGMENT_FLASH_LARGE_Y

#define JUDGMENT_FLASH_LARGE_Y JUDGMENT_FLASH_TOP(JUDGMENT_SHEET_FLASH_LARGE)

Referenced by btEffectRunJudgment().

Definition at line 150 of file battle_effect_judgment.c.

JUDGMENT_FLASH_GLOW_X

#define JUDGMENT_FLASH_GLOW_X JUDGMENT_FLASH_LEFT(JUDGMENT_SHEET_FLASH_GLOW)

Referenced by btEffectRunJudgment().

Definition at line 151 of file battle_effect_judgment.c.

JUDGMENT_FLASH_GLOW_Y

#define JUDGMENT_FLASH_GLOW_Y JUDGMENT_FLASH_TOP(JUDGMENT_SHEET_FLASH_GLOW)

Referenced by btEffectRunJudgment().

Definition at line 152 of file battle_effect_judgment.c.

JUDGMENT_DRAIN_SOUND_TICK

#define JUDGMENT_DRAIN_SOUND_TICK 88

The sweep's sounds after the explosion's: SE_WATER_DRAIN over the aerial view, SE_WAVE on the beach and SE_SWITCH_MECHANISM in the forest.

Referenced by btEffectRunJudgment().

Definition at line 155 of file battle_effect_judgment.c.

JUDGMENT_WAVE_SOUND_TICK

#define JUDGMENT_WAVE_SOUND_TICK 155

Referenced by btEffectRunJudgment().

Definition at line 156 of file battle_effect_judgment.c.

JUDGMENT_FOREST_SOUND_TICK

#define JUDGMENT_FOREST_SOUND_TICK 217

Referenced by btEffectRunJudgment().

Definition at line 157 of file battle_effect_judgment.c.

JUDGMENT_BEACH_FLASH_TICK

#define JUDGMENT_BEACH_FLASH_TICK 182

The canvas flashes white in the beach and in the forest. From JUDGMENT_BLAST_TICK the blast sweeps through the forest and each piece of debris that has risen starts again from the ground. The foes are struck at JUDGMENT_STRIKE_TICK, and from JUDGMENT_DEBRIS_END_TICK debris that has risen is put away; at JUDGMENT_END_FLASH_TICK the canvas flashes white and then darkens away.

Referenced by btEffectRunJudgment().

Definition at line 164 of file battle_effect_judgment.c.

JUDGMENT_FOREST_FLASH_TICK

#define JUDGMENT_FOREST_FLASH_TICK 238

Referenced by btEffectRunJudgment().

Definition at line 165 of file battle_effect_judgment.c.

JUDGMENT_BLAST_TICK

#define JUDGMENT_BLAST_TICK 246

Referenced by btEffectRunJudgment().

Definition at line 166 of file battle_effect_judgment.c.

JUDGMENT_STRIKE_TICK

#define JUDGMENT_STRIKE_TICK 300

Referenced by btEffectRunJudgment().

Definition at line 167 of file battle_effect_judgment.c.

JUDGMENT_DEBRIS_END_TICK

#define JUDGMENT_DEBRIS_END_TICK 302

Referenced by btEffectRunJudgment().

Definition at line 168 of file battle_effect_judgment.c.

JUDGMENT_END_FLASH_TICK

#define JUDGMENT_END_FLASH_TICK 318

Referenced by btEffectRunJudgment().

Definition at line 169 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 173 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; a glow swells there and bursts, beams fall and a ring of light spreads below, then 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 BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, BgScrollWork, btBackgroundLoadStub(), btBackgroundSetModeStub(), btCanvasBlitMirroredQuarters(), btEffectConfigureEffectDisplay(), btEffectDrawShadedDiscQuarter(), btEffectPosProjectPoint(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectSpriteCreateWithTiles(), btEffectTransferCanvas(), btEffectWipeCanvas(), btGraphicsLoadGreyRamp(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteCreateStub(), fdSpriteDestroyStub(), fdSpriteStartAnimationStub(), JudgmentShardHeights, JudgmentShardPictures, JudgmentShardWidths, JudgmentShieldSprites, JudgmentUnitScale, PerWork, ProjectionWork, Sint32, syCos(), syDecompressTaggedLZ(), syDMAXCopy(), syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syMatrixScaleUniform(), syPaletteLoadBasicSpriteColors(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotY(), syRotZ(), sySetEvent(), sySin(), sySoundPlayStub(), sySpritePlacementValues(), sySynch() and 3 more.

Referenced by btEffectRunSummon().

Definition at line 189 of file battle_effect_judgment.c.

On this page

MacrosFunctionsVariablesDescriptionMacros in detailJUDGMENT_GATHER_TICKSJUDGMENT_SWEEP_TICKSJUDGMENT_BEAM_TICKJUDGMENT_CRASH_LEVELJUDGMENT_SHIELD_SWING_TICKJUDGMENT_SHIELD_FORWARD_TICKJUDGMENT_MOTES_TICKJUDGMENT_BRIGHTEN_TICKJUDGMENT_GLOW_TICKJUDGMENT_FORMATION_OBJECTSJUDGMENT_FORMATION_COLUMNSJUDGMENT_FORMATION_SPRITE_SIZEJUDGMENT_SHIELD_FORWARD_OBJECTSJUDGMENT_SHIELD_FORWARD_EMPTYJUDGMENT_DEBRIS_OBJECTSJUDGMENT_BURST_XJUDGMENT_BURST_YJUDGMENT_SHARD_RADIUSJUDGMENT_MOTES_XJUDGMENT_MOTES_YJUDGMENT_MOTE_DEPTHJUDGMENT_MOTE_SIZE_DEPTHJUDGMENT_BEAM_WIDTHJUDGMENT_BEAM_HEIGHTJUDGMENT_SHEET_TORNADOJUDGMENT_SHEET_GLOWJUDGMENT_GLOW_SIZEJUDGMENT_SHEET_EXPLOSIONJUDGMENT_FLARE_WIDTHJUDGMENT_FLARE_HEIGHTJUDGMENT_SHEET_FLARE_AJUDGMENT_SHEET_FLARE_BJUDGMENT_SHEET_FLASH_SMALL_WIDTHJUDGMENT_SHEET_FLASH_SMALL_HEIGHTJUDGMENT_SHEET_FLASH_LARGE_WIDTHJUDGMENT_SHEET_FLASH_LARGE_HEIGHTJUDGMENT_SHEET_FLASH_GLOW_WIDTHJUDGMENT_SHEET_FLASH_GLOW_HEIGHTJUDGMENT_SHEET_FLASH_SMALLJUDGMENT_SHEET_FLASH_LARGEJUDGMENT_SHEET_FLASH_GLOWJUDGMENT_EXPLOSION_WIDTHJUDGMENT_EXPLOSION_HEIGHTJUDGMENT_EXPLOSION_PICTURE_BYTESJUDGMENT_FIRE_RINGJUDGMENT_FIRE_RING_FADE_TICKJUDGMENT_FLASH_RING_FADE_TICKJUDGMENT_CRASH_RING_TILTJUDGMENT_FLASH_RING_TILTJUDGMENT_SWEEP_EXPLOSIONJUDGMENT_SWEEP_BEACHJUDGMENT_SWEEP_FORESTJUDGMENT_SWEEP_RETURNJUDGMENT_SKIP_DELAYJUDGMENT_WAVE_SIZEJUDGMENT_RING_LEVELJUDGMENT_SWEEP_CANVAS_XJUDGMENT_FLARE_XJUDGMENT_AERIAL_RINGS_YJUDGMENT_BEACH_RINGS_XJUDGMENT_BEACH_RINGS_YJUDGMENT_RETURN_BLAST_XJUDGMENT_FLARE_LAND_YJUDGMENT_FLASH_LARGE_TICKJUDGMENT_FLASH_GLOWS_TICKJUDGMENT_FLASH_WHITE_TICKJUDGMENT_FLASH_RESTORE_TICKJUDGMENT_FLASH_RING_TICKJUDGMENT_FLASH_RING_TICKSJUDGMENT_FLASH_GLOWS_ENDJUDGMENT_SECOND_FLASH_TICKJUDGMENT_SECOND_LARGE_TICKJUDGMENT_SECOND_GLOWS_TICKJUDGMENT_WAVE_TICKJUDGMENT_FLASH_LEFTJUDGMENT_FLASH_TOPJUDGMENT_FLASH_SMALL_XJUDGMENT_FLASH_SMALL_YJUDGMENT_FLASH_LARGE_XJUDGMENT_FLASH_LARGE_YJUDGMENT_FLASH_GLOW_XJUDGMENT_FLASH_GLOW_YJUDGMENT_DRAIN_SOUND_TICKJUDGMENT_WAVE_SOUND_TICKJUDGMENT_FOREST_SOUND_TICKJUDGMENT_BEACH_FLASH_TICKJUDGMENT_FOREST_FLASH_TICKJUDGMENT_BLAST_TICKJUDGMENT_STRIKE_TICKJUDGMENT_DEBRIS_END_TICKJUDGMENT_END_FLASH_TICKJUDGMENT_PLOT_RING_POINTSFunctions in detailbtEffectRunJudgment