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
| Name | Description | |
|---|---|---|
Uint16 | animation | the enemy's battle sprite |
Uint8 | isSmall : 1 | 1 for a small enemy, which takes one sprite slot |
Uint8 | attackEffect : 4 | attack beam, BEAM_KIND (battle_effect_beams.c); 0 reads as 1 |
Uint8 | attackHop : 3 | how high it hops as it runs up to attack, in pixels |
Uint8 | heavyImpact : 1 | 1 for an enemy whose beam blow lands heavily |
Uint8 | palette : 4 | the sprite's palette |
Uint8 | defeatSound : 3 | the defeat-sound kind; above 4 reads as none |
Uint8 | effectHeight | effect draw height over enemy, in pixels; 0 for size's default |
Uint8 | reserved [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