public ObstacleManager(FlappisPlanusGame game)
        {
            Game      = game;
            Random    = new Random();
            Obstacles = new List <Obstacle>();

            Textures = new Texture2D[2, 3]
            {
                {
                    game.Content.Load <Texture2D>("rockGrass"),
                    game.Content.Load <Texture2D>("rockSnow"),
                    game.Content.Load <Texture2D>("rockIce")
                },

                {
                    game.Content.Load <Texture2D>("rockGrassDown"),
                    game.Content.Load <Texture2D>("rockSnowDown"),
                    game.Content.Load <Texture2D>("rockIceDown")
                }
            };

            Obstacles.Add(new Obstacle(Game.Content.Load <Texture2D>("rockGrassDown"), new Point(1000, 0), -5, 1));
            Obstacles.Add(new Obstacle(Game.Content.Load <Texture2D>("rockGrass"), new Point(700, 242), -5, 0));

            Speeds = new int[] { -5, -7, -10 };
        }
        public Background(FlappisPlanusGame game, Texture2D sky, Rectangle skyRect)
        {
            Game       = game;
            SkyTexture = sky;
            Rectangle  = skyRect;

            Speeds = new int[] { -15, -17, -20 };
        }
        public Explosion(FlappisPlanusGame game)
        {
            Frames = new List <Texture2D>(9);

            Game = game;

            SoundEffect = Game.Content.Load <SoundEffect>("boom");

            for (int i = 0; i < 9; i++)
            {
                string name = "regularExplosion0" + i.ToString();
                Frames.Add(Game.Content.Load <Texture2D>(name));
            }
        }
 static void Main()
 {
     using (var game = new FlappisPlanusGame())
         game.Run();
 }