Esempio n. 1
0
 public static Enemy CreateWanderer(Vector2 position)
 {
     var enemy = new Enemy(Art.Wanderer, position);
     enemy.AddBehavior(enemy.MoveRandomly());
     enemy.PointValue = 1;
     return enemy;
 }
Esempio n. 2
0
 public static Enemy CreateSeeker(Vector2 position)
 {
     var enemy = new Enemy(Art.Seeker, position);
     enemy.AddBehavior(enemy.FollowPlayer());
     enemy.PointValue = 2;
     return enemy;
 }
Esempio n. 3
0
        public static Enemy CreateWanderer(Vector2 position)
        {
            var enemy = new Enemy(Art.Wanderer, position);

            enemy.AddBehavior(enemy.MoveRandomly());
            enemy.PointValue = 1;
            return(enemy);
        }
Esempio n. 4
0
        public static Enemy CreateSeeker(Vector2 position)
        {
            var enemy = new Enemy(Art.Seeker, position);

            enemy.AddBehavior(enemy.FollowPlayer());
            enemy.PointValue = 2;
            return(enemy);
        }