Beispiel #1
0
        /// <summary>
        /// Loads content
        /// </summary>
        /// <param name="content"></param>
        public void LoadContent(ContentManager content)
        {
            Player.LoadContent(content);
            gameMap.LoadContent(content);
            Rain.LoadContent(content);
            Land.LoadContent(content);

            coinPickup = content.Load <SoundEffect>("Pickup_Coin15");
            if (RandomHelper.NextFloat(0, 1) > 0.5)
            {
                BackgroundMusic = content.Load <Song>("Gamesong");
            }
            else
            {
                BackgroundMusic = content.Load <Song>("Stepping");
            }
            arial          = content.Load <SpriteFont>("arial");
            greySquare     = content.Load <Texture2D>("VW Grey Square");
            backgrounds[0] = content.Load <Texture2D>("VW Ginesha");
            backgrounds[1] = content.Load <Texture2D>("VW New Gloucester");
            backgrounds[2] = content.Load <Texture2D>("VW Onyet");
        }