Alchemy
Loading...
Searching...
No Matches

dragon_cloud.c File Reference

Dragon Cloud. More...

Go to the source code of this file.

Macros

#define DRAGON_CLOUD_FRAMES   150
#define DRAGON_CLOUD_STRIKE_FRAME   83
 the flame strikes the first target
#define DRAGON_CLOUD_TRAIL_CELL_BYTES   (24 * 39)
 bytes in each trail copy
#define DRAGON_CLOUD_FIRST_EMBER   8
 the first ember in work->particles
#define DRAGON_CLOUD_FIRST_FLASH   48
 the first flash in work->particles
#define DRAGON_CLOUD_TRAIL_CELLS   0x1680
 the trail picture in the sheet
#define DRAGON_CLOUD_PUFF_CELLS   0x3c00
 the puff pictures in the sheet
#define DRAGON_CLOUD_PUFFS   8
 puffs, particles 0 to 7
#define DRAGON_CLOUD_EMBERS   40
 embers, from FIRST_EMBER
#define DRAGON_CLOUD_FLASHES   16
 flashes, from FIRST_FLASH
#define DRAGON_CLOUD_DRAW_PUFF(blit, canvas, sheet, cell, x, y)
 Draws puff picture cell of sheet on canvas at (x, y) with blit, sized by the puff tables.

Functions

void BattleFx_RunDragonCloud (struct BattleEffectArgument *effect)
 A flame leaves the user along a stored path with a fading trail of 19 copies behind it, then strikes the first target on DRAGON_CLOUD_STRIKE_FRAME and bursts into embers and flashes.

Detailed Description

Dragon Cloud.

Part of effect.c, the battle effect object, compiled only through it.

Definition in file dragon_cloud.c.

Macro Definition Documentation

◆ DRAGON_CLOUD_FRAMES

#define DRAGON_CLOUD_FRAMES   150

Definition at line 7 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().

◆ DRAGON_CLOUD_STRIKE_FRAME

#define DRAGON_CLOUD_STRIKE_FRAME   83

the flame strikes the first target

Definition at line 8 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().

◆ DRAGON_CLOUD_TRAIL_CELL_BYTES

#define DRAGON_CLOUD_TRAIL_CELL_BYTES   (24 * 39)

bytes in each trail copy

Definition at line 9 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().

◆ DRAGON_CLOUD_FIRST_EMBER

#define DRAGON_CLOUD_FIRST_EMBER   8

the first ember in work->particles

Definition at line 10 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().

◆ DRAGON_CLOUD_FIRST_FLASH

#define DRAGON_CLOUD_FIRST_FLASH   48

the first flash in work->particles

Definition at line 11 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().

◆ DRAGON_CLOUD_TRAIL_CELLS

#define DRAGON_CLOUD_TRAIL_CELLS   0x1680

the trail picture in the sheet

Definition at line 12 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().

◆ DRAGON_CLOUD_PUFF_CELLS

#define DRAGON_CLOUD_PUFF_CELLS   0x3c00

the puff pictures in the sheet

Definition at line 13 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().

◆ DRAGON_CLOUD_PUFFS

#define DRAGON_CLOUD_PUFFS   8

puffs, particles 0 to 7

Definition at line 14 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().

◆ DRAGON_CLOUD_EMBERS

#define DRAGON_CLOUD_EMBERS   40

embers, from FIRST_EMBER

Definition at line 15 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().

◆ DRAGON_CLOUD_FLASHES

#define DRAGON_CLOUD_FLASHES   16

flashes, from FIRST_FLASH

Definition at line 16 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().

◆ DRAGON_CLOUD_DRAW_PUFF

#define DRAGON_CLOUD_DRAW_PUFF ( blit,
canvas,
sheet,
cell,
x,
y )
Value:
blit(canvas, \
#define DRAGON_CLOUD_PUFF_CELLS
the puff pictures in the sheet
u16 gBattleFx_PuffArcCells[]
u8 gBattleFx_PuffArcCellHeights[]
u8 gBattleFx_PuffArcCellWidths[]

Draws puff picture cell of sheet on canvas at (x, y) with blit, sized by the puff tables.

Definition at line 20 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().

Function Documentation

◆ BattleFx_RunDragonCloud()

void BattleFx_RunDragonCloud ( struct BattleEffectArgument * effect)

A flame leaves the user along a stored path with a fading trail of 19 copies behind it, then strikes the first target on DRAGON_CLOUD_STRIKE_FRAME and bursts into embers and flashes.

Abilities: Dragon Cloud (kind 49).

The trail's last nine copies are darker versions of the trail picture, each DRAGON_CLOUD_TRAIL_CELL_BYTES long. The camera turns over the first 64 of the DRAGON_CLOUD_FRAMES frames:

0 to 17 a pair of puffs, one mirrored, bursts in front of the user 18 to 58 the flame follows its stored path 50 the first target flashes, the screen shakes and eight puffs rise in an arc 78 to 83 the flame dives in again 83 the target is struck; embers and flashes burst from it

Definition at line 41 of file dragon_cloud.c.

Referenced by BattleFx_RunDragonCloud().