diff --git a/DangerousD/Content/animations/GhostSpawn b/DangerousD/Content/animations/GhostSpawn index c9f62f8..99d53e1 100644 --- a/DangerousD/Content/animations/GhostSpawn +++ b/DangerousD/Content/animations/GhostSpawn @@ -1 +1 @@ -{"id":"GhostSpawn","textureName":"MonstersAnimations","startSpriteRectangle":{"X":26,"Y":503,"Width":24,"Height":30},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":3,"isCycle":false,"offset":"0, 0"} +{"id":"GhostSpawn","textureName":"MonstersAnimations","startSpriteRectangle":{"X":26,"Y":503,"Width":24,"Height":30},"frameSecond":[{"Item1":0,"Item2":20}],"textureFrameInterval":1,"framesCount":3,"isCycle":false,"offset":"0, 0"} diff --git a/DangerousD/Content/animations/HunchmanDaggerLeft b/DangerousD/Content/animations/HunchmanDaggerLeft new file mode 100644 index 0000000..b21064a --- /dev/null +++ b/DangerousD/Content/animations/HunchmanDaggerLeft @@ -0,0 +1 @@ +{"id":"HunchmanDaggerLeft","textureName":"MonstersAnimations","startSpriteRectangle":{"X":224,"Y":129,"Width":9,"Height":6},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":1,"isCycle":true,"offset":"0, 0"} diff --git a/DangerousD/Content/animations/HunchmanDaggerRight b/DangerousD/Content/animations/HunchmanDaggerRight new file mode 100644 index 0000000..43354f1 --- /dev/null +++ b/DangerousD/Content/animations/HunchmanDaggerRight @@ -0,0 +1 @@ +{"id":"HunchmanDaggerRight","textureName":"MonstersAnimations","startSpriteRectangle":{"X":224,"Y":116,"Width":9,"Height":6},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":1,"isCycle":true,"offset":"0, 0"} diff --git a/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/FrankBalls.cs b/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/FrankBalls.cs index 127362d..7101da2 100644 --- a/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/FrankBalls.cs +++ b/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/FrankBalls.cs @@ -21,7 +21,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters acceleration = Vector2.Zero; } - protected override GraphicsComponent GraphicsComponent { get; } = new (new List { "BallMoveRight" }, "BallMoveRight"); + protected override GraphicsComponent GraphicsComponent { get; } = new(new List { "BallMoveRight" }, "BallMoveRight"); public override void Attack() { diff --git a/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/Ghost.cs b/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/Ghost.cs index 18464b2..1e47e99 100644 --- a/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/Ghost.cs +++ b/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/Ghost.cs @@ -16,11 +16,12 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters name = "Ghost"; Width = 48; Height = 62; + GraphicsComponent.StartAnimation("GhostSpawn"); + } protected override GraphicsComponent GraphicsComponent { get; } = new(new List { "GhostMoveRight", "GhostMoveLeft", "GhostSpawn", "GhostAttack" }, "GhostMoveRight"); - public override void Attack() { diff --git a/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/HunchmanDagger.cs b/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/HunchmanDagger.cs new file mode 100644 index 0000000..9e616ed --- /dev/null +++ b/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/HunchmanDagger.cs @@ -0,0 +1,40 @@ +using DangerousD.GameCore.Graphics; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters +{ + public class HunchmanDagger : CoreEnemy + { + public HunchmanDagger(Vector2 position) : base(position) + { + name = "Hunchman"; + monster_speed = 1; + Width = 9; + Height = 6; + } + + protected override GraphicsComponent GraphicsComponent { get; } = new (new List { "HunchmanDaggerRight", "HunchmanDaggerLeft" }, "HunchmanDaggerLeft"); + + public override void Attack() + { + + } + + public override void Death() + { + + } + + public override void Move(GameTime gameTime) + { + + } + } +}