Exemple #1
0
 public SkeletonDeath(Skeleton zombie)
     : base(zombie)
 {
     this.Image = SpriteBank.GetAnimation(@"Images\Zombies\Skeletons\Skeleton\Death");
     this.Image.Delay = 40;
     this.Align = new Vector2(52f, 97f);
     this.Timer.Interval = TimeSpan.FromMilliseconds(2000);
 }
Exemple #2
0
 public SkeletonWalk(Skeleton zombie)
     : base(zombie)
 {
     this.Image = SpriteBank.GetAnimation(@"Images\Zombies\Skeletons\Skeleton\Walk");
     this.Image.Delay = 40;
     this.Align = new Vector2(3f, 74f);
     this.Velocity = 1;
 }
Exemple #3
0
 public SkeletonAttack(Skeleton zombie)
     : base(zombie)
 {
     this.Image = SpriteBank.GetAnimation(@"Images\Zombies\Skeletons\Skeleton\Attack");
     this.Image.Delay = 80;
     this.Align = new Vector2(32f, 89f);
     this.Damage = 10;
     this.AttackTimer.Interval = TimeSpan.FromMilliseconds(this.Image.Delay * (this.Image.Frames.Count + 1));
 }
Exemple #4
0
        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));
        }