src/battle_effect/battle_effect_canvas.c
Eclipse and the Doom Dragon's change of form, then the canvas layer: its transfers, opening and closing it, its maps, the battle background's darkening behind it, the targets' flash timers, and lines. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | FLASHES ((PARTICLE *)EffectScratch) | The form change's flashes, in the effect scratch, where Eclipse decodes its swirl texture. |
#define | ECLIPSE_TORNADO_PICTURES 8192 | Where TornadoSheet is decoded in the effect's pictures. |
#define | ECLIPSE_GLOW_BAND_A 16384 | Where GlowBandTextureA is decoded in the effect's pictures. |
#define | ECLIPSE_GLOW_BAND_B 14400 | Where GlowBandTextureB is decoded in the effect's pictures. |
#define | ECLIPSE_FLAME_BAND 1024 | Where FlameBandTexture is decoded in the effect's pictures. |
#define | GLOW_BAND_BYTES (32 * 4) | A glow band texture's bytes: GlowBandTextureA and B are 32 by 4. |
#define | ECLIPSE_BLAST_GLOW (ECLIPSE_GLOW_BAND_B + GLOW_BAND_BYTES) | The blast's glow, drawn as shaded circles after GlowBandTextureB. |
#define | ECLIPSE_DRAGON_COLORS 240 | The golden dragon: a sprite for each of GoldenDragonTiles' pictures and one for the first of GoldenDragonHeadTiles', 32x32 in 256 colours, of which each resource brings the first ECLIPSE_DRAGON_COLORS. |
#define | ECLIPSE_BODY_PICTURES 31 | |
#define | ECLIPSE_DRAGON_SPRITES 32 | |
#define | ECLIPSE_OPEN_JAW_PICTURES 7 | GoldenDragonHeadTiles' other pictures, which as many of the dragon's sprites take (EclipseTileObjects) as it opens its jaws and moves its wings. |
#define | ECLIPSE_SNOUT_SPRITE 25 | The sprite that shows a wing tip until the jaws open, then the tip of the snout at (32, 64) about the dragon. |
#define | ECLIPSE_BOB_START 32 | The dragon's moments: it bobs from ECLIPSE_BOB_START, opens its jaws and gathers the orb at ECLIPSE_JAWS_OPEN, breathes at ECLIPSE_BREATH, and from ECLIPSE_BREATH_FADE the breath narrows to nothing by ECLIPSE_DRAGON_TICKS. |
#define | ECLIPSE_JAWS_OPEN 136 | |
#define | ECLIPSE_BREATH 172 | |
#define | ECLIPSE_BREATH_FADE 204 | |
#define | ECLIPSE_DRAGON_TICKS 220 | |
#define | ECLIPSE_GLINTS_START 148 | While it bobs it also edges right, a quarter pixel a tick, until ECLIPSE_EDGE_RIGHT_END; glints sparkle about the orb from ECLIPSE_GLINTS_START, the sky's first flicker. |
#define | ECLIPSE_EDGE_RIGHT_END 159 | |
#define | ECLIPSE_RECOIL_PEAK 183 | |
#define | ECLIPSE_RECOIL_DAMPED_END 205 | |
#define | ECLIPSE_FILLS 17 | The canvas fills that flicker the sky while the dragon gathers its breath and breathes, rows of EclipseFillTicks and EclipseFillLevels. |
#define | ECLIPSE_ORB (state->particles[16]) | The glowing orb the dragon gathers: its radius in variant, drawn as shaded circles into the effect's pictures. |
#define | ECLIPSE_ORB_GATHERED 32 | |
#define | ECLIPSE_ORB_BREATH 64 | |
#define | ECLIPSE_BLAST (state->particles[63]) | The head of the blast, as it falls from the top right, and the ticks it whites out the field. |
#define | ECLIPSE_BLAST_TICKS 48 | |
#define | LIGHT_RAYS 16 | Rays of light that spin out from a point, each a tapered beam that widens and narrows over LIGHT_RAY_TICKS: Eclipse and the form change each set up LIGHT_RAYS, and Eclipse draws only the first ECLIPSE_LIGHT_RAYS. |
#define | LIGHT_RAY_TICKS 48 | |
#define | ECLIPSE_LIGHT_RAYS 8 | |
#define | ECLIPSE_RAYS_START 48 | The tick Eclipse's rays start, each 8 ticks after the last. |
#define | ECLIPSE_SWIRL_SHRINK (toFIXED(375) / 4096) | The swirl's scale, which shrinks from 4 this much a tick while the dragon gathers its breath. |
#define | BAND_SHADE_BRIGHTEST (MODEL_SHADE_INVISIBLE / 4) | The brightest a band of light is shaded: a quarter of the way to MODEL_SHADE_INVISIBLE. |
#define | ECLIPSE_RAMP_SIZE 120 | The square ramp drawn as the blast begins, brightening from left to right. |
#define | ECLIPSE_DOME_VERTICES (RamMapMetatileBuffer + 2048) | The landing's buffers in the map cell buffer: the dome's vertices and its grid mesh, and the band's vertices and mesh; its motes are ECLIPSE_MOTE_COUNT of EXTRA_PARTICLES. |
#define | ECLIPSE_DOME_MESH (RamMapMetatileBuffer + 4096) | |
#define | ECLIPSE_BAND_VERTICES (RamMapMetatileBuffer + 8192) | |
#define | ECLIPSE_BAND_MESH (RamMapMetatileBuffer + 10240) | |
#define | ECLIPSE_MOTE_COUNT 512 | |
#define | ECLIPSE_LANDING_TICKS 26 | The landing's ticks, and the motes it throws up each tick. |
#define | ECLIPSE_MOTES_A_TICK 16 | |
#define | ECLIPSE_DOME_RINGS 8 | The dome the blast lands as: its rings of vertices run from its top, its height up, to its rim, its radius out. |
#define | ECLIPSE_DOME_RING_VERTICES 16 | |
#define | ECLIPSE_DOME_HEIGHT 96 | |
#define | ECLIPSE_DOME_RADIUS 48 | |
#define | ECLIPSE_BAND_SEGMENTS 32 | The band of the four rings that spread from the dome: two rings of ECLIPSE_BAND_SEGMENTS vertices (btMeshBuildCylinderBand). |
#define | ECLIPSE_RING_TICKS 64 | A ring's life, how long it takes to fade in and when it starts to fade out, and how far it leans. |
#define | ECLIPSE_RING_FADE_IN 16 | |
#define | ECLIPSE_RING_FADE_OUT 40 | |
#define | ECLIPSE_RING_TILT 10000 | |
#define | ECLIPSE_LANDING_RED (-10) | The aerial view whitens as the blast lands and fades to this tint, its red and green darkened and its blue brightened. |
#define | ECLIPSE_LANDING_GREEN (-15) | |
#define | ECLIPSE_LANDING_BLUE 4 | |
#define | FORM_CHANGE_GLOW_BAND 12288 | Where GlowBandTextureA is decoded in the effect's pictures. |
#define | FORM_CHANGE_BILLOW (RamMapMetatileBuffer + 8192) | Where BillowTexture, the columns' texture, is decoded in the map cell buffer. |
#define | FORM_CHANGE_BURST 48 | The tick the change bursts: the screen shakes, flashes burst and the columns start to rise. |
#define | FORM_CHANGE_SWAP 62 | |
#define | FORM_CHANGE_FLASHES 16 | The flashes: FORM_CHANGE_FLASHES of them, two a tick from the burst, each thrown at FORM_CHANGE_FLASH_SPEED eighths of a pixel a tick and up to as much again at random, and each showing FlashBurstSheet's FLASH_BURST_PICTURE_COUNT pictures for FLASH_PICTURE_TICKS apiece. |
#define | FORM_CHANGE_FLASH_SLOTS 64 | |
#define | FORM_CHANGE_FLASH_SPEED 32 | |
#define | FLASH_PICTURE_TICKS 3 | |
#define | FORM_CHANGE_GLOW_RADIUS 64 | The glow's largest radius: it widens a pixel a tick from 8. |
#define | FORM_CHANGE_TICKS 76 | How long the change plays; after the last form it runs on while the screen whitens. |
#define | FORM_CHANGE_FINALE_TICKS 100 | |
#define | FORM_CHANGE_FINALE_LEVEL 16 | The level the last form's change fills the canvas with after each copy, as the screen whitens. |
#define | FORM_CHANGE_COLUMN_TILT 1000 | How far the columns lean. |
#define | BG1_MAP_ROW (row) | Row row of BG1's map. |
#define | AFFINE_TILE_PAIR (tile) ((tile) << 8 | (tile)) | Two entries of BG2's affine map, a byte each, both showing canvas tile tile. |
#define | BACKGROUND_RESTORE_STEP 3 | The levels the battle background brightens by each tick as the canvas closes, back to its own colours. |
#define | CANVAS_BG1_BLANK_TILE 255 | The tile, cleared, that BG1 shows around the canvas. |
#define | CANVAS_BG1_FIRST_TILE (BG_CHAR_SIZE / TILE_SIZE_8BPP) | The canvas's first tile counted from BG1's character base: the canvas is character block 1. |
#define | CANVAS_BG1_TOP_ROW 12 | The map row where the canvas starts on BG1, 96 pixels down: the effects that show it there scroll BG1 to y 80 to show it from the battle view's top line. |
#define | LINE_FRACTION_BITS 8 | A line follows its slower axis in fixed point with LINE_FRACTION_BITS of fraction, kept at the top of a word: a pixel's worth carries into the sign bit, LINE_FRACTION_SHIFT up. |
#define | LINE_PIXEL (1 << LINE_FRACTION_BITS) | |
#define | LINE_FRACTION_SHIFT (31 - LINE_FRACTION_BITS) |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunEclipse (BATTLE_EFFECT_PARM *args) | Eclipse: after a flash the golden dragon looms over the horizon while rays of light spin out from its head; it opens its jaws, gathers an orb of light and breathes it as a blast that whites out the field, and the blast lands on the land far below as a dome that spreads in rings before a last white flash. |
void | btEffectNoOperationA (void) | Unused: does nothing; nothing calls it. |
void | btEffectNoOperationB (void) | Unused: does nothing; nothing calls it. |
void | btEffectRunFormChange (BATTLE_EFFECT_PARM *args, Sint32 kind) | The Doom Dragon's change of form, played over the dragon once a form is beaten. |
void | btEffectTransferCanvas (void) | Copies the canvas to VRAM once the effect has finished a tick, then clears, fades, darkens or brightens it as transferMode says. |
void | btEffectProcessPendingStampTransfer (void) | Copies the stamp's picture to its sprite's tiles once the effect has drawn it, then clears the picture. |
void | btEffectTransferFullScreenImage (void) | Copies a picture the size of the battle background from the map cell buffer to BG character block 2 once the effect has finished a tick, as transferMode says. |
void | btEffectProcessPendingBlock2Transfer (void) | The same for a picture drawn in the canvas's heap slot: a plain copy takes all of BATTLE_BACKGROUND_BYTES, while the clear, the fade and the darkening take only its first CANVAS_VIEW_BYTES. |
void | btEffectBuildCanvasTilemap (void) | Writes BG1's map to show a picture CANVAS_SIZE wide from BG character block 2, as btTransitionBuildFlatTilemap does for the battle background: four rows of blank entries, two of BG1_CLEAR_TILE, then the picture's tiles in order, CANVAS_TILES rows of them, each row closed with BG1_CLEAR_TILE. |
void | btEffectApplyWindowBlendRegisters (void) | Writes the window, display and blend registers the effect keeps in its state, all at once. |
void | btDisplayApplyBg2Affine (void) | Writes the effect's BG2 scale to BG2PA and BG2PD and its reference point to BG2X and BG2Y. |
void | btEffectApplyBg2Reference (void) | Writes the effect's BG2 reference point to BG2X and BG2Y. |
void | btEffectDarkenBackgroundStep (void) | Darkens the battle background a step each tick while the canvas is open, so the effect stands out, for as many ticks as fadeFrame says. |
void | btEffectClearTintTimers (void) | Clears every target's flash timer. |
void | btEffectCountDownBattlerTints (void) | Counts down each target's flash timer and gives it its own palette back when one runs out. |
void | btEffectSetupCanvasWindows (void) | Shows the canvas on BG2 stretched to twice its width across the battle view, blended over the battle, with windows 0 and 1 over the battle view. |
void | btEffectStartCanvasLayer (Sint32 bgControl) | Opens the canvas layer over the battle, darkening the battle background behind it. |
void | btEffectOpenCanvasLayer (Sint32 bgControl) | Unused: opens the canvas layer as btEffectStartCanvasLayer does, with the windows off and the battle background's saved colours put back before it darkens; nothing calls it. |
void | btEffectStartTiledCanvas (Sint32 bgControl) | Opens the canvas layer with the canvas repeated across a wrapping map. |
void | btEffectStartTiledCanvasFilled (Sint32 bgControl) | Opens the canvas layer as btEffectStartTiledCanvas does, with the canvas's top right tile in the rest of each row in place of its top left. |
void | btEffectEndCanvasLayer (void) | Closes the canvas layer and brings the battle background's colours back. |
void | btEffectHideBg1AndRestoreBackdrop (void) | Hides BG1 and the windows, starts bringing the battle background's colours back, and gives BG1 back its own map. |
void | btEffectSetupCanvasTileMap (void) | Shows the canvas on BG1 instead of BG2, at its own size. |
void | btEffectDrawClippedCanvasLine ( Sint32 x0, Sint32 y0, Sint32 x1, Sint32 y1, Sint32 color) | Draws a line on the canvas, keeping the brighter colour where it crosses what is drawn. |
Description
Eclipse and the Doom Dragon's change of form, then the canvas layer: its
transfers, opening and closing it, its maps, the battle background's
darkening behind it, the targets' flash timers, and lines. Part of
battle_effect.c.
Macros in detail
FLASHES
#define FLASHES ((PARTICLE *)EffectScratch)
The form change's flashes, in the effect scratch, where Eclipse decodes its swirl texture.
Referenced by btEffectRunEclipse() and btEffectRunFormChange().
Definition at line 8 of file battle_effect_canvas.c.
ECLIPSE_TORNADO_PICTURES
#define ECLIPSE_TORNADO_PICTURES 8192
Where TornadoSheet is decoded in the effect's pictures.
Referenced by btEffectRunEclipse().
Definition at line 11 of file battle_effect_canvas.c.
ECLIPSE_GLOW_BAND_A
#define ECLIPSE_GLOW_BAND_A 16384
Where GlowBandTextureA is decoded in the effect's pictures.
Referenced by btEffectRunEclipse().
Definition at line 14 of file battle_effect_canvas.c.
ECLIPSE_GLOW_BAND_B
#define ECLIPSE_GLOW_BAND_B 14400
Where GlowBandTextureB is decoded in the effect's pictures.
Referenced by btEffectRunEclipse().
Definition at line 17 of file battle_effect_canvas.c.
ECLIPSE_FLAME_BAND
#define ECLIPSE_FLAME_BAND 1024
Where FlameBandTexture is decoded in the effect's pictures.
Referenced by btEffectRunEclipse().
Definition at line 20 of file battle_effect_canvas.c.
GLOW_BAND_BYTES
#define GLOW_BAND_BYTES (32 * 4)
A glow band texture's bytes: GlowBandTextureA and B are 32 by 4.
Definition at line 23 of file battle_effect_canvas.c.
ECLIPSE_BLAST_GLOW
#define ECLIPSE_BLAST_GLOW (ECLIPSE_GLOW_BAND_B + GLOW_BAND_BYTES)
The blast's glow, drawn as shaded circles after GlowBandTextureB.
Referenced by btEffectRunEclipse().
Definition at line 25 of file battle_effect_canvas.c.
ECLIPSE_DRAGON_COLORS
#define ECLIPSE_DRAGON_COLORS 240
The golden dragon: a sprite for each of GoldenDragonTiles' pictures and one
for the first of GoldenDragonHeadTiles', 32x32 in 256 colours, of which each
resource brings the first ECLIPSE_DRAGON_COLORS.
Referenced by btEffectRunEclipse().
Definition at line 30 of file battle_effect_canvas.c.
ECLIPSE_BODY_PICTURES
#define ECLIPSE_BODY_PICTURES 31
Referenced by btEffectRunEclipse().
Definition at line 31 of file battle_effect_canvas.c.
ECLIPSE_DRAGON_SPRITES
#define ECLIPSE_DRAGON_SPRITES 32
Referenced by btEffectRunEclipse().
Definition at line 32 of file battle_effect_canvas.c.
ECLIPSE_OPEN_JAW_PICTURES
#define ECLIPSE_OPEN_JAW_PICTURES 7
GoldenDragonHeadTiles' other pictures, which as many of the dragon's sprites
take (EclipseTileObjects) as it opens its jaws and moves its wings.
Referenced by btEffectRunEclipse().
Definition at line 35 of file battle_effect_canvas.c.
ECLIPSE_SNOUT_SPRITE
#define ECLIPSE_SNOUT_SPRITE 25
The sprite that shows a wing tip until the jaws open, then the tip of the snout at (32, 64) about the dragon.
Referenced by btEffectRunEclipse().
Definition at line 38 of file battle_effect_canvas.c.
ECLIPSE_BOB_START
#define ECLIPSE_BOB_START 32
The dragon's moments: it bobs from ECLIPSE_BOB_START, opens its jaws and
gathers the orb at ECLIPSE_JAWS_OPEN, breathes at ECLIPSE_BREATH, and from
ECLIPSE_BREATH_FADE the breath narrows to nothing by ECLIPSE_DRAGON_TICKS.
Referenced by btEffectRunEclipse().
Definition at line 43 of file battle_effect_canvas.c.
ECLIPSE_JAWS_OPEN
#define ECLIPSE_JAWS_OPEN 136
Referenced by btEffectRunEclipse().
Definition at line 44 of file battle_effect_canvas.c.
ECLIPSE_BREATH
#define ECLIPSE_BREATH 172
Referenced by btEffectRunEclipse().
Definition at line 45 of file battle_effect_canvas.c.
ECLIPSE_BREATH_FADE
#define ECLIPSE_BREATH_FADE 204
Referenced by btEffectRunEclipse().
Definition at line 46 of file battle_effect_canvas.c.
ECLIPSE_DRAGON_TICKS
#define ECLIPSE_DRAGON_TICKS 220
Referenced by btEffectRunEclipse().
Definition at line 47 of file battle_effect_canvas.c.
ECLIPSE_GLINTS_START
#define ECLIPSE_GLINTS_START 148
While it bobs it also edges right, a quarter pixel a tick, until
ECLIPSE_EDGE_RIGHT_END; glints sparkle about the orb from
ECLIPSE_GLINTS_START, the sky's first flicker. The breath throws it back up
and to the right, its motion damped until ECLIPSE_RECOIL_DAMPED_END, and
after ECLIPSE_RECOIL_PEAK it sinks back down and to the left.
Referenced by btEffectRunEclipse().
Definition at line 53 of file battle_effect_canvas.c.
ECLIPSE_EDGE_RIGHT_END
#define ECLIPSE_EDGE_RIGHT_END 159
Referenced by btEffectRunEclipse().
Definition at line 54 of file battle_effect_canvas.c.
ECLIPSE_RECOIL_PEAK
#define ECLIPSE_RECOIL_PEAK 183
Referenced by btEffectRunEclipse().
Definition at line 55 of file battle_effect_canvas.c.
ECLIPSE_RECOIL_DAMPED_END
#define ECLIPSE_RECOIL_DAMPED_END 205
Referenced by btEffectRunEclipse().
Definition at line 56 of file battle_effect_canvas.c.
ECLIPSE_FILLS
#define ECLIPSE_FILLS 17
The canvas fills that flicker the sky while the dragon gathers its breath and
breathes, rows of EclipseFillTicks and EclipseFillLevels.
Referenced by btEffectRunEclipse().
Definition at line 59 of file battle_effect_canvas.c.
ECLIPSE_ORB
#define ECLIPSE_ORB (state->particles[16])
The glowing orb the dragon gathers: its radius in variant, drawn as shaded
circles into the effect's pictures. It swells to ECLIPSE_ORB_GATHERED as the
jaws open and to ECLIPSE_ORB_BREATH as the dragon breathes.
Referenced by btEffectRunEclipse().
Definition at line 64 of file battle_effect_canvas.c.
ECLIPSE_ORB_GATHERED
#define ECLIPSE_ORB_GATHERED 32
Referenced by btEffectRunEclipse().
Definition at line 65 of file battle_effect_canvas.c.
ECLIPSE_ORB_BREATH
#define ECLIPSE_ORB_BREATH 64
Referenced by btEffectRunEclipse().
Definition at line 66 of file battle_effect_canvas.c.
ECLIPSE_BLAST
#define ECLIPSE_BLAST (state->particles[63])
The head of the blast, as it falls from the top right, and the ticks it whites out the field.
Referenced by btEffectRunEclipse().
Definition at line 69 of file battle_effect_canvas.c.
ECLIPSE_BLAST_TICKS
#define ECLIPSE_BLAST_TICKS 48
Referenced by btEffectRunEclipse().
Definition at line 70 of file battle_effect_canvas.c.
LIGHT_RAYS
#define LIGHT_RAYS 16
Rays of light that spin out from a point, each a tapered beam that widens and
narrows over LIGHT_RAY_TICKS: Eclipse and the form change each set up
LIGHT_RAYS, and Eclipse draws only the first ECLIPSE_LIGHT_RAYS.
Referenced by btEffectRunEclipse() and btEffectRunFormChange().
Definition at line 75 of file battle_effect_canvas.c.
LIGHT_RAY_TICKS
#define LIGHT_RAY_TICKS 48
Referenced by btEffectRunEclipse() and btEffectRunFormChange().
Definition at line 76 of file battle_effect_canvas.c.
ECLIPSE_LIGHT_RAYS
#define ECLIPSE_LIGHT_RAYS 8
Referenced by btEffectRunEclipse().
Definition at line 77 of file battle_effect_canvas.c.
ECLIPSE_RAYS_START
#define ECLIPSE_RAYS_START 48
The tick Eclipse's rays start, each 8 ticks after the last.
Referenced by btEffectRunEclipse().
Definition at line 79 of file battle_effect_canvas.c.
ECLIPSE_SWIRL_SHRINK
#define ECLIPSE_SWIRL_SHRINK (toFIXED(375) / 4096)
The swirl's scale, which shrinks from 4 this much a tick while the dragon gathers its breath.
Referenced by btEffectRunEclipse().
Definition at line 83 of file battle_effect_canvas.c.
BAND_SHADE_BRIGHTEST
#define BAND_SHADE_BRIGHTEST (MODEL_SHADE_INVISIBLE / 4)
The brightest a band of light is shaded: a quarter of the way to
MODEL_SHADE_INVISIBLE.
Referenced by btEffectRunEclipse() and btEffectRunFormChange().
Definition at line 86 of file battle_effect_canvas.c.
ECLIPSE_RAMP_SIZE
#define ECLIPSE_RAMP_SIZE 120
The square ramp drawn as the blast begins, brightening from left to right.
Referenced by btEffectRunEclipse().
Definition at line 89 of file battle_effect_canvas.c.
ECLIPSE_DOME_VERTICES
#define ECLIPSE_DOME_VERTICES (RamMapMetatileBuffer + 2048)
The landing's buffers in the map cell buffer: the dome's vertices and its
grid mesh, and the band's vertices and mesh; its motes are ECLIPSE_MOTE_COUNT
of EXTRA_PARTICLES.
Referenced by btEffectRunEclipse().
Definition at line 93 of file battle_effect_canvas.c.
ECLIPSE_DOME_MESH
#define ECLIPSE_DOME_MESH (RamMapMetatileBuffer + 4096)
Referenced by btEffectRunEclipse().
Definition at line 94 of file battle_effect_canvas.c.
ECLIPSE_BAND_VERTICES
#define ECLIPSE_BAND_VERTICES (RamMapMetatileBuffer + 8192)
Referenced by btEffectRunEclipse().
Definition at line 95 of file battle_effect_canvas.c.
ECLIPSE_BAND_MESH
#define ECLIPSE_BAND_MESH (RamMapMetatileBuffer + 10240)
Referenced by btEffectRunEclipse().
Definition at line 96 of file battle_effect_canvas.c.
ECLIPSE_MOTE_COUNT
#define ECLIPSE_MOTE_COUNT 512
Referenced by btEffectRunEclipse().
Definition at line 97 of file battle_effect_canvas.c.
ECLIPSE_LANDING_TICKS
#define ECLIPSE_LANDING_TICKS 26
The landing's ticks, and the motes it throws up each tick.
Referenced by btEffectRunEclipse().
Definition at line 99 of file battle_effect_canvas.c.
ECLIPSE_MOTES_A_TICK
#define ECLIPSE_MOTES_A_TICK 16
Referenced by btEffectRunEclipse().
Definition at line 100 of file battle_effect_canvas.c.
ECLIPSE_DOME_RINGS
#define ECLIPSE_DOME_RINGS 8
The dome the blast lands as: its rings of vertices run from its top, its height up, to its rim, its radius out.
Referenced by btEffectRunEclipse().
Definition at line 103 of file battle_effect_canvas.c.
ECLIPSE_DOME_RING_VERTICES
#define ECLIPSE_DOME_RING_VERTICES 16
Referenced by btEffectRunEclipse().
Definition at line 104 of file battle_effect_canvas.c.
ECLIPSE_DOME_HEIGHT
#define ECLIPSE_DOME_HEIGHT 96
Referenced by btEffectRunEclipse().
Definition at line 105 of file battle_effect_canvas.c.
ECLIPSE_DOME_RADIUS
#define ECLIPSE_DOME_RADIUS 48
Referenced by btEffectRunEclipse().
Definition at line 106 of file battle_effect_canvas.c.
ECLIPSE_BAND_SEGMENTS
#define ECLIPSE_BAND_SEGMENTS 32
The band of the four rings that spread from the dome: two rings of
ECLIPSE_BAND_SEGMENTS vertices (btMeshBuildCylinderBand).
Referenced by btEffectRunEclipse().
Definition at line 109 of file battle_effect_canvas.c.
ECLIPSE_RING_TICKS
#define ECLIPSE_RING_TICKS 64
A ring's life, how long it takes to fade in and when it starts to fade out, and how far it leans.
Referenced by btEffectRunEclipse().
Definition at line 112 of file battle_effect_canvas.c.
ECLIPSE_RING_FADE_IN
#define ECLIPSE_RING_FADE_IN 16
Referenced by btEffectRunEclipse().
Definition at line 113 of file battle_effect_canvas.c.
ECLIPSE_RING_FADE_OUT
#define ECLIPSE_RING_FADE_OUT 40
Referenced by btEffectRunEclipse().
Definition at line 114 of file battle_effect_canvas.c.
ECLIPSE_RING_TILT
#define ECLIPSE_RING_TILT 10000
Referenced by btEffectRunEclipse().
Definition at line 115 of file battle_effect_canvas.c.
ECLIPSE_LANDING_RED
#define ECLIPSE_LANDING_RED (-10)
The aerial view whitens as the blast lands and fades to this tint, its red and green darkened and its blue brightened.
Referenced by btEffectRunEclipse().
Definition at line 118 of file battle_effect_canvas.c.
ECLIPSE_LANDING_GREEN
#define ECLIPSE_LANDING_GREEN (-15)
Referenced by btEffectRunEclipse().
Definition at line 119 of file battle_effect_canvas.c.
ECLIPSE_LANDING_BLUE
#define ECLIPSE_LANDING_BLUE 4
Referenced by btEffectRunEclipse().
Definition at line 120 of file battle_effect_canvas.c.
FORM_CHANGE_GLOW_BAND
#define FORM_CHANGE_GLOW_BAND 12288
Where GlowBandTextureA is decoded in the effect's pictures.
Referenced by btEffectRunFormChange().
Definition at line 1034 of file battle_effect_canvas.c.
FORM_CHANGE_BILLOW
#define FORM_CHANGE_BILLOW (RamMapMetatileBuffer + 8192)
Where BillowTexture, the columns' texture, is decoded in the map cell buffer.
Referenced by btEffectRunFormChange().
Definition at line 1036 of file battle_effect_canvas.c.
FORM_CHANGE_BURST
#define FORM_CHANGE_BURST 48
The tick the change bursts: the screen shakes, flashes burst and the columns
start to rise. At FORM_CHANGE_SWAP the battle swaps in the next form.
Referenced by btEffectRunFormChange().
Definition at line 1039 of file battle_effect_canvas.c.
FORM_CHANGE_SWAP
#define FORM_CHANGE_SWAP 62
Referenced by btEffectRunFormChange().
Definition at line 1040 of file battle_effect_canvas.c.
FORM_CHANGE_FLASHES
#define FORM_CHANGE_FLASHES 16
The flashes: FORM_CHANGE_FLASHES of them, two a tick from the burst, each
thrown at FORM_CHANGE_FLASH_SPEED eighths of a pixel a tick and up to as much
again at random, and each showing FlashBurstSheet's FLASH_BURST_PICTURE_COUNT
pictures for FLASH_PICTURE_TICKS apiece. The burst first frees
FORM_CHANGE_FLASH_SLOTS.
Referenced by btEffectRunFormChange().
Definition at line 1046 of file battle_effect_canvas.c.
FORM_CHANGE_FLASH_SLOTS
#define FORM_CHANGE_FLASH_SLOTS 64
Referenced by btEffectRunFormChange().
Definition at line 1047 of file battle_effect_canvas.c.
FORM_CHANGE_FLASH_SPEED
#define FORM_CHANGE_FLASH_SPEED 32
Referenced by btEffectRunFormChange().
Definition at line 1048 of file battle_effect_canvas.c.
FLASH_PICTURE_TICKS
#define FLASH_PICTURE_TICKS 3
Referenced by btEffectRunFormChange().
Definition at line 1049 of file battle_effect_canvas.c.
FORM_CHANGE_GLOW_RADIUS
#define FORM_CHANGE_GLOW_RADIUS 64
The glow's largest radius: it widens a pixel a tick from 8.
Referenced by btEffectRunFormChange().
Definition at line 1051 of file battle_effect_canvas.c.
FORM_CHANGE_TICKS
#define FORM_CHANGE_TICKS 76
How long the change plays; after the last form it runs on while the screen whitens.
Referenced by btEffectRunFormChange().
Definition at line 1054 of file battle_effect_canvas.c.
FORM_CHANGE_FINALE_TICKS
#define FORM_CHANGE_FINALE_TICKS 100
Referenced by btEffectRunFormChange().
Definition at line 1055 of file battle_effect_canvas.c.
FORM_CHANGE_FINALE_LEVEL
#define FORM_CHANGE_FINALE_LEVEL 16
The level the last form's change fills the canvas with after each copy, as the screen whitens.
Referenced by btEffectRunFormChange().
Definition at line 1058 of file battle_effect_canvas.c.
FORM_CHANGE_COLUMN_TILT
#define FORM_CHANGE_COLUMN_TILT 1000
How far the columns lean.
Referenced by btEffectRunFormChange().
Definition at line 1060 of file battle_effect_canvas.c.
BG1_MAP_ROW
#define BG1_MAP_ROW(row)
Row row of BG1's map.
Referenced by btEffectSetupCanvasTileMap().
Definition at line 1591 of file battle_effect_canvas.c.
AFFINE_TILE_PAIR
#define AFFINE_TILE_PAIR(tile) ((tile) << 8 | (tile))
Two entries of BG2's affine map, a byte each, both showing canvas tile
tile.
Referenced by btEffectStartTiledCanvasFilled().
Definition at line 1891 of file battle_effect_canvas.c.
BACKGROUND_RESTORE_STEP
#define BACKGROUND_RESTORE_STEP 3
The levels the battle background brightens by each tick as the canvas closes, back to its own colours.
Referenced by btEffectEndCanvasLayer().
Definition at line 1918 of file battle_effect_canvas.c.
CANVAS_BG1_BLANK_TILE
#define CANVAS_BG1_BLANK_TILE 255
The tile, cleared, that BG1 shows around the canvas.
Referenced by btEffectSetupCanvasTileMap().
Definition at line 1991 of file battle_effect_canvas.c.
CANVAS_BG1_FIRST_TILE
#define CANVAS_BG1_FIRST_TILE (BG_CHAR_SIZE / TILE_SIZE_8BPP)
The canvas's first tile counted from BG1's character base: the canvas is character block 1.
Referenced by btEffectSetupCanvasTileMap().
Definition at line 1994 of file battle_effect_canvas.c.
CANVAS_BG1_TOP_ROW
#define CANVAS_BG1_TOP_ROW 12
The map row where the canvas starts on BG1, 96 pixels down: the effects that show it there scroll BG1 to y 80 to show it from the battle view's top line.
Referenced by btEffectSetupCanvasTileMap().
Definition at line 1997 of file battle_effect_canvas.c.
LINE_FRACTION_BITS
#define LINE_FRACTION_BITS 8
A line follows its slower axis in fixed point with LINE_FRACTION_BITS of
fraction, kept at the top of a word: a pixel's worth carries into the sign
bit, LINE_FRACTION_SHIFT up.
Referenced by btEffectDrawClippedCanvasLine().
Definition at line 2053 of file battle_effect_canvas.c.
LINE_PIXEL
#define LINE_PIXEL (1 << LINE_FRACTION_BITS)
Referenced by btEffectDrawClippedCanvasLine().
Definition at line 2054 of file battle_effect_canvas.c.
LINE_FRACTION_SHIFT
#define LINE_FRACTION_SHIFT (31 - LINE_FRACTION_BITS)
Referenced by btEffectDrawClippedCanvasLine().
Definition at line 2055 of file battle_effect_canvas.c.
Functions in detail
btEffectRunEclipse
void btEffectRunEclipse(BATTLE_EFFECT_PARM *args)
Eclipse: after a flash the golden dragon looms over the horizon while rays of light spin out from its head; it opens its jaws, gathers an orb of light and breathes it as a blast that whites out the field, and the blast lands on the land far below as a dome that spreads in rings before a last white flash.
Abilities: Eclipse.
References BattleEffectBeamCorners, BattleEffectGlintPictureHeights, BattleEffectGlintPictures, BattleEffectGlintPictureWidths, BattleEffectGroundSquareCorners, BattleEffectMotePictures, BattleEffectSmallSquareMesh, BattleEffectSquareMesh, BattleEffectTaperedBeamCorners, BgScrollWork, btActorSpawnObjectsForListStub(), btBackgroundLoadStub(), btCameraShake(), btCanvasBlitMirroredQuarters(), btEffectAdvanceScrollOnInterval(), btEffectDrawShadedDiscQuarter(), btEffectFillWhiteBand(), btEffectShowLivingTargets(), btEffectSpriteCreateWithTiles(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btGraphicsLoadGreyRamp(), btMeshBuildCylinderBand(), btMeshBuildGrid(), btPaletteBrightenBattleBg(), btPaletteBrightenSavedBattleBg(), btParticleAdvanceWithGravity2D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), EclipseDragonScale, EclipseFillLevels, EclipseFillTicks, EclipseGlintFlips, EclipseObjectX, EclipseObjectZ, EclipseRingGrowth, EclipseRingHeights, EclipseTileObjects, fdActorShadowFreeTilesStub(), fdActorShadowLoadTilesStub(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), MapGridMetatileBuffer, PerWork, ProjectionWork, Sint32, syCloseEvent() and 23 more.
Referenced by btEffectRunSummon().
Definition at line 128 of file battle_effect_canvas.c.
btEffectNoOperationA
void btEffectNoOperationA(void)
Unused: does nothing; nothing calls it.
Definition at line 1024 of file battle_effect_canvas.c.
btEffectNoOperationB
void btEffectNoOperationB(void)
Unused: does nothing; nothing calls it.
Definition at line 1029 of file battle_effect_canvas.c.
btEffectRunFormChange
void btEffectRunFormChange(BATTLE_EFFECT_PARM *args, Sint32 kind)
The Doom Dragon's change of form, played over the dragon once a form is
beaten. A glow widens over it while rays of light spin out from it, and it
flashes white; at FORM_CHANGE_BURST the screen shakes, flashes burst upward
and four columns of light rise from the ground one after another, spinning.
After its first and second forms (FORMATION_DOOM_DRAGON_A and B) the glow
stands to its right and to its left, and the battle swaps in the next form at
FORM_CHANGE_SWAP; after its last (FORMATION_DOOM_DRAGON_C) the glow stands
over it, the screen whitens, and it puts the battle's view back itself.
References BattleEffectRingCorners, BattleEffectRingMesh, BattleEffectSmallSquareMesh, BattleEffectTaperedBeamCorners, BgScrollWork, btCameraShake(), btCanvasBlitMirroredQuarters(), btChangeEnemyFormStub(), btEffectDarkenBackgroundStep(), btEffectDrawShadedDiscQuarter(), btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btPaletteBrightenBgEntries(), btParticleAdvanceWithGravity2D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), FormChangeWaveGrowth, FormChangeWaveStarts, FormChangeWaveStretch, ProjectionWork, Sint32, syCloseEvent(), syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotAllocate(), syHeapSlotRelease(), syInitMatrix(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotY(), syRotZ(), syScale(), sySin(), sySoundPlayStub() and syTranslate().
Definition at line 1070 of file battle_effect_canvas.c.
btEffectTransferCanvas
void btEffectTransferCanvas(void)
Copies the canvas to VRAM once the effect has finished a tick, then clears,
fades, darkens or brightens it as transferMode says.
References syColorBufferBrighten(), syColorBufferDarken(), syColorBufferHalve(), syColorBufferScaleThreeQuarters(), syWordsCopy() and syWordsFill().
Referenced by btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunAzul(), btEffectRunBackgroundFadeIn(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBoreas(), btEffectRunBreaths(), btEffectRunBubbleColumn(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCloudSwirl(), btEffectRunCoatlicue(), btEffectRunCondemn(), btEffectRunCool(), btEffectRunCrescentSlash(), btEffectRunCriticalHit(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunDjinniSign(), btEffectRunDouse(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunFire(), btEffectRunFirePuppet(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlora(), btEffectRunFlurry(), btEffectRunFormChange(), btEffectRunFrost(), btEffectRunFume() and 58 more.
Definition at line 1407 of file battle_effect_canvas.c.
btEffectProcessPendingStampTransfer
void btEffectProcessPendingStampTransfer(void)
Copies the stamp's picture to its sprite's tiles once the effect has drawn it, then clears the picture.
References Sint32, syWordsCopy() and syWordsFill().
Referenced by btEffectRunHaures().
Definition at line 1461 of file battle_effect_canvas.c.
btEffectTransferFullScreenImage
void btEffectTransferFullScreenImage(void)
Copies a picture the size of the battle background from the map cell buffer to BG character block 2 once the effect has finished a tick, as transferMode says.
References syColorBufferDarken(), syColorBufferHalve(), syColorBufferScaleThreeQuarters(), syWordsCopy() and syWordsFill().
Referenced by btEffectRunCloudSwirl(), btEffectRunMeteorBlow() and btEffectRunStarfieldFall().
Definition at line 1487 of file battle_effect_canvas.c.
btEffectProcessPendingBlock2Transfer
void btEffectProcessPendingBlock2Transfer(void)
The same for a picture drawn in the canvas's heap slot: a plain copy takes
all of BATTLE_BACKGROUND_BYTES, while the clear, the fade and the darkening
take only its first CANVAS_VIEW_BYTES.
References syColorBufferDarken(), syColorBufferHalve(), syColorBufferScaleThreeQuarters(), syWordsCopy() and syWordsFill().
Referenced by btEffectRunGeode() and btEffectRunUlysses().
Definition at line 1541 of file battle_effect_canvas.c.
btEffectBuildCanvasTilemap
void btEffectBuildCanvasTilemap(void)
Writes BG1's map to show a picture CANVAS_SIZE wide from BG character block
2, as btTransitionBuildFlatTilemap does for the battle background: four rows
of blank entries, two of BG1_CLEAR_TILE, then the picture's tiles in order,
CANVAS_TILES rows of them, each row closed with BG1_CLEAR_TILE.
References Sint32 and syWordsFill().
Referenced by btEffectRunGeode().
Definition at line 1598 of file battle_effect_canvas.c.
btEffectApplyWindowBlendRegisters
void btEffectApplyWindowBlendRegisters(void)
Writes the window, display and blend registers the effect keeps in its state, all at once.
Definition at line 1626 of file battle_effect_canvas.c.
btDisplayApplyBg2Affine
void btDisplayApplyBg2Affine(void)
Writes the effect's BG2 scale to BG2PA and BG2PD and its reference point to BG2X and BG2Y.
Referenced by btEffectRunGeode() and btEffectRunUlysses().
Definition at line 1643 of file battle_effect_canvas.c.
btEffectApplyBg2Reference
void btEffectApplyBg2Reference(void)
Writes the effect's BG2 reference point to BG2X and BG2Y.
Definition at line 1654 of file battle_effect_canvas.c.
btEffectDarkenBackgroundStep
void btEffectDarkenBackgroundStep(void)
Darkens the battle background a step each tick while the canvas is open, so the effect stands out, for as many ticks as fadeFrame says.
References btColorBufferScaleStub() and Sint32.
Referenced by btEffectEndCanvasLayer(), btEffectOpenCanvasLayer(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCastingImpact(), btEffectRunCriticalHit(), btEffectRunFlashingStrike(), btEffectRunFormChange(), btEffectRunHurricane(), btEffectRunLobbedShells(), btEffectRunMoteFountain(), btEffectRunSpiderWeb(), btEffectRunUlysses() and btEffectStartCanvasLayer().
Definition at line 1664 of file battle_effect_canvas.c.
btEffectClearTintTimers
void btEffectClearTintTimers(void)
Clears every target's flash timer.
References syWordsClear().
Referenced by btEffectOpenCanvasLayer(), btEffectRunBackgroundFadeIn(), btEffectRunShatteringOpening(), btEffectSetupCanvasTileMap() and btEffectStartCanvasLayer().
Definition at line 1687 of file battle_effect_canvas.c.
btEffectCountDownBattlerTints
void btEffectCountDownBattlerTints(void)
Counts down each target's flash timer and gives it its own palette back when one runs out.
References btEffectTintBattler() and Sint32.
Referenced by btEffectRunAzul(), btEffectRunBurstShower(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCruelRuin(), btEffectRunFirePuppet(), btEffectRunFume(), btEffectRunGaspFamily(), btEffectRunHaures(), btEffectRunIce(), btEffectRunMoloch(), btEffectRunRisingDragon(), btEffectRunRisingDragonEnemy(), btEffectRunTorch(), btEffectRunVengeance() and btEffectRunZagan().
Definition at line 1696 of file battle_effect_canvas.c.
btEffectSetupCanvasWindows
void btEffectSetupCanvasWindows(void)
Shows the canvas on BG2 stretched to twice its width across the battle view, blended over the battle, with windows 0 and 1 over the battle view.
Referenced by btEffectOpenCanvasLayer(), btEffectStartCanvasLayer() and btEffectStartElementStreaks().
Definition at line 1723 of file battle_effect_canvas.c.
btEffectStartCanvasLayer
void btEffectStartCanvasLayer(Sint32 bgControl)
Opens the canvas layer over the battle, darkening the battle background behind it.
References BgScrollWork, btBackgroundSetModeStub(), btCameraSetViewStub(), btEffectClearTintTimers(), btEffectConfigureEffectDisplay(), btEffectDarkenBackgroundStep(), btEffectSetupCanvasWindows(), Sint32, sySetEvent(), sySynch() and syWordsClear().
Referenced by btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAzul(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBind(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBreaths(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCastingImpact(), btEffectRunCharon(), btEffectRunCloudSwirl(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDiamondBerg(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniCharge(), btEffectRunDjinniSign(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementBurst(), btEffectRunElementCards(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunFire(), btEffectRunFirePuppet(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlora(), btEffectRunFlurry(), btEffectRunFormChange(), btEffectRunFroth(), btEffectRunFume(), btEffectRunGaia(), btEffectRunGaspFamily(), btEffectRunGatheringLights(), btEffectRunGeode(), btEffectRunGeyser(), btEffectRunGround() and 73 more.
Definition at line 1739 of file battle_effect_canvas.c.
btEffectOpenCanvasLayer
void btEffectOpenCanvasLayer(Sint32 bgControl)
Unused: opens the canvas layer as btEffectStartCanvasLayer does, with the
windows off and the battle background's saved colours put back before it
darkens; nothing calls it.
References BgScrollWork, btBackgroundSetModeStub(), btCameraSetViewStub(), btEffectClearTintTimers(), btEffectDarkenBackgroundStep(), btEffectSetupCanvasWindows(), Sint32, sySetEvent(), sySynch() and syWordsClear().
Definition at line 1808 of file battle_effect_canvas.c.
btEffectStartTiledCanvas
void btEffectStartTiledCanvas(Sint32 bgControl)
Opens the canvas layer with the canvas repeated across a wrapping map.
References btEffectStartCanvasLayer() and Sint32.
Referenced by btEffectOpenAndCloseTiledCanvas(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCrescentSlash(), btEffectRunHeartbreak(), btEffectRunLifeShear(), btEffectRunRay(), btEffectRunSerac() and btEffectRunVengeance().
Definition at line 1869 of file battle_effect_canvas.c.
btEffectStartTiledCanvasFilled
void btEffectStartTiledCanvasFilled(Sint32 bgControl)
Opens the canvas layer as btEffectStartTiledCanvas does, with the canvas's
top right tile in the rest of each row in place of its top left.
References btEffectStartCanvasLayer() and Sint32.
Referenced by btEffectRunCards(), btEffectRunLifeShear(), btEffectRunRay() and btEffectRunSerac().
Definition at line 1895 of file battle_effect_canvas.c.
btEffectEndCanvasLayer
void btEffectEndCanvasLayer(void)
Closes the canvas layer and brings the battle background's colours back.
References BgScrollWork, btBackgroundSetModeStub(), btBackgroundSetPaletteLevelStub(), btEffectDarkenBackgroundStep(), ProjectionWork, Sint32, syCloseEvent(), sySoundPlayStub(), sySynch() and syWordsClear().
Referenced by btEffectOpenAndCloseTiledCanvas(), btEffectRunAnnihilation(), btEffectRunAzul(), btEffectRunBackstab(), btEffectRunBind(), btEffectRunBoreas(), btEffectRunBreaths(), btEffectRunBubbleColumn(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCharon(), btEffectRunCloudSwirl(), btEffectRunCoatlicue(), btEffectRunCondemn(), btEffectRunCool(), btEffectRunCybele(), btEffectRunDaedalusStrike(), btEffectRunDjinnBeams(), btEffectRunDjinniCharge(), btEffectRunDjinniSign(), btEffectRunDragonFire(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunFire(), btEffectRunFirePuppet(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlurry(), btEffectRunFormChange(), btEffectRunFrost(), btEffectRunFume(), btEffectRunGaia(), btEffectRunGaspFamily(), btEffectRunGatheringLights(), btEffectRunGeode(), btEffectRunGeyser(), btEffectRunHaunt(), btEffectRunHeartbreak(), btEffectRunHeavyBlow(), btEffectRunIce(), btEffectRunIris(), btEffectRunJuggle(), btEffectRunKite(), btEffectRunLobbedShells(), btEffectRunMegaera(), btEffectRunMeteorBlow(), btEffectRunMirroredWall(), btEffectRunMoloch(), btEffectRunMoteFountain(), btEffectRunNereid() and 27 more.
Definition at line 1921 of file battle_effect_canvas.c.
btEffectHideBg1AndRestoreBackdrop
void btEffectHideBg1AndRestoreBackdrop(void)
Hides BG1 and the windows, starts bringing the battle background's colours back, and gives BG1 back its own map.
References btBackgroundSetModeStub(), Sint32, syIOWriteQueueStore16() and sySynch().
Referenced by btEffectRunAttackSlash() and btEffectRunCriticalHit().
Definition at line 1970 of file battle_effect_canvas.c.
btEffectSetupCanvasTileMap
void btEffectSetupCanvasTileMap(void)
Shows the canvas on BG1 instead of BG2, at its own size.
References BgScrollWork, btBackgroundSetModeStub(), btEffectClearTintTimers(), Sint32, sySynch(), syWordsClear() and syWordsFill().
Referenced by btEffectRunAttackSlash() and btEffectRunCriticalHit().
Definition at line 2000 of file battle_effect_canvas.c.
btEffectDrawClippedCanvasLine
void btEffectDrawClippedCanvasLine( Sint32 x0, Sint32 y0, Sint32 x1, Sint32 y1, Sint32 color)
Draws a line on the canvas, keeping the brighter colour where it crosses what is drawn.
References Sint32.
Referenced by btEffectDrawDiagonalCanvasLine(), btEffectDrawStreaks(), btEffectRunFlora(), btEffectRunNeptune() and btRenderDrawMeshWireframe().
Definition at line 2059 of file battle_effect_canvas.c.