From 152fb72933bbe7326d6172f3e2c8659346e8acc7 Mon Sep 17 00:00:00 2001 From: ElectroDeoxys Date: Tue, 2 Feb 2021 10:06:15 +0000 Subject: Identify Duel Animation structs --- src/constants/animation_constants.asm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/constants/animation_constants.asm') diff --git a/src/constants/animation_constants.asm b/src/constants/animation_constants.asm index 44faa75..78988ca 100644 --- a/src/constants/animation_constants.asm +++ b/src/constants/animation_constants.asm @@ -118,3 +118,15 @@ const DUEL_ANIM_SHAKE1 ; $fa const DUEL_ANIM_SHAKE2 ; $fb const DUEL_ANIM_SHAKE3 ; $fc + + ; Duel Anim Struct constants + const_def + const DUEL_ANIM_STRUCT_ID ; $0 + const DUEL_ANIM_STRUCT_SCREEN ; $1 + const DUEL_ANIM_STRUCT_DUELIST_SIDE ; $2 + const DUEL_ANIM_STRUCT_LOCATION_PARAM ; $3 + const DUEL_ANIM_STRUCT_DAMAGE ; $4 +const_value = const_value + 1 + const DUEL_ANIM_STRUCT_UNKNOWN_2 ; $6 + const DUEL_ANIM_STRUCT_BANK ; $7 +DUEL_ANIM_STRUCT_SIZE EQU const_value -- cgit v1.2.3 From e8b079962bdee30fc5a36994ef928cdf47609898 Mon Sep 17 00:00:00 2001 From: ElectroDeoxys Date: Tue, 2 Feb 2021 16:01:10 +0000 Subject: Document screen animations --- src/constants/animation_constants.asm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/constants/animation_constants.asm') diff --git a/src/constants/animation_constants.asm b/src/constants/animation_constants.asm index 78988ca..75c82d8 100644 --- a/src/constants/animation_constants.asm +++ b/src/constants/animation_constants.asm @@ -113,6 +113,13 @@ const DUEL_ANIM_DUEL_DRAW ; $5f const DUEL_ANIM_96 ; $60 + const DUEL_ANIM_SMALL_SHAKE_X ; $61 + const DUEL_ANIM_BIG_SHAKE_X ; $62 + const DUEL_ANIM_SMALL_SHAKE_Y ; $63 + const DUEL_ANIM_BIG_SHAKE_Y ; $64 + const DUEL_ANIM_FLASH ; $65 + const DUEL_ANIM_DISTORT ; $66 + ; Special animations const_def $fa const DUEL_ANIM_SHAKE1 ; $fa -- cgit v1.2.3 From ab9b857e68af66e8bc37628bd76dbba337971a15 Mon Sep 17 00:00:00 2001 From: ElectroDeoxys Date: Tue, 2 Feb 2021 23:31:36 +0000 Subject: More animation-related functions --- src/constants/animation_constants.asm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/constants/animation_constants.asm') diff --git a/src/constants/animation_constants.asm b/src/constants/animation_constants.asm index 75c82d8..80c425d 100644 --- a/src/constants/animation_constants.asm +++ b/src/constants/animation_constants.asm @@ -113,6 +113,10 @@ const DUEL_ANIM_DUEL_DRAW ; $5f const DUEL_ANIM_96 ; $60 +; animations passed this point are treated differently +DUEL_SPECIAL_ANIMS EQU const_value + +DUEL_SCREEN_ANIMS EQU const_value const DUEL_ANIM_SMALL_SHAKE_X ; $61 const DUEL_ANIM_BIG_SHAKE_X ; $62 const DUEL_ANIM_SMALL_SHAKE_Y ; $63 @@ -120,6 +124,17 @@ const DUEL_ANIM_FLASH ; $65 const DUEL_ANIM_DISTORT ; $66 + const_def $96 + const DUEL_ANIM_150 ; $96 + const DUEL_ANIM_PRINT_DAMAGE ; $97 + const DUEL_ANIM_UPDATE_HUD ; $98 + const DUEL_ANIM_153 ; $99 + const DUEL_ANIM_154 ; $9a + const DUEL_ANIM_155 ; $9b + const DUEL_ANIM_156 ; $9c + const DUEL_ANIM_157 ; $9d + const DUEL_ANIM_158 ; $9e + ; Special animations const_def $fa const DUEL_ANIM_SHAKE1 ; $fa -- cgit v1.2.3