fixanother

This commit is contained in:
polten0 2023-08-17 16:12:25 +03:00
parent 7b6d750bc1
commit 69c5ea29b9
2 changed files with 8 additions and 5 deletions

View file

@ -40,10 +40,12 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
{
Attack();
Move(gameTime);
}
else
{
velocity.X = 0;
}
Death();
base.Update(gameTime);
}
@ -58,6 +60,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
if (gameObject is null)
{
isAttacking = true;
GraphicsComponent.StopAnimation();
if (velocity.X > 0)
{
if (GraphicsComponent.GetCurrentAnimation != "HunchmanAttackRight")

View file

@ -12,8 +12,8 @@ namespace DangerousD.GameCore.Levels
{
//Spider down-up
new Player(new Vector2(80,0));
var Zombie = new Zombie(new Vector2(250, 128));
//new Player(new Vector2(80,0));
//var Zombie = new Zombie(new Vector2(250, 128));
//var Frank = new Frank(new Vector2(384, 128));
//var Spider = new Spider(new Vector2(112, 0));
//var FlameSkull = new FlameSkull(new Vector2(512, 0));
@ -32,7 +32,7 @@ namespace DangerousD.GameCore.Levels
}
new GrassBlock(new Vector2(500, 224));
Player player = new Player(new Vector2(400, 64));
player.AnimationJump();
//player.AnimationJump();
//new GrassBlock(new Vector2(500, 224));
}