Skip to Content
The Alchemy Project

struct BATTLE_SPR_DEFINITION

An enemy class's battle sprite: its animation, size, attack effect, palette and defeat-sound kind.

Declared in battle_sprites.h.

Fields

NameDescription
Uint16animationThe class's battle sprite.
Uint8isSmall : 11 for a small enemy, which takes one sprite slot.
Uint8attackEffect : 4ATTACK_EFFECT; ATTACK_EFFECT_NONE reads as ATTACK_EFFECT_SLASH.
Uint8attackHop : 3The attack-hop height.
Uint8heavyImpact : 11 for an enemy whose beam blow lands heavily.
Uint8palette : 4The sprite's palette.
Uint8defeatSound : 3DEFEAT_SND; above 4 reads as none.
Uint8effectHeightThe height a battle effect is drawn at over the enemy, in pixels; 0 for its size's default.
Uint8reserved [3]0 in every row.

Description

An enemy class's battle sprite: its animation, size, attack effect, palette and defeat-sound kind.

struct BATTLE_SPR_DEFINITION

Referenced by BattleSprites.

Definition at line 45 of file battle_sprites.h.

Fields in detail

animation

Uint16 animation

The class's battle sprite.

isSmall

Uint8 isSmall : 1

1 for a small enemy, which takes one sprite slot.

attackEffect

Uint8 attackEffect : 4

ATTACK_EFFECT; ATTACK_EFFECT_NONE reads as ATTACK_EFFECT_SLASH.

attackHop

Uint8 attackHop : 3

The attack-hop height.

heavyImpact

Uint8 heavyImpact : 1

1 for an enemy whose beam blow lands heavily.

palette

Uint8 palette : 4

The sprite's palette.

defeatSound

Uint8 defeatSound : 3

DEFEAT_SND; above 4 reads as none.

effectHeight

Uint8 effectHeight

The height a battle effect is drawn at over the enemy, in pixels; 0 for its size's default.

reserved

Uint8 reserved[3]

0 in every row.