Skip to Content
The Alchemy Project

include/battle/battle_sprites.h

Each enemy's battle sprite and how it attacks and falls, and the summons.

Included by battle_internal.h, battle_sprites.c, window_internal.h and game.h.

Structures

NameDescription
structBATTLE_SPR_DEFINITIONAn enemy class's battle sprite: its animation, size, attack effect, palette and defeat-sound kind.
structSUMMON_DEFINITIONA summon: its name and the Djinn of each element it needs.

Enumerations

NameDescription
enumATTACK_EFFECT { ATTACK_EFFECT_NONE, ATTACK_EFFECT_SLASH, ATTACK_EFFECT_CLAW, … }A class's plain attack (BATTLE_SPR_DEFINITION.attackEffect), which btEffectRunByIdRange plays: btEffectRunAttackSlash's beam from the attacker and the target's recoil, or the canvas burst.
enumDEFEAT_SND { DEFEAT_SOUND_ENEMY_CRY, DEFEAT_SOUND_BEAST_CRY, DEFEAT_SOUND … }A fallen class's cry (BATTLE_SPR_DEFINITION.defeatSound): BattlePlayback plays SE_ENEMY_CRY plus it, or one less (never below SE_ENEMY_CRY) when the playback's flags are set.

Variables

NameDescription
extern BATTLE_SPR_DEFINITIONBattleSprites []Each enemy's battle sprite and how it attacks and falls, by enemy id.

Description

Each enemy's battle sprite and how it attacks and falls, and the summons.

Enumerations in detail

ATTACK_EFFECT

enum ATTACK_EFFECT

A class's plain attack (BATTLE_SPR_DEFINITION.attackEffect), which btEffectRunByIdRange plays: btEffectRunAttackSlash's beam from the attacker and the target's recoil, or the canvas burst.

EnumeratorValueDescription
ATTACK_EFFECT_NONEnone set: played as ATTACK_EFFECT_SLASH
ATTACK_EFFECT_SLASHa blue arc; the target is nudged
ATTACK_EFFECT_CLAWthree blue arcs; the target is nudged
ATTACK_EFFECT_THRUSTa beam reaching further each picture
ATTACK_EFFECT_WAVEa wave, played backwards
ATTACK_EFFECT_RISING_SLASHthe arc upside down; the target hops
ATTACK_EFFECT_RISING_SLASH_LOWas ATTACK_EFFECT_RISING_SLASH, drawn 16 pixels lower
ATTACK_EFFECT_HURLno beam; the target is hurled (KNOCKBACK_HURL)
ATTACK_EFFECT_SHOVEno beam; the target is pushed to 150 percent
ATTACK_EFFECT_BLOWno beam; the target is nudged
ATTACK_EFFECT_BURSTbtEffectRunBallAttack's small ball

Definition at line 13 of file battle_sprites.h.

DEFEAT_SND

enum DEFEAT_SND

A fallen class's cry (BATTLE_SPR_DEFINITION.defeatSound): BattlePlayback plays SE_ENEMY_CRY plus it, or one less (never below SE_ENEMY_CRY) when the playback's flags are set.

EnumeratorValueDescription
DEFEAT_SOUND_ENEMY_CRYSE_ENEMY_CRY
DEFEAT_SOUND_BEAST_CRYSE_BEAST_CRY
DEFEAT_SOUND_BOSS_ROARSE_BOSS_ROAR
DEFEAT_SOUND_MONSTER_ROARSE_MONSTER_ROAR
DEFEAT_SOUND_UNUSED_CRYSE_UNUSED_DEFEAT_CRY; no class has it

Definition at line 34 of file battle_sprites.h.