Ejemplo n.º 1
0
        public override IEnumerable <IGameObject> GetStaticObjects()
        {
            var borders = SceneCreation.GenerateBorders(Globals.ContentManager.Load <Texture2D>("IngameObjects\\Border"), 15);

            foreach (var border in borders)
            {
                yield return(border);
            }
        }
Ejemplo n.º 2
0
        public override IEnumerable <IGameObject> GetStaticObjects()
        {
            var borders = SceneCreation.GenerateBorders(Globals.ContentManager.Load <Texture2D>("IngameObjects\\Border"), 7);

            foreach (var border in borders)
            {
                yield return(border);
            }

            yield return(new StandardObject(Globals.ContentManager.Load <Texture2D>("IngameObjects\\Wall"))
            {
                Position = new Vector2(0, 175),
                ObjectRectangle = new Rectangle(0, 175, 700, 150),
                IsSolid = true
            });
        }
Ejemplo n.º 3
0
 public override IEnumerable <EnemyDot> GetEnemyDots()
 {
     for (var y = -100; y < Globals.Bounds.Y; y += 125)
     {
         for (var x = 150; x < Globals.Bounds.X - 200; x += 100)
         {
             yield return new EnemyDot
                    {
                        Speed           = 2,
                        Position        = new Vector2(x, y),
                        ObjectRectangle = new Rectangle(x, y, 16, 16),
                        PathPoints      =
                            SceneCreation.GenerateSquarePath(new Vector2(x, y), new Vector2(100, 125),
                                                             Direction.Right)
                    }
         }
         ;
     }
 }