shithub: pokered

Download patch

ref: f53341efa170a322392e5d9cf094128a52041b1d
parent: ef9cb892fdee558305071fe9d22c0f633b199f38
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Fri Jul 17 11:16:54 EDT 2020

Define constants for subanimations' base coords and frame block modes

--- a/constants/move_animation_constants.asm
+++ b/constants/move_animation_constants.asm
@@ -264,3 +264,191 @@
 	const FRAMEBLOCK_77
 	const FRAMEBLOCK_78
 	const FRAMEBLOCK_79
+
+; base coordinates that are part of subanimations
+	const_def
+	const BASECOORD_00
+	const BASECOORD_01
+	const BASECOORD_02
+	const BASECOORD_03
+	const BASECOORD_04
+	const BASECOORD_05
+	const BASECOORD_06
+	const BASECOORD_07
+	const BASECOORD_08
+	const BASECOORD_09
+	const BASECOORD_0A
+	const BASECOORD_0B
+	const BASECOORD_0C
+	const BASECOORD_0D
+	const BASECOORD_0E
+	const BASECOORD_0F
+	const BASECOORD_10
+	const BASECOORD_11
+	const BASECOORD_12
+	const BASECOORD_13
+	const BASECOORD_14
+	const BASECOORD_15
+	const BASECOORD_16
+	const BASECOORD_17
+	const BASECOORD_18
+	const BASECOORD_19
+	const BASECOORD_1A
+	const BASECOORD_1B
+	const BASECOORD_1C
+	const BASECOORD_1D
+	const BASECOORD_1E
+	const BASECOORD_1F
+	const BASECOORD_20
+	const BASECOORD_21
+	const BASECOORD_22
+	const BASECOORD_23
+	const BASECOORD_24
+	const BASECOORD_25
+	const BASECOORD_26
+	const BASECOORD_27
+	const BASECOORD_28
+	const BASECOORD_29
+	const BASECOORD_2A
+	const BASECOORD_2B
+	const BASECOORD_2C
+	const BASECOORD_2D
+	const BASECOORD_2E
+	const BASECOORD_2F
+	const BASECOORD_30
+	const BASECOORD_31
+	const BASECOORD_32
+	const BASECOORD_33
+	const BASECOORD_34
+	const BASECOORD_35
+	const BASECOORD_36
+	const BASECOORD_37
+	const BASECOORD_38
+	const BASECOORD_39
+	const BASECOORD_3A
+	const BASECOORD_3B
+	const BASECOORD_3C
+	const BASECOORD_3D
+	const BASECOORD_3E
+	const BASECOORD_3F
+	const BASECOORD_40
+	const BASECOORD_41
+	const BASECOORD_42
+	const BASECOORD_43
+	const BASECOORD_44
+	const BASECOORD_45
+	const BASECOORD_46
+	const BASECOORD_47
+	const BASECOORD_48
+	const BASECOORD_49
+	const BASECOORD_4A
+	const BASECOORD_4B
+	const BASECOORD_4C
+	const BASECOORD_4D
+	const BASECOORD_4E
+	const BASECOORD_4F
+	const BASECOORD_50
+	const BASECOORD_51
+	const BASECOORD_52
+	const BASECOORD_53
+	const BASECOORD_54
+	const BASECOORD_55
+	const BASECOORD_56
+	const BASECOORD_57
+	const BASECOORD_58
+	const BASECOORD_59
+	const BASECOORD_5A
+	const BASECOORD_5B
+	const BASECOORD_5C
+	const BASECOORD_5D
+	const BASECOORD_5E
+	const BASECOORD_5F
+	const BASECOORD_60
+	const BASECOORD_61
+	const BASECOORD_62
+	const BASECOORD_63
+	const BASECOORD_64
+	const BASECOORD_65
+	const BASECOORD_66
+	const BASECOORD_67
+	const BASECOORD_68
+	const BASECOORD_69
+	const BASECOORD_6A
+	const BASECOORD_6B
+	const BASECOORD_6C
+	const BASECOORD_6D
+	const BASECOORD_6E
+	const BASECOORD_6F
+	const BASECOORD_70
+	const BASECOORD_71
+	const BASECOORD_72
+	const BASECOORD_73
+	const BASECOORD_74
+	const BASECOORD_75
+	const BASECOORD_76
+	const BASECOORD_77
+	const BASECOORD_78
+	const BASECOORD_79
+	const BASECOORD_7A
+	const BASECOORD_7B
+	const BASECOORD_7C
+	const BASECOORD_7D
+	const BASECOORD_7E
+	const BASECOORD_7F
+	const BASECOORD_80
+	const BASECOORD_81
+	const BASECOORD_82
+	const BASECOORD_83
+	const BASECOORD_84
+	const BASECOORD_85
+	const BASECOORD_86
+	const BASECOORD_87
+	const BASECOORD_88
+	const BASECOORD_89
+	const BASECOORD_8A
+	const BASECOORD_8B
+	const BASECOORD_8C
+	const BASECOORD_8D
+	const BASECOORD_8E
+	const BASECOORD_8F
+	const BASECOORD_90
+	const BASECOORD_91
+	const BASECOORD_92
+	const BASECOORD_93
+	const BASECOORD_94
+	const BASECOORD_95
+	const BASECOORD_96
+	const BASECOORD_97
+	const BASECOORD_98
+	const BASECOORD_99
+	const BASECOORD_9A
+	const BASECOORD_9B
+	const BASECOORD_9C
+	const BASECOORD_9D
+	const BASECOORD_9E
+	const BASECOORD_9F
+	const BASECOORD_A0
+	const BASECOORD_A1
+	const BASECOORD_A2
+	const BASECOORD_A3
+	const BASECOORD_A4
+	const BASECOORD_A5
+	const BASECOORD_A6
+	const BASECOORD_A7
+	const BASECOORD_A8
+	const BASECOORD_A9
+	const BASECOORD_AA
+	const BASECOORD_AB
+	const BASECOORD_AC
+	const BASECOORD_AD
+	const BASECOORD_AE
+	const BASECOORD_AF
+	const BASECOORD_B0
+
+; frame block modes that are part of subanimations
+	const_def
+	const FRAMEBLOCKMODE_00
+	const FRAMEBLOCKMODE_01
+	const FRAMEBLOCKMODE_02
+	const FRAMEBLOCKMODE_03
+	const FRAMEBLOCKMODE_04
--- a/data/battle_anims/base_coords.asm
+++ b/data/battle_anims/base_coords.asm
@@ -1,178 +1,178 @@
 FrameBlockBaseCoords:
-	db $10, $68
-	db $10, $70
-	db $10, $78
-	db $10, $80
-	db $10, $88
-	db $10, $90
-	db $10, $98
-	db $18, $68
-	db $18, $70
-	db $18, $78
-	db $34, $28
-	db $18, $80
-	db $18, $88
-	db $18, $98
-	db $20, $68
-	db $20, $70
-	db $20, $78
-	db $20, $80
-	db $20, $88
-	db $20, $90
-	db $20, $98
-	db $28, $68
-	db $28, $70
-	db $28, $78
-	db $28, $80
-	db $28, $88
-	db $30, $68
-	db $30, $70
-	db $30, $78
-	db $30, $80
-	db $30, $90
-	db $30, $98
-	db $38, $68
-	db $38, $78
-	db $38, $80
-	db $38, $88
-	db $40, $68
-	db $40, $70
-	db $40, $78
-	db $40, $80
-	db $40, $88
-	db $40, $98
-	db $10, $60
-	db $18, $60
-	db $20, $60
-	db $28, $60
-	db $30, $60
-	db $40, $60
-	db $58, $28
-	db $43, $38
-	db $33, $48
-	db $20, $58
-	db $32, $78
-	db $58, $58
-	db $2C, $6C
-	db $34, $80
-	db $48, $70
-	db $42, $36
-	db $38, $44
-	db $40, $52
-	db $48, $60
-	db $3E, $6E
-	db $28, $7C
-	db $28, $8A
-	db $50, $3C
-	db $48, $50
-	db $40, $64
-	db $38, $38
-	db $50, $30
-	db $50, $38
-	db $50, $40
-	db $50, $48
-	db $50, $50
-	db $48, $58
-	db $50, $44
-	db $48, $48
-	db $48, $4C
-	db $40, $50
-	db $40, $54
-	db $38, $58
-	db $38, $5C
-	db $30, $64
-	db $48, $40
-	db $48, $39
-	db $24, $88
-	db $24, $70
-	db $1C, $70
-	db $1C, $88
-	db $34, $68
-	db $34, $88
-	db $68, $50
-	db $60, $50
-	db $68, $60
-	db $58, $50
-	db $60, $60
-	db $68, $40
-	db $40, $40
-	db $38, $40
-	db $0B, $60
-	db $44, $48
-	db $40, $14
-	db $48, $1C
-	db $50, $24
-	db $4C, $24
-	db $10, $62
-	db $12, $62
-	db $12, $60
-	db $20, $72
-	db $22, $72
-	db $22, $70
-	db $28, $62
-	db $50, $0A
-	db $52, $0A
-	db $38, $30
-	db $40, $48
-	db $30, $48
-	db $40, $30
-	db $30, $40
-	db $38, $48
-	db $40, $4A
-	db $48, $4B
-	db $50, $4C
-	db $58, $4D
-	db $60, $4D
-	db $68, $4D
-	db $38, $10
-	db $50, $10
-	db $38, $28
-	db $48, $18
-	db $40, $20
-	db $48, $20
-	db $40, $3C
-	db $38, $50
-	db $28, $64
-	db $1C, $90
-	db $24, $80
-	db $2C, $70
-	db $30, $38
-	db $10, $50
-	db $3C, $40
-	db $40, $58
-	db $30, $58
-	db $58, $48
-	db $50, $58
-	db $48, $68
-	db $40, $18
-	db $28, $58
-	db $40, $38
-	db $48, $38
-	db $08, $70
-	db $44, $1C
-	db $3C, $58
-	db $38, $60
-	db $08, $60
-	db $38, $70
-	db $38, $6C
-	db $38, $64
-	db $1C, $74
-	db $2E, $74
-	db $34, $50
-	db $2F, $60
-	db $31, $70
-	db $4C, $30
-	db $3B, $40
-	db $2D, $50
-	db $26, $60
-	db $2D, $70
-	db $28, $50
-	db $1E, $60
-	db $29, $70
-	db $16, $60
-	db $14, $58
-	db $12, $54
-	db $14, $50
-	db $18, $4C
-	db $1C, $48
-	db $48, $28
+	db $10, $68 ; BASECOORD_00
+	db $10, $70 ; BASECOORD_01
+	db $10, $78 ; BASECOORD_02
+	db $10, $80 ; BASECOORD_03
+	db $10, $88 ; BASECOORD_04
+	db $10, $90 ; BASECOORD_05
+	db $10, $98 ; BASECOORD_06
+	db $18, $68 ; BASECOORD_07
+	db $18, $70 ; BASECOORD_08
+	db $18, $78 ; BASECOORD_09
+	db $34, $28 ; BASECOORD_0A
+	db $18, $80 ; BASECOORD_0B
+	db $18, $88 ; BASECOORD_0C
+	db $18, $98 ; BASECOORD_0D
+	db $20, $68 ; BASECOORD_0E
+	db $20, $70 ; BASECOORD_0F
+	db $20, $78 ; BASECOORD_10
+	db $20, $80 ; BASECOORD_11
+	db $20, $88 ; BASECOORD_12
+	db $20, $90 ; BASECOORD_13
+	db $20, $98 ; BASECOORD_14
+	db $28, $68 ; BASECOORD_15
+	db $28, $70 ; BASECOORD_16
+	db $28, $78 ; BASECOORD_17
+	db $28, $80 ; BASECOORD_18
+	db $28, $88 ; BASECOORD_19
+	db $30, $68 ; BASECOORD_1A
+	db $30, $70 ; BASECOORD_1B
+	db $30, $78 ; BASECOORD_1C
+	db $30, $80 ; BASECOORD_1D
+	db $30, $90 ; BASECOORD_1E
+	db $30, $98 ; BASECOORD_1F
+	db $38, $68 ; BASECOORD_20
+	db $38, $78 ; BASECOORD_21
+	db $38, $80 ; BASECOORD_22
+	db $38, $88 ; BASECOORD_23
+	db $40, $68 ; BASECOORD_24
+	db $40, $70 ; BASECOORD_25
+	db $40, $78 ; BASECOORD_26
+	db $40, $80 ; BASECOORD_27
+	db $40, $88 ; BASECOORD_28
+	db $40, $98 ; BASECOORD_29
+	db $10, $60 ; BASECOORD_2A
+	db $18, $60 ; BASECOORD_2B
+	db $20, $60 ; BASECOORD_2C
+	db $28, $60 ; BASECOORD_2D
+	db $30, $60 ; BASECOORD_2E
+	db $40, $60 ; BASECOORD_2F
+	db $58, $28 ; BASECOORD_30
+	db $43, $38 ; BASECOORD_31
+	db $33, $48 ; BASECOORD_32
+	db $20, $58 ; BASECOORD_33
+	db $32, $78 ; BASECOORD_34
+	db $58, $58 ; BASECOORD_35
+	db $2C, $6C ; BASECOORD_36
+	db $34, $80 ; BASECOORD_37
+	db $48, $70 ; BASECOORD_38
+	db $42, $36 ; BASECOORD_39
+	db $38, $44 ; BASECOORD_3A
+	db $40, $52 ; BASECOORD_3B
+	db $48, $60 ; BASECOORD_3C
+	db $3E, $6E ; BASECOORD_3D
+	db $28, $7C ; BASECOORD_3E
+	db $28, $8A ; BASECOORD_3F
+	db $50, $3C ; BASECOORD_40
+	db $48, $50 ; BASECOORD_41
+	db $40, $64 ; BASECOORD_42
+	db $38, $38 ; BASECOORD_43
+	db $50, $30 ; BASECOORD_44
+	db $50, $38 ; BASECOORD_45
+	db $50, $40 ; BASECOORD_46
+	db $50, $48 ; BASECOORD_47
+	db $50, $50 ; BASECOORD_48
+	db $48, $58 ; BASECOORD_49
+	db $50, $44 ; BASECOORD_4A
+	db $48, $48 ; BASECOORD_4B
+	db $48, $4C ; BASECOORD_4C
+	db $40, $50 ; BASECOORD_4D
+	db $40, $54 ; BASECOORD_4E
+	db $38, $58 ; BASECOORD_4F
+	db $38, $5C ; BASECOORD_50
+	db $30, $64 ; BASECOORD_51
+	db $48, $40 ; BASECOORD_52
+	db $48, $39 ; BASECOORD_53
+	db $24, $88 ; BASECOORD_54
+	db $24, $70 ; BASECOORD_55
+	db $1C, $70 ; BASECOORD_56
+	db $1C, $88 ; BASECOORD_57
+	db $34, $68 ; BASECOORD_58
+	db $34, $88 ; BASECOORD_59
+	db $68, $50 ; BASECOORD_5A
+	db $60, $50 ; BASECOORD_5B
+	db $68, $60 ; BASECOORD_5C
+	db $58, $50 ; BASECOORD_5D
+	db $60, $60 ; BASECOORD_5E
+	db $68, $40 ; BASECOORD_5F
+	db $40, $40 ; BASECOORD_60
+	db $38, $40 ; BASECOORD_61
+	db $0B, $60 ; BASECOORD_62
+	db $44, $48 ; BASECOORD_63
+	db $40, $14 ; BASECOORD_64
+	db $48, $1C ; BASECOORD_65
+	db $50, $24 ; BASECOORD_66
+	db $4C, $24 ; BASECOORD_67
+	db $10, $62 ; BASECOORD_68
+	db $12, $62 ; BASECOORD_69
+	db $12, $60 ; BASECOORD_6A
+	db $20, $72 ; BASECOORD_6B
+	db $22, $72 ; BASECOORD_6C
+	db $22, $70 ; BASECOORD_6D
+	db $28, $62 ; BASECOORD_6E
+	db $50, $0A ; BASECOORD_6F
+	db $52, $0A ; BASECOORD_70
+	db $38, $30 ; BASECOORD_71
+	db $40, $48 ; BASECOORD_72
+	db $30, $48 ; BASECOORD_73
+	db $40, $30 ; BASECOORD_74
+	db $30, $40 ; BASECOORD_75
+	db $38, $48 ; BASECOORD_76
+	db $40, $4A ; BASECOORD_77
+	db $48, $4B ; BASECOORD_78
+	db $50, $4C ; BASECOORD_79
+	db $58, $4D ; BASECOORD_7A
+	db $60, $4D ; BASECOORD_7B
+	db $68, $4D ; BASECOORD_7C
+	db $38, $10 ; BASECOORD_7D
+	db $50, $10 ; BASECOORD_7E
+	db $38, $28 ; BASECOORD_7F
+	db $48, $18 ; BASECOORD_80
+	db $40, $20 ; BASECOORD_81
+	db $48, $20 ; BASECOORD_82
+	db $40, $3C ; BASECOORD_83
+	db $38, $50 ; BASECOORD_84
+	db $28, $64 ; BASECOORD_85
+	db $1C, $90 ; BASECOORD_86
+	db $24, $80 ; BASECOORD_87
+	db $2C, $70 ; BASECOORD_88
+	db $30, $38 ; BASECOORD_89
+	db $10, $50 ; BASECOORD_8A
+	db $3C, $40 ; BASECOORD_8B
+	db $40, $58 ; BASECOORD_8C
+	db $30, $58 ; BASECOORD_8D
+	db $58, $48 ; BASECOORD_8E
+	db $50, $58 ; BASECOORD_8F
+	db $48, $68 ; BASECOORD_90
+	db $40, $18 ; BASECOORD_91
+	db $28, $58 ; BASECOORD_92
+	db $40, $38 ; BASECOORD_93
+	db $48, $38 ; BASECOORD_94
+	db $08, $70 ; BASECOORD_95
+	db $44, $1C ; BASECOORD_96
+	db $3C, $58 ; BASECOORD_97
+	db $38, $60 ; BASECOORD_98
+	db $08, $60 ; BASECOORD_99
+	db $38, $70 ; BASECOORD_9A
+	db $38, $6C ; BASECOORD_9B
+	db $38, $64 ; BASECOORD_9C
+	db $1C, $74 ; BASECOORD_9D
+	db $2E, $74 ; BASECOORD_9E
+	db $34, $50 ; BASECOORD_9F
+	db $2F, $60 ; BASECOORD_A0
+	db $31, $70 ; BASECOORD_A1
+	db $4C, $30 ; BASECOORD_A2
+	db $3B, $40 ; BASECOORD_A3
+	db $2D, $50 ; BASECOORD_A4
+	db $26, $60 ; BASECOORD_A5
+	db $2D, $70 ; BASECOORD_A6
+	db $28, $50 ; BASECOORD_A7
+	db $1E, $60 ; BASECOORD_A8
+	db $29, $70 ; BASECOORD_A9
+	db $16, $60 ; BASECOORD_AA
+	db $14, $58 ; BASECOORD_AB
+	db $12, $54 ; BASECOORD_AC
+	db $14, $50 ; BASECOORD_AD
+	db $18, $4C ; BASECOORD_AE
+	db $1C, $48 ; BASECOORD_AF
+	db $48, $28 ; BASECOORD_B0
--- a/data/battle_anims/subanimations.asm
+++ b/data/battle_anims/subanimations.asm
@@ -98,857 +98,857 @@
 
 Subanimation04:
 	subanim SUBANIMTYPE_HFLIP, 3
-	db FRAMEBLOCK_02, $1a, $00
-	db FRAMEBLOCK_02, $10, $00
-	db FRAMEBLOCK_02, $03, $00
+	db FRAMEBLOCK_02, BASECOORD_1A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_10, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_03, FRAMEBLOCKMODE_00
 
 Subanimation05:
 	subanim SUBANIMTYPE_HFLIP, 1
-	db FRAMEBLOCK_02, $10, $00
+	db FRAMEBLOCK_02, BASECOORD_10, FRAMEBLOCKMODE_00
 
 Subanimation08:
 	subanim SUBANIMTYPE_NORMAL, 11
-	db FRAMEBLOCK_03, $30, $00
-	db FRAMEBLOCK_03, $44, $00
-	db FRAMEBLOCK_03, $94, $00
-	db FRAMEBLOCK_03, $60, $00
-	db FRAMEBLOCK_03, $76, $00
-	db FRAMEBLOCK_03, $9f, $00
-	db FRAMEBLOCK_03, $8d, $00
-	db FRAMEBLOCK_03, $a0, $00
-	db FRAMEBLOCK_03, $1a, $00
-	db FRAMEBLOCK_03, $a1, $00
-	db FRAMEBLOCK_03, $34, $00
+	db FRAMEBLOCK_03, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_44, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_94, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_60, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_76, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_9F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_8D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_A0, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_1A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_A1, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_34, FRAMEBLOCKMODE_00
 
 Subanimation07:
 	subanim SUBANIMTYPE_NORMAL, 11
-	db FRAMEBLOCK_03, $30, $00
-	db FRAMEBLOCK_03, $a2, $00
-	db FRAMEBLOCK_03, $31, $00
-	db FRAMEBLOCK_03, $a3, $00
-	db FRAMEBLOCK_03, $32, $00
-	db FRAMEBLOCK_03, $a4, $00
-	db FRAMEBLOCK_03, $92, $00
-	db FRAMEBLOCK_03, $a5, $00
-	db FRAMEBLOCK_03, $15, $00
-	db FRAMEBLOCK_03, $a6, $00
-	db FRAMEBLOCK_03, $34, $00
+	db FRAMEBLOCK_03, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_A2, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_31, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_A3, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_32, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_A4, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_92, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_A5, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_15, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_A6, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_34, FRAMEBLOCKMODE_00
 
 Subanimation06:
 	subanim SUBANIMTYPE_NORMAL, 11
-	db FRAMEBLOCK_03, $30, $00
-	db FRAMEBLOCK_03, $a2, $00
-	db FRAMEBLOCK_03, $93, $00
-	db FRAMEBLOCK_03, $61, $00
-	db FRAMEBLOCK_03, $73, $00
-	db FRAMEBLOCK_03, $a7, $00
-	db FRAMEBLOCK_03, $33, $00
-	db FRAMEBLOCK_03, $a8, $00
-	db FRAMEBLOCK_03, $0e, $00
-	db FRAMEBLOCK_03, $a9, $00
-	db FRAMEBLOCK_03, $34, $00
+	db FRAMEBLOCK_03, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_A2, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_93, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_61, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_73, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_A7, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_33, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_A8, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_A9, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_34, FRAMEBLOCKMODE_00
 
 Subanimation09:
 	subanim SUBANIMTYPE_NORMAL, 4
-	db FRAMEBLOCK_03, $21, $04
-	db FRAMEBLOCK_04, $21, $04
-	db FRAMEBLOCK_03, $21, $04
-	db FRAMEBLOCK_05, $21, $04
+	db FRAMEBLOCK_03, BASECOORD_21, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_04, BASECOORD_21, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_03, BASECOORD_21, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_05, BASECOORD_21, FRAMEBLOCKMODE_04
 
 Subanimation0a:
 	subanim SUBANIMTYPE_HFLIP, 6
-	db FRAMEBLOCK_06, $1b, $00
-	db FRAMEBLOCK_07, $1b, $00
-	db FRAMEBLOCK_08, $36, $00
-	db FRAMEBLOCK_09, $36, $00
-	db FRAMEBLOCK_0A, $15, $00
-	db FRAMEBLOCK_0A, $15, $00
+	db FRAMEBLOCK_06, BASECOORD_1B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_07, BASECOORD_1B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_08, BASECOORD_36, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_09, BASECOORD_36, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0A, BASECOORD_15, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0A, BASECOORD_15, FRAMEBLOCKMODE_00
 
 Subanimation0b:
 	subanim SUBANIMTYPE_NORMAL, 4
-	db FRAMEBLOCK_01, $2d, $00
-	db FRAMEBLOCK_03, $2f, $00
-	db FRAMEBLOCK_03, $35, $00
-	db FRAMEBLOCK_03, $4d, $00
+	db FRAMEBLOCK_01, BASECOORD_2D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_2F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_35, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_4D, FRAMEBLOCKMODE_00
 
 Subanimation55:
 	subanim SUBANIMTYPE_HFLIP, 1
-	db FRAMEBLOCK_01, $9d, $00
+	db FRAMEBLOCK_01, BASECOORD_9D, FRAMEBLOCKMODE_00
 
 Subanimation11:
 	subanim SUBANIMTYPE_HFLIP, 12
-	db FRAMEBLOCK_0B, $26, $00
-	db FRAMEBLOCK_0C, $26, $00
-	db FRAMEBLOCK_0B, $26, $00
-	db FRAMEBLOCK_0C, $26, $00
-	db FRAMEBLOCK_0B, $28, $00
-	db FRAMEBLOCK_0C, $28, $00
-	db FRAMEBLOCK_0B, $28, $00
-	db FRAMEBLOCK_0C, $28, $00
-	db FRAMEBLOCK_0B, $27, $00
-	db FRAMEBLOCK_0C, $27, $00
-	db FRAMEBLOCK_0B, $27, $00
-	db FRAMEBLOCK_0C, $27, $00
+	db FRAMEBLOCK_0B, BASECOORD_26, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_26, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0B, BASECOORD_26, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_26, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0B, BASECOORD_28, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_28, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0B, BASECOORD_28, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_28, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0B, BASECOORD_27, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_27, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0B, BASECOORD_27, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_27, FRAMEBLOCKMODE_00
 
 Subanimation2b:
 	subanim SUBANIMTYPE_HFLIP, 11
-	db FRAMEBLOCK_0D, $03, $03
-	db FRAMEBLOCK_0E, $03, $03
-	db FRAMEBLOCK_0F, $03, $00
-	db FRAMEBLOCK_0D, $11, $00
-	db FRAMEBLOCK_0D, $11, $00
-	db FRAMEBLOCK_0D, $37, $00
-	db FRAMEBLOCK_0D, $37, $00
-	db FRAMEBLOCK_10, $21, $00
-	db FRAMEBLOCK_10, $21, $00
-	db FRAMEBLOCK_11, $1b, $00
-	db FRAMEBLOCK_11, $1b, $00
+	db FRAMEBLOCK_0D, BASECOORD_03, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_0E, BASECOORD_03, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_0F, BASECOORD_03, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0D, BASECOORD_11, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0D, BASECOORD_11, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0D, BASECOORD_37, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0D, BASECOORD_37, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_10, BASECOORD_21, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_10, BASECOORD_21, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_11, BASECOORD_1B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_11, BASECOORD_1B, FRAMEBLOCKMODE_00
 
 Subanimation2c:
 	subanim SUBANIMTYPE_HFLIP, 12
-	db FRAMEBLOCK_12, $01, $00
-	db FRAMEBLOCK_12, $0f, $00
-	db FRAMEBLOCK_12, $1b, $00
-	db FRAMEBLOCK_12, $25, $00
-	db FRAMEBLOCK_13, $38, $00
-	db FRAMEBLOCK_13, $38, $02
-	db FRAMEBLOCK_14, $38, $00
-	db FRAMEBLOCK_14, $38, $02
-	db FRAMEBLOCK_15, $38, $00
-	db FRAMEBLOCK_15, $38, $00
-	db FRAMEBLOCK_16, $38, $00
-	db FRAMEBLOCK_16, $38, $00
+	db FRAMEBLOCK_12, BASECOORD_01, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_12, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_12, BASECOORD_1B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_12, BASECOORD_25, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_13, BASECOORD_38, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_13, BASECOORD_38, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_14, BASECOORD_38, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_14, BASECOORD_38, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_15, BASECOORD_38, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_15, BASECOORD_38, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_16, BASECOORD_38, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_16, BASECOORD_38, FRAMEBLOCKMODE_00
 
 Subanimation12:
 	subanim SUBANIMTYPE_COORDFLIP, 9
-	db FRAMEBLOCK_17, $30, $00
-	db FRAMEBLOCK_17, $39, $00
-	db FRAMEBLOCK_17, $3a, $00
-	db FRAMEBLOCK_17, $3b, $00
-	db FRAMEBLOCK_17, $3c, $00
-	db FRAMEBLOCK_17, $3d, $00
-	db FRAMEBLOCK_17, $3e, $00
-	db FRAMEBLOCK_17, $3f, $00
-	db FRAMEBLOCK_17, $1f, $00
+	db FRAMEBLOCK_17, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_39, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_3A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_3B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_3C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_3D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_3E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_3F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_1F, FRAMEBLOCKMODE_00
 
 Subanimation00:
 	subanim SUBANIMTYPE_HFLIP, 1
-	db FRAMEBLOCK_01, $17, $00
+	db FRAMEBLOCK_01, BASECOORD_17, FRAMEBLOCKMODE_00
 
 Subanimation01:
 	subanim SUBANIMTYPE_HFLIP, 2
-	db FRAMEBLOCK_01, $0f, $00
-	db FRAMEBLOCK_01, $1d, $00
+	db FRAMEBLOCK_01, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_01, BASECOORD_1D, FRAMEBLOCKMODE_00
 
 Subanimation02:
 	subanim SUBANIMTYPE_HFLIP, 3
-	db FRAMEBLOCK_01, $12, $00
-	db FRAMEBLOCK_01, $15, $00
-	db FRAMEBLOCK_01, $1c, $00
+	db FRAMEBLOCK_01, BASECOORD_12, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_01, BASECOORD_15, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_01, BASECOORD_1C, FRAMEBLOCKMODE_00
 
 Subanimation03:
 	subanim SUBANIMTYPE_HFLIP, 4
-	db FRAMEBLOCK_01, $0b, $00
-	db FRAMEBLOCK_01, $11, $00
-	db FRAMEBLOCK_01, $18, $00
-	db FRAMEBLOCK_01, $1d, $00
+	db FRAMEBLOCK_01, BASECOORD_0B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_01, BASECOORD_11, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_01, BASECOORD_18, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_01, BASECOORD_1D, FRAMEBLOCKMODE_00
 
 Subanimation0c:
 	subanim SUBANIMTYPE_HFLIP, 3
-	db FRAMEBLOCK_0C, $20, $00
-	db FRAMEBLOCK_0C, $21, $00
-	db FRAMEBLOCK_0C, $23, $00
+	db FRAMEBLOCK_0C, BASECOORD_20, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_21, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_23, FRAMEBLOCKMODE_00
 
 Subanimation0d:
 	subanim SUBANIMTYPE_HFLIP, 6
-	db FRAMEBLOCK_0C, $20, $02
-	db FRAMEBLOCK_0C, $15, $00
-	db FRAMEBLOCK_0C, $21, $02
-	db FRAMEBLOCK_0C, $17, $00
-	db FRAMEBLOCK_0C, $23, $02
-	db FRAMEBLOCK_0C, $19, $00
+	db FRAMEBLOCK_0C, BASECOORD_20, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_0C, BASECOORD_15, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_21, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_0C, BASECOORD_17, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_23, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_0C, BASECOORD_19, FRAMEBLOCKMODE_00
 
 Subanimation0e:
 	subanim SUBANIMTYPE_HFLIP, 9
-	db FRAMEBLOCK_0C, $20, $02
-	db FRAMEBLOCK_0C, $15, $02
-	db FRAMEBLOCK_0C, $07, $00
-	db FRAMEBLOCK_0C, $21, $02
-	db FRAMEBLOCK_0C, $17, $02
-	db FRAMEBLOCK_0C, $09, $00
-	db FRAMEBLOCK_0C, $23, $02
-	db FRAMEBLOCK_0C, $19, $02
-	db FRAMEBLOCK_0C, $0c, $00
+	db FRAMEBLOCK_0C, BASECOORD_20, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_0C, BASECOORD_15, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_0C, BASECOORD_07, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_21, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_0C, BASECOORD_17, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_0C, BASECOORD_09, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_0C, BASECOORD_23, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_0C, BASECOORD_19, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_0C, BASECOORD_0C, FRAMEBLOCKMODE_00
 
 Subanimation1f:
 	subanim SUBANIMTYPE_REVERSE, 5
-	db FRAMEBLOCK_0C, $30, $03
-	db FRAMEBLOCK_0C, $40, $03
-	db FRAMEBLOCK_0C, $41, $03
-	db FRAMEBLOCK_0C, $42, $03
-	db FRAMEBLOCK_0C, $21, $00
+	db FRAMEBLOCK_0C, BASECOORD_30, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_0C, BASECOORD_40, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_0C, BASECOORD_41, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_0C, BASECOORD_42, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_0C, BASECOORD_21, FRAMEBLOCKMODE_00
 
 Subanimation2e:
 	subanim SUBANIMTYPE_HVFLIP, 14
-	db FRAMEBLOCK_18, $43, $02
-	db FRAMEBLOCK_75, $52, $04
-	db FRAMEBLOCK_19, $43, $02
-	db FRAMEBLOCK_75, $63, $04
-	db FRAMEBLOCK_1A, $43, $02
-	db FRAMEBLOCK_75, $4d, $04
-	db FRAMEBLOCK_1B, $43, $02
-	db FRAMEBLOCK_75, $97, $04
-	db FRAMEBLOCK_1C, $43, $02
-	db FRAMEBLOCK_75, $98, $04
-	db FRAMEBLOCK_1D, $43, $02
-	db FRAMEBLOCK_75, $58, $04
-	db FRAMEBLOCK_1E, $43, $02
-	db FRAMEBLOCK_75, $1b, $00
+	db FRAMEBLOCK_18, BASECOORD_43, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_75, BASECOORD_52, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_19, BASECOORD_43, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_75, BASECOORD_63, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_1A, BASECOORD_43, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_75, BASECOORD_4D, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_1B, BASECOORD_43, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_75, BASECOORD_97, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_1C, BASECOORD_43, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_75, BASECOORD_98, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_1D, BASECOORD_43, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_75, BASECOORD_58, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_1E, BASECOORD_43, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_75, BASECOORD_1B, FRAMEBLOCKMODE_00
 
 Subanimation2f:
 	subanim SUBANIMTYPE_HFLIP, 4
-	db FRAMEBLOCK_1F, $24, $00
-	db FRAMEBLOCK_20, $20, $00
-	db FRAMEBLOCK_21, $1a, $00
-	db FRAMEBLOCK_22, $15, $00
+	db FRAMEBLOCK_1F, BASECOORD_24, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_20, BASECOORD_20, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_21, BASECOORD_1A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_22, BASECOORD_15, FRAMEBLOCKMODE_00
 
 Subanimation30:
 	subanim SUBANIMTYPE_HFLIP, 18
-	db FRAMEBLOCK_23, $00, $02
-	db FRAMEBLOCK_23, $02, $02
-	db FRAMEBLOCK_23, $04, $00
-	db FRAMEBLOCK_23, $07, $02
-	db FRAMEBLOCK_23, $02, $02
-	db FRAMEBLOCK_23, $04, $00
-	db FRAMEBLOCK_23, $0e, $02
-	db FRAMEBLOCK_23, $02, $02
-	db FRAMEBLOCK_23, $0c, $00
-	db FRAMEBLOCK_25, $07, $00
-	db FRAMEBLOCK_25, $0e, $00
-	db FRAMEBLOCK_25, $15, $00
-	db FRAMEBLOCK_24, $24, $02
-	db FRAMEBLOCK_23, $1c, $02
-	db FRAMEBLOCK_23, $23, $00
-	db FRAMEBLOCK_23, $21, $02
-	db FRAMEBLOCK_24, $28, $00
-	db FRAMEBLOCK_24, $28, $00
+	db FRAMEBLOCK_23, BASECOORD_00, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_23, BASECOORD_02, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_23, BASECOORD_04, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_23, BASECOORD_07, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_23, BASECOORD_02, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_23, BASECOORD_04, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_23, BASECOORD_0E, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_23, BASECOORD_02, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_23, BASECOORD_0C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_25, BASECOORD_07, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_25, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_25, BASECOORD_15, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_24, BASECOORD_24, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_23, BASECOORD_1C, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_23, BASECOORD_23, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_23, BASECOORD_21, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_24, BASECOORD_28, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_24, BASECOORD_28, FRAMEBLOCKMODE_00
 
 Subanimation0f:
 	subanim SUBANIMTYPE_HFLIP, 12
-	db FRAMEBLOCK_26, $0e, $02
-	db FRAMEBLOCK_26, $16, $02
-	db FRAMEBLOCK_26, $1c, $00
-	db FRAMEBLOCK_27, $0e, $02
-	db FRAMEBLOCK_27, $16, $02
-	db FRAMEBLOCK_27, $1c, $00
-	db FRAMEBLOCK_28, $0e, $02
-	db FRAMEBLOCK_28, $16, $02
-	db FRAMEBLOCK_28, $1c, $00
-	db FRAMEBLOCK_29, $0e, $02
-	db FRAMEBLOCK_29, $16, $02
-	db FRAMEBLOCK_29, $1c, $00
+	db FRAMEBLOCK_26, BASECOORD_0E, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_26, BASECOORD_16, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_26, BASECOORD_1C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_27, BASECOORD_0E, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_27, BASECOORD_16, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_27, BASECOORD_1C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_28, BASECOORD_0E, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_28, BASECOORD_16, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_28, BASECOORD_1C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_29, BASECOORD_0E, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_29, BASECOORD_16, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_29, BASECOORD_1C, FRAMEBLOCKMODE_00
 
 Subanimation16:
 	subanim SUBANIMTYPE_HFLIP, 12
-	db FRAMEBLOCK_2A, $05, $00
-	db FRAMEBLOCK_2B, $05, $02
-	db FRAMEBLOCK_2B, $0c, $02
-	db FRAMEBLOCK_2A, $11, $04
-	db FRAMEBLOCK_2B, $11, $02
-	db FRAMEBLOCK_2B, $17, $02
-	db FRAMEBLOCK_2A, $1b, $04
-	db FRAMEBLOCK_2B, $1b, $02
-	db FRAMEBLOCK_2B, $20, $02
-	db FRAMEBLOCK_2A, $2f, $04
-	db FRAMEBLOCK_2C, $00, $02
-	db FRAMEBLOCK_2C, $00, $00
+	db FRAMEBLOCK_2A, BASECOORD_05, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2B, BASECOORD_05, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_2B, BASECOORD_0C, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_2A, BASECOORD_11, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_2B, BASECOORD_11, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_2B, BASECOORD_17, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_2A, BASECOORD_1B, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_2B, BASECOORD_1B, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_2B, BASECOORD_20, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_2A, BASECOORD_2F, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_2C, BASECOORD_00, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_2C, BASECOORD_00, FRAMEBLOCKMODE_00
 
 Subanimation10:
 	subanim SUBANIMTYPE_REVERSE, 8
-	db FRAMEBLOCK_2D, $44, $00
-	db FRAMEBLOCK_2E, $45, $00
-	db FRAMEBLOCK_2D, $46, $00
-	db FRAMEBLOCK_2E, $47, $00
-	db FRAMEBLOCK_2D, $48, $00
-	db FRAMEBLOCK_2E, $49, $00
-	db FRAMEBLOCK_2D, $2f, $00
-	db FRAMEBLOCK_2E, $1a, $00
+	db FRAMEBLOCK_2D, BASECOORD_44, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2E, BASECOORD_45, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2D, BASECOORD_46, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2E, BASECOORD_47, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2D, BASECOORD_48, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2E, BASECOORD_49, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2D, BASECOORD_2F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2E, BASECOORD_1A, FRAMEBLOCKMODE_00
 
 Subanimation31:
 	subanim SUBANIMTYPE_HVFLIP, 10
-	db FRAMEBLOCK_2F, $46, $00
-	db FRAMEBLOCK_2F, $4a, $00
-	db FRAMEBLOCK_2F, $4b, $00
-	db FRAMEBLOCK_2F, $4c, $00
-	db FRAMEBLOCK_2F, $4d, $00
-	db FRAMEBLOCK_2F, $4e, $00
-	db FRAMEBLOCK_2F, $4f, $00
-	db FRAMEBLOCK_2F, $50, $00
-	db FRAMEBLOCK_2F, $2e, $00
-	db FRAMEBLOCK_2F, $51, $00
+	db FRAMEBLOCK_2F, BASECOORD_46, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2F, BASECOORD_4A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2F, BASECOORD_4B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2F, BASECOORD_4C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2F, BASECOORD_4D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2F, BASECOORD_4E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2F, BASECOORD_4F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2F, BASECOORD_50, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2F, BASECOORD_2E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_2F, BASECOORD_51, FRAMEBLOCKMODE_00
 
 Subanimation13:
 	subanim SUBANIMTYPE_REVERSE, 6
-	db FRAMEBLOCK_30, $31, $00
-	db FRAMEBLOCK_30, $32, $00
-	db FRAMEBLOCK_30, $92, $00
-	db FRAMEBLOCK_30, $0e, $00
-	db FRAMEBLOCK_30, $0f, $00
-	db FRAMEBLOCK_30, $10, $00
+	db FRAMEBLOCK_30, BASECOORD_31, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_30, BASECOORD_32, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_30, BASECOORD_92, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_30, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_30, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_30, BASECOORD_10, FRAMEBLOCKMODE_00
 
 Subanimation14:
 	subanim SUBANIMTYPE_HFLIP, 9
-	db FRAMEBLOCK_30, $10, $00
-	db FRAMEBLOCK_30, $10, $03
-	db FRAMEBLOCK_31, $1c, $04
-	db FRAMEBLOCK_31, $21, $04
-	db FRAMEBLOCK_31, $26, $00
-	db FRAMEBLOCK_30, $10, $02
-	db FRAMEBLOCK_31, $1d, $04
-	db FRAMEBLOCK_31, $22, $04
-	db FRAMEBLOCK_31, $27, $00
+	db FRAMEBLOCK_30, BASECOORD_10, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_30, BASECOORD_10, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_31, BASECOORD_1C, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_31, BASECOORD_21, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_31, BASECOORD_26, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_30, BASECOORD_10, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_31, BASECOORD_1D, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_31, BASECOORD_22, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_31, BASECOORD_27, FRAMEBLOCKMODE_00
 
 Subanimation41:
 	subanim SUBANIMTYPE_REVERSE, 5
-	db FRAMEBLOCK_03, $31, $00
-	db FRAMEBLOCK_03, $32, $00
-	db FRAMEBLOCK_03, $92, $00
-	db FRAMEBLOCK_03, $0e, $00
-	db FRAMEBLOCK_03, $10, $00
+	db FRAMEBLOCK_03, BASECOORD_31, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_32, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_92, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_03, BASECOORD_10, FRAMEBLOCKMODE_00
 
 Subanimation42:
 	subanim SUBANIMTYPE_HFLIP, 3
-	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, $08, $00
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $08, $00
-	db FRAMEBLOCK_5A, $08, $00
+	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_5A, BASECOORD_08, FRAMEBLOCKMODE_00
 
 Subanimation15:
 	subanim SUBANIMTYPE_HVFLIP, 2
-	db FRAMEBLOCK_35, $52, $00
-	db FRAMEBLOCK_35, $53, $00
+	db FRAMEBLOCK_35, BASECOORD_52, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_35, BASECOORD_53, FRAMEBLOCKMODE_00
 
 Subanimation17:
 	subanim SUBANIMTYPE_HFLIP, 4
-	db FRAMEBLOCK_36, $54, $00
-	db FRAMEBLOCK_36, $55, $00
-	db FRAMEBLOCK_37, $56, $00
-	db FRAMEBLOCK_37, $57, $00
+	db FRAMEBLOCK_36, BASECOORD_54, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_36, BASECOORD_55, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_37, BASECOORD_56, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_37, BASECOORD_57, FRAMEBLOCKMODE_00
 
 Subanimation18:
 	subanim SUBANIMTYPE_ENEMY, 4
-	db FRAMEBLOCK_36, $54, $00
-	db FRAMEBLOCK_36, $55, $00
-	db FRAMEBLOCK_37, $56, $00
-	db FRAMEBLOCK_37, $57, $00
+	db FRAMEBLOCK_36, BASECOORD_54, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_36, BASECOORD_55, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_37, BASECOORD_56, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_37, BASECOORD_57, FRAMEBLOCKMODE_00
 
 Subanimation40:
 	subanim SUBANIMTYPE_HFLIP, 6
-	db FRAMEBLOCK_17, $54, $00
-	db FRAMEBLOCK_17, $55, $00
-	db FRAMEBLOCK_17, $0e, $00
-	db FRAMEBLOCK_17, $56, $00
-	db FRAMEBLOCK_17, $57, $00
-	db FRAMEBLOCK_17, $13, $00
+	db FRAMEBLOCK_17, BASECOORD_54, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_55, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_56, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_57, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_17, BASECOORD_13, FRAMEBLOCKMODE_00
 
 Subanimation19:
 	subanim SUBANIMTYPE_REVERSE, 12
-	db FRAMEBLOCK_38, $31, $00
-	db FRAMEBLOCK_39, $31, $00
-	db FRAMEBLOCK_38, $32, $00
-	db FRAMEBLOCK_39, $32, $00
-	db FRAMEBLOCK_38, $92, $00
-	db FRAMEBLOCK_39, $92, $00
-	db FRAMEBLOCK_38, $0e, $00
-	db FRAMEBLOCK_39, $0e, $00
-	db FRAMEBLOCK_38, $0f, $00
-	db FRAMEBLOCK_39, $0f, $00
-	db FRAMEBLOCK_38, $10, $00
-	db FRAMEBLOCK_39, $10, $00
+	db FRAMEBLOCK_38, BASECOORD_31, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_39, BASECOORD_31, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_38, BASECOORD_32, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_39, BASECOORD_32, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_38, BASECOORD_92, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_39, BASECOORD_92, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_38, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_39, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_38, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_39, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_38, BASECOORD_10, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_39, BASECOORD_10, FRAMEBLOCKMODE_00
 
 Subanimation1a:
 	subanim SUBANIMTYPE_HFLIP, 16
-	db FRAMEBLOCK_3A, $08, $00
-	db FRAMEBLOCK_3B, $08, $00
-	db FRAMEBLOCK_3C, $08, $00
-	db FRAMEBLOCK_3D, $08, $00
-	db FRAMEBLOCK_3E, $08, $00
-	db FRAMEBLOCK_3F, $08, $00
-	db FRAMEBLOCK_3E, $08, $00
-	db FRAMEBLOCK_3F, $08, $00
-	db FRAMEBLOCK_3A, $0b, $00
-	db FRAMEBLOCK_3B, $0b, $00
-	db FRAMEBLOCK_3C, $0b, $00
-	db FRAMEBLOCK_3D, $0b, $00
-	db FRAMEBLOCK_3E, $0b, $00
-	db FRAMEBLOCK_3F, $0b, $00
-	db FRAMEBLOCK_3E, $0b, $00
-	db FRAMEBLOCK_3F, $0b, $00
+	db FRAMEBLOCK_3A, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3B, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3C, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3D, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3E, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3F, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3E, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3F, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3A, BASECOORD_0B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3B, BASECOORD_0B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3C, BASECOORD_0B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3D, BASECOORD_0B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3E, BASECOORD_0B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3F, BASECOORD_0B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3E, BASECOORD_0B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3F, BASECOORD_0B, FRAMEBLOCKMODE_00
 
 Subanimation1b:
 	subanim SUBANIMTYPE_REVERSE, 4
-	db FRAMEBLOCK_40, $31, $00
-	db FRAMEBLOCK_40, $32, $00
-	db FRAMEBLOCK_40, $92, $00
-	db FRAMEBLOCK_40, $15, $00
+	db FRAMEBLOCK_40, BASECOORD_31, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_40, BASECOORD_32, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_40, BASECOORD_92, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_40, BASECOORD_15, FRAMEBLOCKMODE_00
 
 Subanimation1c:
 	subanim SUBANIMTYPE_HFLIP, 3
-	db FRAMEBLOCK_41, $58, $00
-	db FRAMEBLOCK_41, $59, $00
-	db FRAMEBLOCK_41, $21, $00
+	db FRAMEBLOCK_41, BASECOORD_58, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_41, BASECOORD_59, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_41, BASECOORD_21, FRAMEBLOCKMODE_00
 
 Subanimation1d:
 	subanim SUBANIMTYPE_ENEMY, 15
-	db FRAMEBLOCK_24, $9a, $00
-	db FRAMEBLOCK_23, $1b, $02
-	db FRAMEBLOCK_24, $22, $00
-	db FRAMEBLOCK_23, $16, $02
-	db FRAMEBLOCK_23, $1d, $02
-	db FRAMEBLOCK_24, $98, $00
-	db FRAMEBLOCK_25, $2c, $04
-	db FRAMEBLOCK_25, $2a, $04
-	db FRAMEBLOCK_25, $99, $04
-	db FRAMEBLOCK_25, $62, $04
-	db FRAMEBLOCK_25, $99, $04
-	db FRAMEBLOCK_25, $62, $04
-	db FRAMEBLOCK_25, $99, $04
-	db FRAMEBLOCK_25, $62, $04
-	db FRAMEBLOCK_25, $99, $03
+	db FRAMEBLOCK_24, BASECOORD_9A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_23, BASECOORD_1B, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_24, BASECOORD_22, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_23, BASECOORD_16, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_23, BASECOORD_1D, FRAMEBLOCKMODE_02
+	db FRAMEBLOCK_24, BASECOORD_98, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_25, BASECOORD_2C, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_25, BASECOORD_2A, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_25, BASECOORD_99, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_25, BASECOORD_62, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_25, BASECOORD_99, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_25, BASECOORD_62, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_25, BASECOORD_99, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_25, BASECOORD_62, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_25, BASECOORD_99, FRAMEBLOCKMODE_03
 
 Subanimation1e:
 	subanim SUBANIMTYPE_NORMAL, 1
-	db FRAMEBLOCK_25, $75, $00
+	db FRAMEBLOCK_25, BASECOORD_75, FRAMEBLOCKMODE_00
 
 Subanimation20:
 	subanim SUBANIMTYPE_HFLIP, 2
-	db FRAMEBLOCK_42, $07, $00
-	db FRAMEBLOCK_43, $07, $00
+	db FRAMEBLOCK_42, BASECOORD_07, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_43, BASECOORD_07, FRAMEBLOCKMODE_00
 
 Subanimation21:
 	subanim SUBANIMTYPE_HFLIP, 3
-	db FRAMEBLOCK_44, $00, $00
-	db FRAMEBLOCK_45, $08, $00
-	db FRAMEBLOCK_46, $10, $02
+	db FRAMEBLOCK_44, BASECOORD_00, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_45, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_46, BASECOORD_10, FRAMEBLOCKMODE_02
 
 Subanimation22:
 	subanim SUBANIMTYPE_REVERSE, 11
-	db FRAMEBLOCK_47, $10, $00
-	db FRAMEBLOCK_47, $56, $00
-	db FRAMEBLOCK_47, $07, $00
-	db FRAMEBLOCK_47, $aa, $00
-	db FRAMEBLOCK_47, $ab, $00
-	db FRAMEBLOCK_47, $ac, $00
-	db FRAMEBLOCK_47, $ad, $00
-	db FRAMEBLOCK_47, $ae, $00
-	db FRAMEBLOCK_47, $af, $00
-	db FRAMEBLOCK_47, $89, $00
-	db FRAMEBLOCK_47, $b0, $00
+	db FRAMEBLOCK_47, BASECOORD_10, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_56, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_07, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_AA, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_AB, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_AC, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_AD, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_AE, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_AF, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_89, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_B0, FRAMEBLOCKMODE_00
 
 Subanimation2d:
 	subanim SUBANIMTYPE_COORDFLIP, 6
-	db FRAMEBLOCK_44, $64, $00
-	db FRAMEBLOCK_45, $65, $00
-	db FRAMEBLOCK_46, $66, $00
-	db FRAMEBLOCK_47, $66, $00
-	db FRAMEBLOCK_47, $66, $00
-	db FRAMEBLOCK_47, $66, $00
+	db FRAMEBLOCK_44, BASECOORD_64, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_45, BASECOORD_65, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_46, BASECOORD_66, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_66, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_66, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_66, FRAMEBLOCKMODE_00
 
 Subanimation39:
 	subanim SUBANIMTYPE_COORDFLIP, 1
-	db FRAMEBLOCK_47, $67, $00
+	db FRAMEBLOCK_47, BASECOORD_67, FRAMEBLOCKMODE_00
 
 Subanimation4e:
 	subanim SUBANIMTYPE_HFLIP, 1
-	db FRAMEBLOCK_71, $0f, $03
+	db FRAMEBLOCK_71, BASECOORD_0F, FRAMEBLOCKMODE_03
 
 Subanimation4f:
 	subanim SUBANIMTYPE_HFLIP, 7
-	db FRAMEBLOCK_71, $0f, $00
-	db FRAMEBLOCK_71, $08, $00
-	db FRAMEBLOCK_71, $01, $00
-	db FRAMEBLOCK_71, $95, $00
-	db FRAMEBLOCK_72, $95, $00
-	db FRAMEBLOCK_73, $95, $00
-	db FRAMEBLOCK_74, $95, $00
+	db FRAMEBLOCK_71, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_71, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_71, BASECOORD_01, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_71, BASECOORD_95, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_72, BASECOORD_95, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_73, BASECOORD_95, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_74, BASECOORD_95, FRAMEBLOCKMODE_00
 
 Subanimation50:
 	subanim SUBANIMTYPE_HFLIP, 8
-	db FRAMEBLOCK_74, $95, $00
-	db FRAMEBLOCK_73, $95, $00
-	db FRAMEBLOCK_72, $95, $00
-	db FRAMEBLOCK_71, $95, $00
-	db FRAMEBLOCK_71, $01, $00
-	db FRAMEBLOCK_71, $08, $00
-	db FRAMEBLOCK_71, $0f, $00
-	db FRAMEBLOCK_71, $16, $00
+	db FRAMEBLOCK_74, BASECOORD_95, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_73, BASECOORD_95, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_72, BASECOORD_95, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_71, BASECOORD_95, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_71, BASECOORD_01, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_71, BASECOORD_08, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_71, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_71, BASECOORD_16, FRAMEBLOCKMODE_00
 
 Subanimation29:
 	subanim SUBANIMTYPE_HFLIP, 29
-	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, $0f, $00
-	db FRAMEBLOCK_4A, $68, $03
-	db FRAMEBLOCK_4B, $2a, $03
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $0f, $00
-	db FRAMEBLOCK_4A, $68, $03
-	db FRAMEBLOCK_4B, $2a, $00
-	db FRAMEBLOCK_4C, $6a, $03
-	db FRAMEBLOCK_4D, $69, $03
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $6b, $00
-	db FRAMEBLOCK_4C, $6a, $03
-	db FRAMEBLOCK_4D, $69, $00
-	db FRAMEBLOCK_4A, $68, $03
-	db FRAMEBLOCK_4B, $2a, $03
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $6c, $00
-	db FRAMEBLOCK_4A, $68, $03
-	db FRAMEBLOCK_4B, $2a, $00
-	db FRAMEBLOCK_4C, $6a, $03
-	db FRAMEBLOCK_4D, $69, $03
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $6d, $00
-	db FRAMEBLOCK_4C, $6a, $03
-	db FRAMEBLOCK_4D, $2a, $00
-	db FRAMEBLOCK_4A, $68, $03
-	db FRAMEBLOCK_4B, $2a, $03
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $0f, $00
-	db FRAMEBLOCK_4A, $68, $03
-	db FRAMEBLOCK_4B, $2a, $00
-	db FRAMEBLOCK_4C, $6a, $03
-	db FRAMEBLOCK_4D, $2a, $03
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $6b, $00
+	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4A, BASECOORD_68, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_4B, BASECOORD_2A, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4A, BASECOORD_68, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_4B, BASECOORD_2A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4C, BASECOORD_6A, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_4D, BASECOORD_69, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_6B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4C, BASECOORD_6A, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_4D, BASECOORD_69, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4A, BASECOORD_68, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_4B, BASECOORD_2A, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_6C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4A, BASECOORD_68, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_4B, BASECOORD_2A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4C, BASECOORD_6A, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_4D, BASECOORD_69, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_6D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4C, BASECOORD_6A, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_4D, BASECOORD_2A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4A, BASECOORD_68, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_4B, BASECOORD_2A, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4A, BASECOORD_68, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_4B, BASECOORD_2A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4C, BASECOORD_6A, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_4D, BASECOORD_2A, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_6B, FRAMEBLOCKMODE_00
 
 Subanimation2a:
 	subanim SUBANIMTYPE_HFLIP, 4
-	db FRAMEBLOCK_4E, $2b, $00
-	db FRAMEBLOCK_4F, $2b, $00
-	db FRAMEBLOCK_50, $2b, $00
-	db FRAMEBLOCK_50, $2b, $00
+	db FRAMEBLOCK_4E, BASECOORD_2B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_4F, BASECOORD_2B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_50, BASECOORD_2B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_50, BASECOORD_2B, FRAMEBLOCKMODE_00
 
 Subanimation23:
 	subanim SUBANIMTYPE_HFLIP, 2
-	db FRAMEBLOCK_51, $2d, $00
-	db FRAMEBLOCK_51, $6e, $00
+	db FRAMEBLOCK_51, BASECOORD_2D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_51, BASECOORD_6E, FRAMEBLOCKMODE_00
 
 Subanimation24:
 	subanim SUBANIMTYPE_ENEMY, 2
-	db FRAMEBLOCK_51, $2d, $00
-	db FRAMEBLOCK_51, $6e, $00
+	db FRAMEBLOCK_51, BASECOORD_2D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_51, BASECOORD_6E, FRAMEBLOCKMODE_00
 
 Subanimation25:
 	subanim SUBANIMTYPE_COORDFLIP, 2
-	db FRAMEBLOCK_52, $71, $00
-	db FRAMEBLOCK_52, $72, $00
+	db FRAMEBLOCK_52, BASECOORD_71, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_52, BASECOORD_72, FRAMEBLOCKMODE_00
 
 Subanimation26:
 	subanim SUBANIMTYPE_NORMAL, 2
-	db FRAMEBLOCK_52, $01, $00
-	db FRAMEBLOCK_52, $2c, $00
+	db FRAMEBLOCK_52, BASECOORD_01, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_52, BASECOORD_2C, FRAMEBLOCKMODE_00
 
 Subanimation3a:
 	subanim SUBANIMTYPE_COORDFLIP, 3
-	db FRAMEBLOCK_53, $71, $00
-	db FRAMEBLOCK_53, $7f, $00
-	db FRAMEBLOCK_53, $81, $00
+	db FRAMEBLOCK_53, BASECOORD_71, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_53, BASECOORD_7F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_53, BASECOORD_81, FRAMEBLOCKMODE_00
 
 Subanimation3b:
 	subanim SUBANIMTYPE_NORMAL, 3
-	db FRAMEBLOCK_53, $01, $00
-	db FRAMEBLOCK_53, $15, $00
-	db FRAMEBLOCK_53, $2c, $00
+	db FRAMEBLOCK_53, BASECOORD_01, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_53, BASECOORD_15, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_53, BASECOORD_2C, FRAMEBLOCKMODE_00
 
 Subanimation27:
 	subanim SUBANIMTYPE_ENEMY, 2
-	db FRAMEBLOCK_54, $01, $00
-	db FRAMEBLOCK_54, $2c, $00
+	db FRAMEBLOCK_54, BASECOORD_01, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_54, BASECOORD_2C, FRAMEBLOCKMODE_00
 
 Subanimation28:
 	subanim SUBANIMTYPE_HVFLIP, 3
-	db FRAMEBLOCK_55, $73, $03
-	db FRAMEBLOCK_56, $73, $03
-	db FRAMEBLOCK_57, $73, $00
+	db FRAMEBLOCK_55, BASECOORD_73, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_56, BASECOORD_73, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_57, BASECOORD_73, FRAMEBLOCKMODE_00
 
 Subanimation32:
 	subanim SUBANIMTYPE_COORDFLIP, 3
-	db FRAMEBLOCK_47, $74, $00
-	db FRAMEBLOCK_47, $43, $00
-	db FRAMEBLOCK_47, $75, $00
+	db FRAMEBLOCK_47, BASECOORD_74, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_43, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_47, BASECOORD_75, FRAMEBLOCKMODE_00
 
 Subanimation33:
 	subanim SUBANIMTYPE_HVFLIP, 6
-	db FRAMEBLOCK_58, $76, $00
-	db FRAMEBLOCK_34, $76, $00
-	db FRAMEBLOCK_58, $76, $00
-	db FRAMEBLOCK_34, $76, $00
-	db FRAMEBLOCK_58, $76, $00
-	db FRAMEBLOCK_34, $76, $00
+	db FRAMEBLOCK_58, BASECOORD_76, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_76, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_58, BASECOORD_76, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_76, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_58, BASECOORD_76, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_76, FRAMEBLOCKMODE_00
 
 Subanimation3c:
 	subanim SUBANIMTYPE_COORDFLIP, 7
-	db FRAMEBLOCK_59, $79, $03
-	db FRAMEBLOCK_59, $7b, $03
-	db FRAMEBLOCK_59, $77, $03
-	db FRAMEBLOCK_59, $7a, $03
-	db FRAMEBLOCK_59, $78, $03
-	db FRAMEBLOCK_59, $7c, $03
-	db FRAMEBLOCK_59, $76, $00
+	db FRAMEBLOCK_59, BASECOORD_79, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_59, BASECOORD_7B, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_59, BASECOORD_77, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_59, BASECOORD_7A, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_59, BASECOORD_78, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_59, BASECOORD_7C, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_59, BASECOORD_76, FRAMEBLOCKMODE_00
 
 Subanimation3d:
 	subanim SUBANIMTYPE_NORMAL, 8
-	db FRAMEBLOCK_3A, $4d, $00
-	db FRAMEBLOCK_3B, $4d, $00
-	db FRAMEBLOCK_3C, $4d, $00
-	db FRAMEBLOCK_3D, $4d, $00
-	db FRAMEBLOCK_3E, $4d, $00
-	db FRAMEBLOCK_3F, $4d, $00
-	db FRAMEBLOCK_3E, $4d, $00
-	db FRAMEBLOCK_3F, $4d, $00
+	db FRAMEBLOCK_3A, BASECOORD_4D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3B, BASECOORD_4D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3C, BASECOORD_4D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3D, BASECOORD_4D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3E, BASECOORD_4D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3F, BASECOORD_4D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3E, BASECOORD_4D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_3F, BASECOORD_4D, FRAMEBLOCKMODE_00
 
 Subanimation34:
 	subanim SUBANIMTYPE_HVFLIP, 21
-	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, $7d, $00
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $7d, $00
-	db FRAMEBLOCK_5A, $7d, $00
-	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, $30, $00
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $30, $00
-	db FRAMEBLOCK_5A, $30, $00
-	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, $7e, $00
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $7e, $00
-	db FRAMEBLOCK_5A, $7e, $00
-	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, $7f, $00
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $7f, $00
-	db FRAMEBLOCK_5A, $7f, $00
-	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, $80, $00
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $80, $00
-	db FRAMEBLOCK_5A, $80, $00
-	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, $81, $00
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $81, $00
-	db FRAMEBLOCK_5A, $81, $00
-	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, $82, $00
-	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, $82, $00
-	db FRAMEBLOCK_5A, $82, $00
+	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, BASECOORD_7D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_7D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_5A, BASECOORD_7D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_5A, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, BASECOORD_7E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_7E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_5A, BASECOORD_7E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, BASECOORD_7F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_7F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_5A, BASECOORD_7F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, BASECOORD_80, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_80, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_5A, BASECOORD_80, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, BASECOORD_81, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_81, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_5A, BASECOORD_81, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_SMALL_BLACK_CIRCLE, BASECOORD_82, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_LARGE_BLACK_CIRCLE, BASECOORD_82, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_5A, BASECOORD_82, FRAMEBLOCKMODE_00
 
 Subanimation35:
 	subanim SUBANIMTYPE_HVFLIP, 4
-	db FRAMEBLOCK_5B, $83, $03
-	db FRAMEBLOCK_5C, $84, $03
-	db FRAMEBLOCK_5D, $85, $03
-	db FRAMEBLOCK_5E, $09, $00
+	db FRAMEBLOCK_5B, BASECOORD_83, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_5C, BASECOORD_84, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_5D, BASECOORD_85, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_5E, BASECOORD_09, FRAMEBLOCKMODE_00
 
 Subanimation36:
 	subanim SUBANIMTYPE_HFLIP, 8
-	db FRAMEBLOCK_5F, $2a, $00
-	db FRAMEBLOCK_5F, $00, $00
-	db FRAMEBLOCK_60, $2a, $00
-	db FRAMEBLOCK_60, $00, $00
-	db FRAMEBLOCK_61, $2a, $00
-	db FRAMEBLOCK_61, $00, $00
-	db FRAMEBLOCK_62, $2a, $00
-	db FRAMEBLOCK_62, $00, $00
+	db FRAMEBLOCK_5F, BASECOORD_2A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_5F, BASECOORD_00, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_60, BASECOORD_2A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_60, BASECOORD_00, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_61, BASECOORD_2A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_61, BASECOORD_00, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_62, BASECOORD_2A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_62, BASECOORD_00, FRAMEBLOCKMODE_00
 
 Subanimation37:
 	subanim SUBANIMTYPE_HVFLIP, 10
-	db FRAMEBLOCK_63, $89, $00
-	db FRAMEBLOCK_64, $75, $00
-	db FRAMEBLOCK_63, $76, $00
-	db FRAMEBLOCK_65, $0d, $00
-	db FRAMEBLOCK_65, $86, $00
-	db FRAMEBLOCK_65, $12, $00
-	db FRAMEBLOCK_65, $87, $00
-	db FRAMEBLOCK_65, $17, $00
-	db FRAMEBLOCK_65, $88, $00
-	db FRAMEBLOCK_65, $1a, $00
+	db FRAMEBLOCK_63, BASECOORD_89, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_64, BASECOORD_75, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_63, BASECOORD_76, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_65, BASECOORD_0D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_65, BASECOORD_86, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_65, BASECOORD_12, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_65, BASECOORD_87, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_65, BASECOORD_17, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_65, BASECOORD_88, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_65, BASECOORD_1A, FRAMEBLOCKMODE_00
 
 Subanimation38:
 	subanim SUBANIMTYPE_HFLIP, 16
-	db FRAMEBLOCK_66, $8a, $00
-	db FRAMEBLOCK_66, $33, $00
-	db FRAMEBLOCK_66, $2e, $00
-	db FRAMEBLOCK_67, $24, $03
-	db FRAMEBLOCK_66, $01, $04
-	db FRAMEBLOCK_66, $10, $04
-	db FRAMEBLOCK_66, $1d, $04
-	db FRAMEBLOCK_67, $28, $03
-	db FRAMEBLOCK_66, $2a, $04
-	db FRAMEBLOCK_66, $0e, $04
-	db FRAMEBLOCK_66, $1b, $04
-	db FRAMEBLOCK_67, $26, $03
-	db FRAMEBLOCK_66, $03, $04
-	db FRAMEBLOCK_66, $12, $04
-	db FRAMEBLOCK_66, $1e, $04
-	db FRAMEBLOCK_67, $29, $00
+	db FRAMEBLOCK_66, BASECOORD_8A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_66, BASECOORD_33, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_66, BASECOORD_2E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_67, BASECOORD_24, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_66, BASECOORD_01, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_66, BASECOORD_10, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_66, BASECOORD_1D, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_67, BASECOORD_28, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_66, BASECOORD_2A, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_66, BASECOORD_0E, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_66, BASECOORD_1B, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_67, BASECOORD_26, FRAMEBLOCKMODE_03
+	db FRAMEBLOCK_66, BASECOORD_03, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_66, BASECOORD_12, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_66, BASECOORD_1E, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_67, BASECOORD_29, FRAMEBLOCKMODE_00
 
 Subanimation3e:
 	subanim SUBANIMTYPE_REVERSE, 18
-	db FRAMEBLOCK_02, $31, $00
-	db FRAMEBLOCK_34, $31, $00
-	db FRAMEBLOCK_02, $31, $00
-	db FRAMEBLOCK_02, $32, $00
-	db FRAMEBLOCK_34, $32, $00
-	db FRAMEBLOCK_02, $32, $00
-	db FRAMEBLOCK_02, $92, $00
-	db FRAMEBLOCK_34, $92, $00
-	db FRAMEBLOCK_02, $92, $00
-	db FRAMEBLOCK_02, $0e, $00
-	db FRAMEBLOCK_34, $0e, $00
-	db FRAMEBLOCK_02, $0e, $00
-	db FRAMEBLOCK_02, $0f, $00
-	db FRAMEBLOCK_34, $0f, $00
-	db FRAMEBLOCK_02, $0f, $00
-	db FRAMEBLOCK_02, $10, $00
-	db FRAMEBLOCK_34, $10, $00
-	db FRAMEBLOCK_02, $10, $00
+	db FRAMEBLOCK_02, BASECOORD_31, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_31, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_31, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_32, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_32, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_32, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_92, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_92, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_92, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_10, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_10, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_02, BASECOORD_10, FRAMEBLOCKMODE_00
 
 Subanimation3f:
 	subanim SUBANIMTYPE_COORDFLIP, 18
-	db FRAMEBLOCK_68, $4b, $00
-	db FRAMEBLOCK_68, $8c, $00
-	db FRAMEBLOCK_68, $20, $00
-	db FRAMEBLOCK_68, $1c, $00
-	db FRAMEBLOCK_68, $19, $00
-	db FRAMEBLOCK_68, $14, $00
-	db FRAMEBLOCK_68, $76, $00
-	db FRAMEBLOCK_68, $8d, $00
-	db FRAMEBLOCK_68, $15, $00
-	db FRAMEBLOCK_68, $10, $00
-	db FRAMEBLOCK_68, $0c, $00
-	db FRAMEBLOCK_68, $06, $00
-	db FRAMEBLOCK_68, $8e, $00
-	db FRAMEBLOCK_68, $8f, $00
-	db FRAMEBLOCK_68, $90, $00
-	db FRAMEBLOCK_68, $26, $00
-	db FRAMEBLOCK_68, $23, $00
-	db FRAMEBLOCK_68, $1f, $00
+	db FRAMEBLOCK_68, BASECOORD_4B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_8C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_20, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_1C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_19, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_14, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_76, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_8D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_15, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_10, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_0C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_06, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_8E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_8F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_90, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_26, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_23, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_68, BASECOORD_1F, FRAMEBLOCKMODE_00
 
 Subanimation44:
 	subanim SUBANIMTYPE_HVFLIP, 12
-	db FRAMEBLOCK_69, $4b, $00
-	db FRAMEBLOCK_69, $8c, $00
-	db FRAMEBLOCK_69, $20, $00
-	db FRAMEBLOCK_69, $1c, $00
-	db FRAMEBLOCK_69, $19, $00
-	db FRAMEBLOCK_69, $14, $00
-	db FRAMEBLOCK_69, $76, $00
-	db FRAMEBLOCK_69, $8d, $00
-	db FRAMEBLOCK_69, $15, $00
-	db FRAMEBLOCK_69, $10, $00
-	db FRAMEBLOCK_69, $0c, $00
-	db FRAMEBLOCK_69, $06, $00
+	db FRAMEBLOCK_69, BASECOORD_4B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_69, BASECOORD_8C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_69, BASECOORD_20, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_69, BASECOORD_1C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_69, BASECOORD_19, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_69, BASECOORD_14, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_69, BASECOORD_76, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_69, BASECOORD_8D, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_69, BASECOORD_15, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_69, BASECOORD_10, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_69, BASECOORD_0C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_69, BASECOORD_06, FRAMEBLOCKMODE_00
 
 Subanimation43:
 	subanim SUBANIMTYPE_ENEMY, 3
-	db FRAMEBLOCK_6A, $07, $00
-	db FRAMEBLOCK_6B, $0f, $00
-	db FRAMEBLOCK_6C, $17, $00
+	db FRAMEBLOCK_6A, BASECOORD_07, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6B, BASECOORD_0F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6C, BASECOORD_17, FRAMEBLOCKMODE_00
 
 Subanimation45:
 	subanim SUBANIMTYPE_HVFLIP, 4
-	db FRAMEBLOCK_6D, $8b, $00
-	db FRAMEBLOCK_6D, $84, $00
-	db FRAMEBLOCK_6D, $63, $00
-	db FRAMEBLOCK_6D, $8c, $00
+	db FRAMEBLOCK_6D, BASECOORD_8B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6D, BASECOORD_84, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6D, BASECOORD_63, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6D, BASECOORD_8C, FRAMEBLOCKMODE_00
 
 Subanimation46:
 	subanim SUBANIMTYPE_HVFLIP, 6
-	db FRAMEBLOCK_6D, $8b, $00
-	db FRAMEBLOCK_6D, $84, $00
-	db FRAMEBLOCK_6D, $63, $00
-	db FRAMEBLOCK_6D, $8c, $00
-	db FRAMEBLOCK_6D, $0a, $00
-	db FRAMEBLOCK_6D, $89, $00
+	db FRAMEBLOCK_6D, BASECOORD_8B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6D, BASECOORD_84, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6D, BASECOORD_63, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6D, BASECOORD_8C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6D, BASECOORD_0A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6D, BASECOORD_89, FRAMEBLOCKMODE_00
 
 Subanimation47:
 	subanim SUBANIMTYPE_HVFLIP, 3
-	db FRAMEBLOCK_06, $82, $00
-	db FRAMEBLOCK_07, $82, $00
-	db FRAMEBLOCK_08, $96, $00
+	db FRAMEBLOCK_06, BASECOORD_82, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_07, BASECOORD_82, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_08, BASECOORD_96, FRAMEBLOCKMODE_00
 
 Subanimation48:
 	subanim SUBANIMTYPE_NORMAL, 6
-	db FRAMEBLOCK_03, $41, $04
-	db FRAMEBLOCK_03, $48, $04
-	db FRAMEBLOCK_04, $48, $04
-	db FRAMEBLOCK_03, $48, $04
-	db FRAMEBLOCK_05, $48, $04
-	db FRAMEBLOCK_03, $48, $03
+	db FRAMEBLOCK_03, BASECOORD_41, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_03, BASECOORD_48, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_04, BASECOORD_48, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_03, BASECOORD_48, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_05, BASECOORD_48, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_03, BASECOORD_48, FRAMEBLOCKMODE_03
 
 Subanimation49:
 	subanim SUBANIMTYPE_NORMAL, 4
-	db FRAMEBLOCK_04, $48, $04
-	db FRAMEBLOCK_03, $48, $04
-	db FRAMEBLOCK_05, $48, $04
-	db FRAMEBLOCK_03, $48, $03
+	db FRAMEBLOCK_04, BASECOORD_48, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_03, BASECOORD_48, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_05, BASECOORD_48, FRAMEBLOCKMODE_04
+	db FRAMEBLOCK_03, BASECOORD_48, FRAMEBLOCKMODE_03
 
 Subanimation4a:
 	subanim SUBANIMTYPE_NORMAL, 1
-	db FRAMEBLOCK_04, $84, $03
+	db FRAMEBLOCK_04, BASECOORD_84, FRAMEBLOCKMODE_03
 
 Subanimation4b:
 	subanim SUBANIMTYPE_NORMAL, 3
-	db FRAMEBLOCK_06, $72, $00
-	db FRAMEBLOCK_07, $72, $00
-	db FRAMEBLOCK_08, $72, $00
+	db FRAMEBLOCK_06, BASECOORD_72, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_07, BASECOORD_72, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_08, BASECOORD_72, FRAMEBLOCKMODE_00
 
 Subanimation4c:
 	subanim SUBANIMTYPE_COORDFLIP, 8
-	db FRAMEBLOCK_6F, $30, $00
-	db FRAMEBLOCK_6E, $30, $00
-	db FRAMEBLOCK_70, $30, $00
-	db FRAMEBLOCK_6E, $30, $00
-	db FRAMEBLOCK_6F, $30, $00
-	db FRAMEBLOCK_6E, $30, $00
-	db FRAMEBLOCK_70, $30, $00
-	db FRAMEBLOCK_6E, $30, $00
+	db FRAMEBLOCK_6F, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6E, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_70, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6E, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6F, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6E, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_70, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_6E, BASECOORD_30, FRAMEBLOCKMODE_00
 
 Subanimation4d:
 	subanim SUBANIMTYPE_HVFLIP, 6
-	db FRAMEBLOCK_32, $4b, $00
-	db FRAMEBLOCK_33, $4f, $00
-	db FRAMEBLOCK_32, $20, $00
-	db FRAMEBLOCK_33, $16, $00
-	db FRAMEBLOCK_32, $19, $00
-	db FRAMEBLOCK_33, $0d, $00
+	db FRAMEBLOCK_32, BASECOORD_4B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_33, BASECOORD_4F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_32, BASECOORD_20, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_33, BASECOORD_16, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_32, BASECOORD_19, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_33, BASECOORD_0D, FRAMEBLOCKMODE_00
 
 Subanimation51:
 	subanim SUBANIMTYPE_ENEMY, 6
-	db FRAMEBLOCK_76, $1b, $00
-	db FRAMEBLOCK_34, $1b, $00
-	db FRAMEBLOCK_76, $1b, $00
-	db FRAMEBLOCK_34, $1b, $00
-	db FRAMEBLOCK_76, $1b, $00
-	db FRAMEBLOCK_34, $1b, $00
+	db FRAMEBLOCK_76, BASECOORD_1B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_1B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_76, BASECOORD_1B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_1B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_76, BASECOORD_1B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_34, BASECOORD_1B, FRAMEBLOCKMODE_00
 
 Subanimation52:
 	subanim SUBANIMTYPE_HFLIP, 7
-	db FRAMEBLOCK_77, $25, $00
-	db FRAMEBLOCK_77, $9b, $00
-	db FRAMEBLOCK_77, $1a, $00
-	db FRAMEBLOCK_77, $9c, $00
-	db FRAMEBLOCK_77, $2f, $00
-	db FRAMEBLOCK_77, $50, $00
-	db FRAMEBLOCK_77, $8c, $00
+	db FRAMEBLOCK_77, BASECOORD_25, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_77, BASECOORD_9B, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_77, BASECOORD_1A, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_77, BASECOORD_9C, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_77, BASECOORD_2F, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_77, BASECOORD_50, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_77, BASECOORD_8C, FRAMEBLOCKMODE_00
 
 Subanimation53:
 	subanim SUBANIMTYPE_NORMAL, 12
-	db FRAMEBLOCK_78, $30, $00
-	db FRAMEBLOCK_78, $a2, $00
-	db FRAMEBLOCK_78, $93, $00
-	db FRAMEBLOCK_78, $61, $00
-	db FRAMEBLOCK_78, $73, $00
-	db FRAMEBLOCK_78, $a7, $00
-	db FRAMEBLOCK_78, $33, $00
-	db FRAMEBLOCK_78, $a8, $00
-	db FRAMEBLOCK_78, $0e, $00
-	db FRAMEBLOCK_78, $a9, $00
-	db FRAMEBLOCK_78, $34, $00
-	db FRAMEBLOCK_01, $9e, $00
+	db FRAMEBLOCK_78, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_78, BASECOORD_A2, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_78, BASECOORD_93, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_78, BASECOORD_61, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_78, BASECOORD_73, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_78, BASECOORD_A7, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_78, BASECOORD_33, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_78, BASECOORD_A8, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_78, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_78, BASECOORD_A9, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_78, BASECOORD_34, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_01, BASECOORD_9E, FRAMEBLOCKMODE_00
 
 Subanimation54:
 	subanim SUBANIMTYPE_NORMAL, 11
-	db FRAMEBLOCK_79, $30, $00
-	db FRAMEBLOCK_79, $a2, $00
-	db FRAMEBLOCK_79, $93, $00
-	db FRAMEBLOCK_79, $61, $00
-	db FRAMEBLOCK_79, $73, $00
-	db FRAMEBLOCK_79, $a7, $00
-	db FRAMEBLOCK_79, $33, $00
-	db FRAMEBLOCK_79, $a8, $00
-	db FRAMEBLOCK_79, $0e, $00
-	db FRAMEBLOCK_79, $a9, $00
-	db FRAMEBLOCK_79, $34, $00
+	db FRAMEBLOCK_79, BASECOORD_30, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_79, BASECOORD_A2, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_79, BASECOORD_93, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_79, BASECOORD_61, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_79, BASECOORD_73, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_79, BASECOORD_A7, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_79, BASECOORD_33, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_79, BASECOORD_A8, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_79, BASECOORD_0E, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_79, BASECOORD_A9, FRAMEBLOCKMODE_00
+	db FRAMEBLOCK_79, BASECOORD_34, FRAMEBLOCKMODE_00
--- a/engine/battle/animations.asm
+++ b/engine/battle/animations.asm
@@ -132,15 +132,15 @@
 	jp nz, .loop ; go back up if there are more tiles to draw
 .afterDrawingTiles
 	ld a, [wFBMode]
-	cp 2
+	cp FRAMEBLOCKMODE_02
 	jr z, .advanceFrameBlockDestAddr; skip delay and don't clean OAM buffer
 	ld a, [wSubAnimFrameDelay]
 	ld c, a
 	call DelayFrames
 	ld a, [wFBMode]
-	cp 3
+	cp FRAMEBLOCKMODE_03
 	jr z, .advanceFrameBlockDestAddr ; skip cleaning OAM buffer
-	cp 4
+	cp FRAMEBLOCKMODE_04
 	jr z, .done ; skip cleaning OAM buffer and don't advance the frame block destination address
 	ld a, [wAnimationID]
 	cp GROWL