Ejemplo n.º 1
0
 public SpiderDeath(Spider zombie)
     : base(zombie)
 {
     this.Image = SpriteBank.GetAnimation(@"Images\Zombies\Spiders\Spider\Death");
     this.Image.Delay = 40;
     this.Align = new Vector2(2f, 36f);
     this.Timer.Interval = TimeSpan.FromMilliseconds(2000);
 }
Ejemplo n.º 2
0
 public SpiderWalk(Spider zombie)
     : base(zombie)
 {
     this.Image = SpriteBank.GetAnimation(@"Images\Zombies\Spiders\Spider\Walk");
     this.Image.Delay = 40;
     this.Align = new Vector2(5f, 29f);
     this.Velocity = GRandom.RandomInt(5, 15);
 }
Ejemplo n.º 3
0
 public SpiderAttack(Spider zombie)
     : base(zombie)
 {
     this.Image = SpriteBank.GetAnimation(@"Images\Zombies\Spiders\Spider\Attack");
     this.Image.Delay = 40;
     this.Align = new Vector2(12f, 38f);
     this.Damage = 10;
     this.AttackTimer.Interval = TimeSpan.FromMilliseconds(this.Image.Delay * (this.Image.Frames.Count + 1));
 }