public override IEnumerable <IGameObject> GetStaticObjects() { var borders = SceneCreation.GenerateBorders(Globals.ContentManager.Load <Texture2D>("IngameObjects\\Border"), 15); foreach (var border in borders) { yield return(border); } }
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 }); }
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) } } ; } }