ScrollingShooter.ScrollingShooterGame.LoadContent C# (CSharp) Method

LoadContent() protected method

LoadContent will be called once per game and is the place to load all of your content.
protected LoadContent ( ) : void
return void
        protected override void LoadContent()
        {
            // Create our viewports
            gameViewport = GraphicsDevice.Viewport;
            worldViewport = new Viewport(0, 0, 768, 720); // Twice as wide as 16 tiles
            guiViewport = new Viewport(768, 0, 512, 720); // Remaining space

            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            GameObjectManager = new GameObjectManager(Content);

            // TODO: use this.Content to load your game content here
            MediaPlayer.IsRepeating = true;
            Player = GameObjectManager.CreatePlayerShip(PlayerShipType.Shrike, new Vector2(300, 300));
            Player.ApplyPowerup(PowerupType.Default);
            LevelManager.LoadContent();
            GuiManager.LoadContent();
            SplashType = SplashScreenType.GameStart;
            GameState = GameState.Splash;
            loadSplashScreen(new GameStart());
        }