public BladeSkeletonDeath(BladeSkeleton zombie) : base(zombie) { this.Image = SpriteBank.GetAnimation(@"Images\Zombies\Skeletons\GiantSkeletonBlade\Death"); this.Image.Delay = 40; this.Align = new Vector2(33f, 145f); this.Timer.Interval = TimeSpan.FromMilliseconds(2000); }
public BladeSkeletonWalk(BladeSkeleton zombie) : base(zombie) { this.Image = SpriteBank.GetAnimation(@"Images\Zombies\Skeletons\GiantSkeletonBlade\Walk"); this.Image.Delay = 40; this.Align = new Vector2(7f, 106f); this.Velocity = 2; }
public BladeSkeletonAttack(BladeSkeleton zombie) : base(zombie) { this.Image = SpriteBank.GetAnimation(@"Images\Zombies\Skeletons\GiantSkeletonBlade\Attack"); this.Image.Delay = 60; this.Align = new Vector2(49f, 153f); this.Damage = 15; this.AttackTimer.Interval = TimeSpan.FromMilliseconds(this.Image.Delay * (this.Image.Frames.Count + 1)); }
void TimerTick(Counter.ICounter counter) { Zombies.Zombie zombie; if (GRandom.RandomLogic(0.3)) { zombie = new Zombies.Skeletons.Skeleton(this); } else if (GRandom.RandomLogic(0.6)) { zombie = new Zombies.Skeletons.BarrowWight(this); } else { zombie = new Zombies.Skeletons.BladeSkeleton(this); } ZMan.Add(zombie, GRandom.RandomInt(grid.NumberOfRows)); }