예제 #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()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            ventanaInicio = new VentanaManager(Content);



            // TODO: use this.Content to load your game content here
        }
예제 #2
0
        public void ChangeScene(Scene newScene)
        {
            ActiveScene = newScene;

            if (ActiveScene == Scene.Start)
            {
                ventanaInicio = new VentanaManager(Content);
            }
            if (ActiveScene == Scene.Game)
            {
                ventanaJuego = new Juego(Content);
            }
            if (ActiveScene == Scene.End)
            {
                ventanaFinal = new VentanaManager(Content);
            }
            if (ActiveScene == Scene.Credits)
            {
                ventanaCreditos = new VentanaManager(Content);
            }
        }