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);
            SpriteManager.LoadSpritesFromContent(Content);
            ViewPortManager.Load(GraphicsDevice.Viewport);
            ViewPortManager.graphicsDevice = GraphicsDevice;
            SoundManager.Load(Content);
            // Create a new SpriteBatch, which can be used to draw textures.
            App.LoadContent(Content, GraphicsDevice);
            Menu.LoadContent(GraphicsDevice, App.MenuFont);

            SoundManager.Play(SoundManager.LoopSong, 0.5f);
        }
Exemplo n.º 2
0
 void Window_ClientSizeChanged(object sender, EventArgs e)
 {
     ViewPortManager.Load(GraphicsDevice.Viewport);
     ViewPortManager.graphicsDevice = GraphicsDevice;
 }