FrankBalls_1

This commit is contained in:
MARKPRO44 2023-08-17 11:52:37 +03:00
parent 590540ab61
commit 044f2f410e
2 changed files with 21 additions and 2 deletions

View file

@ -12,9 +12,17 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
{
internal class Frank : CoreEnemy
{
private Vector2 position;
private bool isGoRight = false;
public Vector2 Position
{
get { return position; }
}
public Frank(Vector2 position) : base(position)
{
this.position = position;
Width = 112;
Height = 160;
GraphicsComponent.StartAnimation("FrankMoveLeft");

View file

@ -12,8 +12,18 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
{
public class FrankBalls : CoreEnemy
{
private Rectangle collision;
private Vector2 position;
private int healthBall;
public Rectangle Collision
{
get { return collision; }
}
public FrankBalls(Vector2 position) : base(position)
{
this.position = position;
name = "FrankBalls";
Width = 40;
Height = 40;
@ -25,7 +35,8 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
public override void Attack()
{
collision = new Rectangle((int)position.X, (int)position.Y, 40, 40);
}
public override void Death()
@ -35,7 +46,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
public override void Move(GameTime gameTime)
{
}
}
}