From d3ad8401691fcd67c8be6f079e5861449a6d3a1d Mon Sep 17 00:00:00 2001 From: Ethan Date: Wed, 2 Apr 2025 19:33:13 -0400 Subject: [PATCH] Adjusted animation definition storage to be consistent --- Resources/animations/bubble_anim.xml | 4 +- Resources/animations/character_anims.xml | 22 ++++++ Resources/animations/machine_gun_anim.xml | 2 + Resources/animations/object_anims.xml | 2 + Resources/animations/pistol_anim.xml | 2 + Resources/animations/player_anim.xml | 11 --- .../{shot_gun_anim.xml => shotgun_anim.xml} | 4 +- Resources/animations/tmp_enemy_anim.xml | 2 + Resources/animations/weapon_anims.xml | 13 ++++ Resources/scenes/debugScene.xml | 16 ++--- .../{soundeffects => sounds/gun}/big_boom.ogg | Bin .../gun}/small_pew.ogg | Bin Resources/sounds/gun_effects.xml | 10 +++ Resources/weapons/bubblegun.xml | 16 ++--- YuppleMayham/include/gameplay/map.h | 8 +-- YuppleMayham/include/gameplay/scene.h | 2 +- .../include/gameplay/weapons/weapon.h | 2 +- YuppleMayham/include/graphics/animation.h | 15 ++-- YuppleMayham/include/sound/soundeffect.h | 4 +- YuppleMayham/include/util.h | 18 +++++ .../include/utility/resourcemanager.h | 10 +-- YuppleMayham/include/utility/xmlloader.h | 66 ++++++++++-------- YuppleMayham/src/gameplay/map.cpp | 4 +- YuppleMayham/src/gameplay/scene.cpp | 2 +- YuppleMayham/src/gameplay/weapons/weapon.cpp | 8 +-- YuppleMayham/src/graphics/animation.cpp | 29 ++++---- YuppleMayham/src/sound/soundeffect.cpp | 4 +- YuppleMayham/src/util.cpp | 14 +++- YuppleMayham/src/utility/resourcemanager.cpp | 10 +-- YuppleMayham/src/utility/xmlloader.cpp | 53 ++++++-------- 30 files changed, 216 insertions(+), 137 deletions(-) create mode 100644 Resources/animations/character_anims.xml create mode 100644 Resources/animations/object_anims.xml delete mode 100644 Resources/animations/player_anim.xml rename Resources/animations/{shot_gun_anim.xml => shotgun_anim.xml} (95%) create mode 100644 Resources/animations/weapon_anims.xml rename Resources/{soundeffects => sounds/gun}/big_boom.ogg (100%) rename Resources/{soundeffects => sounds/gun}/small_pew.ogg (100%) create mode 100644 Resources/sounds/gun_effects.xml diff --git a/Resources/animations/bubble_anim.xml b/Resources/animations/bubble_anim.xml index d5c71bb..a2b7efd 100644 --- a/Resources/animations/bubble_anim.xml +++ b/Resources/animations/bubble_anim.xml @@ -1,6 +1,8 @@ + diff --git a/Resources/animations/character_anims.xml b/Resources/animations/character_anims.xml new file mode 100644 index 0000000..98bcd3f --- /dev/null +++ b/Resources/animations/character_anims.xml @@ -0,0 +1,22 @@ + + + + + + + + + + diff --git a/Resources/animations/machine_gun_anim.xml b/Resources/animations/machine_gun_anim.xml index 3ce6e89..dba9320 100644 --- a/Resources/animations/machine_gun_anim.xml +++ b/Resources/animations/machine_gun_anim.xml @@ -1,3 +1,4 @@ + diff --git a/Resources/animations/object_anims.xml b/Resources/animations/object_anims.xml new file mode 100644 index 0000000..b9b5749 --- /dev/null +++ b/Resources/animations/object_anims.xml @@ -0,0 +1,2 @@ + + diff --git a/Resources/animations/pistol_anim.xml b/Resources/animations/pistol_anim.xml index c0450d6..8d2c786 100644 --- a/Resources/animations/pistol_anim.xml +++ b/Resources/animations/pistol_anim.xml @@ -1,3 +1,4 @@ + diff --git a/Resources/animations/player_anim.xml b/Resources/animations/player_anim.xml deleted file mode 100644 index 0b375f9..0000000 --- a/Resources/animations/player_anim.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - 7 - - - - - 5 - - - diff --git a/Resources/animations/shot_gun_anim.xml b/Resources/animations/shotgun_anim.xml similarity index 95% rename from Resources/animations/shot_gun_anim.xml rename to Resources/animations/shotgun_anim.xml index 55c75c1..0601b58 100644 --- a/Resources/animations/shot_gun_anim.xml +++ b/Resources/animations/shotgun_anim.xml @@ -1,3 +1,4 @@ + diff --git a/Resources/animations/tmp_enemy_anim.xml b/Resources/animations/tmp_enemy_anim.xml index 68500ec..139959f 100644 --- a/Resources/animations/tmp_enemy_anim.xml +++ b/Resources/animations/tmp_enemy_anim.xml @@ -1,6 +1,8 @@ + diff --git a/Resources/animations/weapon_anims.xml b/Resources/animations/weapon_anims.xml new file mode 100644 index 0000000..1d1ab6f --- /dev/null +++ b/Resources/animations/weapon_anims.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/Resources/scenes/debugScene.xml b/Resources/scenes/debugScene.xml index 2ba1a06..50b4ad8 100644 --- a/Resources/scenes/debugScene.xml +++ b/Resources/scenes/debugScene.xml @@ -3,19 +3,19 @@ - - + + - - + +