Ejemplo n.º 1
0
 public BowserDead(BowserObject context) : base(context)
 {
     Context.IsDead      = true;
     Context.PointValue  = 0;
     Context.BoundingBox = null;
     Context.Gravity     = false;
     Context.Sprite      = DeadEnemySpriteFactory.Create(EnemyType.Bowser);
 }
Ejemplo n.º 2
0
 public KoopaDead(AbstractEnemy context) : base(context)
 {
     Context.IsDead      = true;
     Context.PointValue  = 0;
     Context.BoundingBox = null;
     Context.Gravity     = false;
     Context.Sprite      = DeadEnemySpriteFactory.Create(EnemyType.GreenKoopa);
     Context.Velocity    = Vector2.Zero;
 }
Ejemplo n.º 3
0
 public GoombaDead(AbstractEnemy context) : base(context)
 {
     context.IsDead      = true;
     Context.Sprite      = DeadEnemySpriteFactory.Create(EnemyType.Goomba);
     Context.PointValue  = 0;
     Context.Velocity    = new Vector2(0, 0);
     Context.Gravity     = false;
     Context.TimeDead    = 0;
     Context.Position    = new Vector2(Context.Position.X + (Context.Sprite.SourceRectangle.Width / 2), Context.Position.Y);
     Context.BoundingBox = null;
 }
Ejemplo n.º 4
0
		public override void BecomeDead()
		{
			Context.PowerupState = new PiranhaDead(Context);
			Context.Sprite = DeadEnemySpriteFactory.Create(EnemyType.Piranha);
			Context.BoundingBox = null;
        }