Alchemy
Loading...
Searching...
No Matches

cybele.c File Reference

The Cybele summon. More...

Go to the source code of this file.

Macros

#define CYBELE_FRAMES   366
#define CYBELE_CHIP_COUNT   48
 chips thrown by the thorns
#define CYBELE_VINES   10
 vines drawn
#define CYBELE_BLAST_CELLS   0x1680
 the blast pictures, after the yellow ring
#define CYBELE_FIRST_SPARK   16
 the first spark in work->particles
#define CYBELE_FIRST_THORN   32
 the first thorn in work->particles
#define CYBELE_FIRST_CHIP   16
 the first chip in work->particles
#define CYBELE_EMBER_CELL   6
 the ember picture in gCybele_EmberOffsets

Functions

void BattleFx_RunCybele (struct BattleEffectArgument *effect)
 Thorn vines: thorns fly in from the right, vines grow out of the ground and lift the targets while sparks flash around them, the picture dissolves pixel by pixel, and the targets drop and explode.

Detailed Description

The Cybele summon.

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

Definition in file cybele.c.

Macro Definition Documentation

◆ CYBELE_FRAMES

#define CYBELE_FRAMES   366

Definition at line 13 of file cybele.c.

Referenced by BattleFx_RunCybele().

◆ CYBELE_CHIP_COUNT

#define CYBELE_CHIP_COUNT   48

chips thrown by the thorns

Definition at line 14 of file cybele.c.

Referenced by BattleFx_RunCybele().

◆ CYBELE_VINES

#define CYBELE_VINES   10

vines drawn

Definition at line 15 of file cybele.c.

Referenced by BattleFx_RunCybele().

◆ CYBELE_BLAST_CELLS

#define CYBELE_BLAST_CELLS   0x1680

the blast pictures, after the yellow ring

Definition at line 16 of file cybele.c.

Referenced by BattleFx_RunCybele().

◆ CYBELE_FIRST_SPARK

#define CYBELE_FIRST_SPARK   16

the first spark in work->particles

Definition at line 17 of file cybele.c.

Referenced by BattleFx_RunCybele().

◆ CYBELE_FIRST_THORN

#define CYBELE_FIRST_THORN   32

the first thorn in work->particles

Definition at line 18 of file cybele.c.

Referenced by BattleFx_RunCybele().

◆ CYBELE_FIRST_CHIP

#define CYBELE_FIRST_CHIP   16

the first chip in work->particles

Definition at line 19 of file cybele.c.

Referenced by BattleFx_RunCybele().

◆ CYBELE_EMBER_CELL

#define CYBELE_EMBER_CELL   6

the ember picture in gCybele_EmberOffsets

Definition at line 20 of file cybele.c.

Referenced by BattleFx_RunCybele().

Function Documentation

◆ BattleFx_RunCybele()

void BattleFx_RunCybele ( struct BattleEffectArgument * effect)

Thorn vines: thorns fly in from the right, vines grow out of the ground and lift the targets while sparks flash around them, the picture dissolves pixel by pixel, and the targets drop and explode.

Abilities: Cybele (scene kind 5).

366 frames:

  • 0 to 127: the formation objects drop in, landing on frame 31; from 72 a thorn flies in from the right each frame.
  • 128 to 224: vines grow out of the ground, shaking the screen, while chips fly; sparks flash around the targets, which rise from 161.
  • 224 to 247: the first 64 background colours fade to grey.
  • 233 on: the canvas dissolves from the top, two rows a frame.
  • 286 on: the targets drop, 5 frames apart.
  • 302 on: each target is hit 16 frames after it drops and bursts into a blast and embers.

Pressing A or B between frames 191 and 285 skips to the drop. At the end the battle shows the damage and an impact burst (BattleFx_RunImpactBurst) explodes at the formation.

Besides the canvas and work->particles (above), it writes the dissolve order into the first 1024 bytes of Ram_MapCellBuffer, greys the first 64 background colours, lifts and drops the targets' objects (their y and gravity), and sets REG_BG2X, REG_BG2PA, REG_BLDCNT and work->shakeFrames. It spawns eight formation objects and releases them, the transfer callback and the blitters before it closes the canvas layer.

Definition at line 50 of file cybele.c.

Referenced by BattleFx_RunCybele(), and BattleFx_RunSceneEffect().