Exemplo n.º 1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            SpriteBatch = new SpriteBatch(GraphicsDevice);
            Player      = new Player(new Vector2(EntityWidth * (float)PlayerStartColumn, EntityHeight * (float)(PlayerStartRow + 1)));
            m_DebugText = Content.Load <SpriteFont>("Fonts/Joystix_12");
            MapManager.LoadMaps(); //Maps must be loaded before levels - H.E.
            LevelManager.LoadLevels();
            MainMenu.LoadContent();
            LevelTransition.LoadContent();
            HUD.LoadContent();
            GameOverMenu.LoadContent();
            GameWinMenu.LoadContent();
            LevelTransition.LoadContent();
            Leaderboard.LoadContent();
            GetLeaderBoardResultsAsync();
            m_DebugPixel = new Texture2D(GraphicsDevice, 1, 1, false, SurfaceFormat.Color);
            m_DebugPixel.SetData(new[] { Color.White });

            ScanLines = Content.Load <Texture2D>("UI/ScanLines");
            Border    = Content.Load <Texture2D>("UI/Border");

            MenuMusic = Content.Load <SoundEffect>("Sounds/Menu");
            GameMusic = Content.Load <SoundEffect>("Sounds/Main"); //Sounds/Last_slice_hiphop
        }