Alchemy
Loading...
Searching...
No Matches

condemn.c File Reference

Condemn. More...

Go to the source code of this file.

Macros

#define CONDEMN_FRAMES   132
#define CONDEMN_BREAK_FRAME   88
 the panel breaks in a white flash
#define CONDEMN_BOUNCE_FRAME   120
 the falling target bounces
#define CONDEMN_PANEL_X(column, stage)
 gCondemn_PanelX and _PanelY have seven stages for each column and row.
#define CONDEMN_PANEL_Y(row, stage)

Functions

void BattleFx_RunCondemn (struct BattleEffectArgument *effect)
 A tall panel (57x98) swings across the screen three times, each pass fading out through a ripple, the last over the first target; on frame 88 it shatters in a white flash into a burst of larger pieces and the target is knocked back, bouncing on frame 120.

Detailed Description

Condemn.

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

Definition in file condemn.c.

Macro Definition Documentation

◆ CONDEMN_FRAMES

#define CONDEMN_FRAMES   132

Definition at line 7 of file condemn.c.

Referenced by BattleFx_RunCondemn().

◆ CONDEMN_BREAK_FRAME

#define CONDEMN_BREAK_FRAME   88

the panel breaks in a white flash

Definition at line 8 of file condemn.c.

Referenced by BattleFx_RunCondemn().

◆ CONDEMN_BOUNCE_FRAME

#define CONDEMN_BOUNCE_FRAME   120

the falling target bounces

Definition at line 9 of file condemn.c.

Referenced by BattleFx_RunCondemn().

◆ CONDEMN_PANEL_X

#define CONDEMN_PANEL_X ( column,
stage )
Value:
gCondemn_PanelX[(column)][(stage)]
u8 gCondemn_PanelX[][7]
Where each stage of the panel is drawn: seven x positions for each side of the field,...

gCondemn_PanelX and _PanelY have seven stages for each column and row.

Definition at line 12 of file condemn.c.

Referenced by BattleFx_RunCondemn().

◆ CONDEMN_PANEL_Y

#define CONDEMN_PANEL_Y ( row,
stage )
Value:
gCondemn_PanelY[(row)][(stage)]
u8 gCondemn_PanelY[][7]

Definition at line 13 of file condemn.c.

Referenced by BattleFx_RunCondemn().

Function Documentation

◆ BattleFx_RunCondemn()

void BattleFx_RunCondemn ( struct BattleEffectArgument * effect)

A tall panel (57x98) swings across the screen three times, each pass fading out through a ripple, the last over the first target; on frame 88 it shatters in a white flash into a burst of larger pieces and the target is knocked back, bouncing on frame 120.

Abilities: Condemn (kind 40).

The effect layer ripples throughout. 132 frames.

Opens the tiled canvas (BattleFx_BeginTiledCanvas) and adds BattleFx_ArmBg2AffineHBlankDma to feed work->bg2xLines to BG2X; decodes the burst's pieces into Ram_MapCellBuffer; moves the target's object; and reloads the battle backdrop on BG1 before it closes the layer. It never calls EFFECT_SHOW_DAMAGE, and leaves the flash timers alone.

Definition at line 29 of file condemn.c.

Referenced by BattleFx_RunCondemn().