Skip to Content
The Alchemy Project

struct BATTLE_SPR_DEFINITION

A unit's row of BattleSprites: an enemy's battle sprite, size, attack effect, palette and defeat-sound kind.

Declared in battle_sprites.h.

Fields

NameDescription
Uint16animationthe enemy's battle sprite
Uint8isSmall : 11 for a small enemy, which takes one sprite slot
Uint8attackEffect : 4attack beam, BEAM_KIND (battle_effect_beams.c); 0 reads as 1
Uint8attackHop : 3how high it hops as it runs up to attack, in pixels
Uint8heavyImpact : 11 for an enemy whose beam blow lands heavily
Uint8palette : 4the sprite's palette
Uint8defeatSound : 3the defeat-sound kind; above 4 reads as none
Uint8effectHeighteffect draw height over enemy, in pixels; 0 for size's default
Uint8reserved [3]0 in every row

Description

A unit's row of BattleSprites: an enemy's battle sprite, size, attack effect, palette and defeat-sound kind.

struct BATTLE_SPR_DEFINITION

Referenced by BattleSprites.

Definition at line 12 of file battle_sprites.h.

Fields in detail

animation

Uint16 animation

the enemy's battle sprite

isSmall

Uint8 isSmall : 1

1 for a small enemy, which takes one sprite slot

attackEffect

Uint8 attackEffect : 4

attack beam, BEAM_KIND (battle_effect_beams.c); 0 reads as 1

attackHop

Uint8 attackHop : 3

how high it hops as it runs up to attack, in pixels

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

the defeat-sound kind; above 4 reads as none

effectHeight

Uint8 effectHeight

effect draw height over enemy, in pixels; 0 for size's default

reserved

Uint8 reserved[3]

0 in every row