summaryrefslogtreecommitdiff
path: root/constants
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2018-11-21 23:44:31 +0100
committermid-kid <esteve.varela@gmail.com>2018-11-21 23:44:31 +0100
commit2746288030ff3bd4febc43c1c9fe8a203272b927 (patch)
treea81ff512836e874de7aa61cf19aed754ae475425 /constants
parent32833adef3694b3e599b41f8493a380e353939b0 (diff)
Define ANIM_GFX for PLAYER and ENEMY
These are used where the head or the feet of the player/enemy have to be moved in an animation, and shouldn't overlap. These aren't actual GFX and should be loaded with the proper commands, and they're always loaded at the end of the VRAM area. Furthermore, I've defined BATTLEANIM_BASE_TILE, which is the tile from which battle animation graphics may start to load. This value was picked to make sure at least an entire pokemon pic fits in the area before it, even though it doesn't seem very used...
Diffstat (limited to 'constants')
-rw-r--r--constants/battle_anim_constants.asm5
1 files changed, 5 insertions, 0 deletions
diff --git a/constants/battle_anim_constants.asm b/constants/battle_anim_constants.asm
index 58e19462e..87e9e0cae 100644
--- a/constants/battle_anim_constants.asm
+++ b/constants/battle_anim_constants.asm
@@ -26,6 +26,9 @@
const BATTLEANIMSTRUCT_17
BATTLEANIMSTRUCT_LENGTH EQU const_value
+; Start tile for battle animation graphics
+BATTLEANIM_BASE_TILE EQU 7 * 7 ; Maximum size of a pokemon picture
+
; BattleAnimObjects indexes (see data/battle_anims/objects.asm)
const_def
const ANIM_OBJ_00
@@ -804,6 +807,8 @@ BATTLEANIMSTRUCT_LENGTH EQU const_value
const ANIM_GFX_ANGELS
const ANIM_GFX_WAVE
const ANIM_GFX_AEROBLAST
+ const ANIM_GFX_PLAYER
+ const ANIM_GFX_ENEMY
; battle_bg_effect struct members (see macros/wram.asm)
const_def