FrankBalls_1
This commit is contained in:
parent
590540ab61
commit
044f2f410e
2 changed files with 21 additions and 2 deletions
|
@ -12,9 +12,17 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
{
|
{
|
||||||
internal class Frank : CoreEnemy
|
internal class Frank : CoreEnemy
|
||||||
{
|
{
|
||||||
|
private Vector2 position;
|
||||||
private bool isGoRight = false;
|
private bool isGoRight = false;
|
||||||
|
|
||||||
|
public Vector2 Position
|
||||||
|
{
|
||||||
|
get { return position; }
|
||||||
|
}
|
||||||
|
|
||||||
public Frank(Vector2 position) : base(position)
|
public Frank(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
|
this.position = position;
|
||||||
Width = 112;
|
Width = 112;
|
||||||
Height = 160;
|
Height = 160;
|
||||||
GraphicsComponent.StartAnimation("FrankMoveLeft");
|
GraphicsComponent.StartAnimation("FrankMoveLeft");
|
||||||
|
|
|
@ -12,8 +12,18 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
{
|
{
|
||||||
public class FrankBalls : CoreEnemy
|
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)
|
public FrankBalls(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
|
this.position = position;
|
||||||
name = "FrankBalls";
|
name = "FrankBalls";
|
||||||
Width = 40;
|
Width = 40;
|
||||||
Height = 40;
|
Height = 40;
|
||||||
|
@ -25,7 +35,8 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
public override void Attack()
|
public override void Attack()
|
||||||
{
|
{
|
||||||
|
collision = new Rectangle((int)position.X, (int)position.Y, 40, 40);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Death()
|
public override void Death()
|
||||||
|
@ -35,7 +46,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
public override void Move(GameTime gameTime)
|
public override void Move(GameTime gameTime)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue