From f43411c840da620913a5899320983379662c5d67 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 17 Aug 2024 19:16:17 +0300 Subject: [PATCH 1/2] AddFirstFilePNG --- ZoFo/Content/Textures/Animations/player_look_down.animation | 1 + ZoFo/Content/Textures/Animations/player_look_left.animation | 1 + .../Textures/Animations/player_look_left_down.animation | 1 + .../Content/Textures/Animations/player_look_left_up.animation | 1 + ZoFo/Content/Textures/Animations/player_look_right.animation | 1 + .../Textures/Animations/player_look_right_down.animation | 1 + .../Textures/Animations/player_look_right_up.animation | 1 + ZoFo/Content/Textures/Animations/player_look_up.animation | 1 + .../GameCore/GameObjects/Entities/EntittyForAnimationTests.cs | 4 ++-- 9 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 ZoFo/Content/Textures/Animations/player_look_down.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_left.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_left_down.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_left_up.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_right.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_right_down.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_right_up.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_up.animation diff --git a/ZoFo/Content/Textures/Animations/player_look_down.animation b/ZoFo/Content/Textures/Animations/player_look_down.animation new file mode 100644 index 0000000..3c008c0 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_down.animation @@ -0,0 +1 @@ +{"id":"player_look_down","textureName":"Textures/AnimationTextures/Character/hr-level1_idle","startSpriteRectangle":{"X":0,"Y":464,"Width":92,"Height":116},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_left.animation b/ZoFo/Content/Textures/Animations/player_look_left.animation new file mode 100644 index 0000000..13e8f0e --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_left.animation @@ -0,0 +1 @@ +{"id":"player_look_left","textureName":"Textures/AnimationTextures/Character/hr-level1_idle","startSpriteRectangle":{"X":0,"Y":696,"Width":92,"Height":116},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_left_down.animation b/ZoFo/Content/Textures/Animations/player_look_left_down.animation new file mode 100644 index 0000000..78f5150 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_left_down.animation @@ -0,0 +1 @@ +{"id":"player_look_left_down","textureName":"Textures/AnimationTextures/Character/hr-level1_idle","startSpriteRectangle":{"X":0,"Y":580,"Width":92,"Height":116},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_left_up.animation b/ZoFo/Content/Textures/Animations/player_look_left_up.animation new file mode 100644 index 0000000..9fc0cf6 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_left_up.animation @@ -0,0 +1 @@ +{"id":"player_look_left_up","textureName":"Textures/AnimationTextures/Character/hr-level1_idle","startSpriteRectangle":{"X":0,"Y":812,"Width":92,"Height":116},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_right.animation b/ZoFo/Content/Textures/Animations/player_look_right.animation new file mode 100644 index 0000000..3d1bf63 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_right.animation @@ -0,0 +1 @@ +{"id":"player_look_right","textureName":"Textures/AnimationTextures/Character/hr-level1_idle","startSpriteRectangle":{"X":0,"Y":232,"Width":92,"Height":116},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_right_down.animation b/ZoFo/Content/Textures/Animations/player_look_right_down.animation new file mode 100644 index 0000000..fbdbeb9 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_right_down.animation @@ -0,0 +1 @@ +{"id":"player_look_right_down","textureName":"Textures/AnimationTextures/Character/hr-level1_idle","startSpriteRectangle":{"X":0,"Y":348,"Width":92,"Height":116},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_right_up.animation b/ZoFo/Content/Textures/Animations/player_look_right_up.animation new file mode 100644 index 0000000..0fe59d4 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_right_up.animation @@ -0,0 +1 @@ +{"id":"player_look_right_up","textureName":"Textures/AnimationTextures/Character/hr-level1_idle","startSpriteRectangle":{"X":0,"Y":116,"Width":92,"Height":116},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_up.animation b/ZoFo/Content/Textures/Animations/player_look_up.animation new file mode 100644 index 0000000..3b24dca --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_up.animation @@ -0,0 +1 @@ +{"id":"player_look_up","textureName":"Textures/AnimationTextures/Character/hr-level1_idle","startSpriteRectangle":{"X":0,"Y":0,"Width":92,"Height":116},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/GameCore/GameObjects/Entities/EntittyForAnimationTests.cs b/ZoFo/GameCore/GameObjects/Entities/EntittyForAnimationTests.cs index fb545a1..09d21c2 100644 --- a/ZoFo/GameCore/GameObjects/Entities/EntittyForAnimationTests.cs +++ b/ZoFo/GameCore/GameObjects/Entities/EntittyForAnimationTests.cs @@ -12,10 +12,10 @@ namespace ZoFo.GameCore.GameObjects.Entities { //public override GraphicsComponent graphicsComponent { get; } = new GraphicsComponent(new List { "тут пишите название анимации" }, "сдублируйте " + - public override GraphicsComponent graphicsComponent { get; } = new GraphicsComponent(new List { "player_idle_top-right_noweapon" }, "player_idle_top-right_noweapon"); + public override GraphicsComponent graphicsComponent { get; } = new GraphicsComponent(new List { "player_look_left_up" }, "player_look_left_up"); public EntittyForAnimationTests(Vector2 position) : base(position) { - graphicsComponent.ObjectDrawRectangle = new Rectangle(0,0,50,50); + graphicsComponent.ObjectDrawRectangle = new Rectangle(0,0,150,150); position = new Vector2(10, 10); } From c8108d6781374d8f8fab75f0ed75e15968fd4d20 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 17 Aug 2024 20:14:55 +0300 Subject: [PATCH 2/2] PlayerWeaponAFK --- .../Textures/Animations/player_look_down_weapon.animation | 1 + .../Textures/Animations/player_look_left_down_weapon.animation | 1 + .../Textures/Animations/player_look_left_up_weapon.animation | 1 + .../Textures/Animations/player_look_left_weapon.animation | 1 + .../Textures/Animations/player_look_right_down_weapon.animation | 1 + .../Textures/Animations/player_look_right_up_weapon.animation | 1 + .../Textures/Animations/player_look_right_weapon.animation | 1 + .../Content/Textures/Animations/player_look_up_weapon.animation | 1 + ZoFo/GameCore/GameObjects/Entities/EntittyForAnimationTests.cs | 2 +- ZoFo/ZoFo.csproj | 1 + 10 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 ZoFo/Content/Textures/Animations/player_look_down_weapon.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_left_down_weapon.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_left_up_weapon.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_left_weapon.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_right_down_weapon.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_right_up_weapon.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_right_weapon.animation create mode 100644 ZoFo/Content/Textures/Animations/player_look_up_weapon.animation diff --git a/ZoFo/Content/Textures/Animations/player_look_down_weapon.animation b/ZoFo/Content/Textures/Animations/player_look_down_weapon.animation new file mode 100644 index 0000000..76f9b07 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_down_weapon.animation @@ -0,0 +1 @@ +{"id":"player_look_down_weapon","textureName":"Textures/AnimationTextures/Character/hr-level1_idle_gun","startSpriteRectangle":{"X":0,"Y":512,"Width":110,"Height":128},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_left_down_weapon.animation b/ZoFo/Content/Textures/Animations/player_look_left_down_weapon.animation new file mode 100644 index 0000000..bc33138 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_left_down_weapon.animation @@ -0,0 +1 @@ +{"id":"player_look_left_down_weapon","textureName":"Textures/AnimationTextures/Character/hr-level1_idle_gun","startSpriteRectangle":{"X":0,"Y":640,"Width":110,"Height":128},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_left_up_weapon.animation b/ZoFo/Content/Textures/Animations/player_look_left_up_weapon.animation new file mode 100644 index 0000000..68ddc46 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_left_up_weapon.animation @@ -0,0 +1 @@ +{"id":"player_look_left_up_weapon","textureName":"Textures/AnimationTextures/Character/hr-level1_idle_gun","startSpriteRectangle":{"X":0,"Y":896,"Width":110,"Height":128},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_left_weapon.animation b/ZoFo/Content/Textures/Animations/player_look_left_weapon.animation new file mode 100644 index 0000000..2df77a0 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_left_weapon.animation @@ -0,0 +1 @@ +{"id":"player_look_left_weapon","textureName":"Textures/AnimationTextures/Character/hr-level1_idle_gun","startSpriteRectangle":{"X":0,"Y":768,"Width":110,"Height":128},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_right_down_weapon.animation b/ZoFo/Content/Textures/Animations/player_look_right_down_weapon.animation new file mode 100644 index 0000000..49ca0c6 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_right_down_weapon.animation @@ -0,0 +1 @@ +{"id":"player_look_right_down_weapon","textureName":"Textures/AnimationTextures/Character/hr-level1_idle_gun","startSpriteRectangle":{"X":0,"Y":384,"Width":110,"Height":128},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_right_up_weapon.animation b/ZoFo/Content/Textures/Animations/player_look_right_up_weapon.animation new file mode 100644 index 0000000..897c4b5 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_right_up_weapon.animation @@ -0,0 +1 @@ +{"id":"player_look_right_up_weapon","textureName":"Textures/AnimationTextures/Character/hr-level1_idle_gun","startSpriteRectangle":{"X":0,"Y":128,"Width":110,"Height":128},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_right_weapon.animation b/ZoFo/Content/Textures/Animations/player_look_right_weapon.animation new file mode 100644 index 0000000..e7a753c --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_right_weapon.animation @@ -0,0 +1 @@ +{"id":"player_look_right_weapon","textureName":"Textures/AnimationTextures/Character/hr-level1_idle_gun","startSpriteRectangle":{"X":0,"Y":256,"Width":110,"Height":128},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/Content/Textures/Animations/player_look_up_weapon.animation b/ZoFo/Content/Textures/Animations/player_look_up_weapon.animation new file mode 100644 index 0000000..4f45286 --- /dev/null +++ b/ZoFo/Content/Textures/Animations/player_look_up_weapon.animation @@ -0,0 +1 @@ +{"id":"player_look_up_weapon","textureName":"Textures/AnimationTextures/Character/hr-level1_idle_gun","startSpriteRectangle":{"X":0,"Y":0,"Width":110,"Height":128},"frameSecond":[{"Item1":0,"Item2":5}],"textureFrameInterval":0,"framesCount":22,"isCycle":true,"offset":"0, 0"} diff --git a/ZoFo/GameCore/GameObjects/Entities/EntittyForAnimationTests.cs b/ZoFo/GameCore/GameObjects/Entities/EntittyForAnimationTests.cs index 09d21c2..7d2d3c5 100644 --- a/ZoFo/GameCore/GameObjects/Entities/EntittyForAnimationTests.cs +++ b/ZoFo/GameCore/GameObjects/Entities/EntittyForAnimationTests.cs @@ -12,7 +12,7 @@ namespace ZoFo.GameCore.GameObjects.Entities { //public override GraphicsComponent graphicsComponent { get; } = new GraphicsComponent(new List { "тут пишите название анимации" }, "сдублируйте " + - public override GraphicsComponent graphicsComponent { get; } = new GraphicsComponent(new List { "player_look_left_up" }, "player_look_left_up"); + public override GraphicsComponent graphicsComponent { get; } = new GraphicsComponent(new List { "player_look_left_up_weapon" }, "player_look_left_up_weapon"); public EntittyForAnimationTests(Vector2 position) : base(position) { graphicsComponent.ObjectDrawRectangle = new Rectangle(0,0,150,150); diff --git a/ZoFo/ZoFo.csproj b/ZoFo/ZoFo.csproj index c3a2b36..93ee8ce 100644 --- a/ZoFo/ZoFo.csproj +++ b/ZoFo/ZoFo.csproj @@ -33,6 +33,7 @@ +