Exemple #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);

            // Startlevel festlegen
            overworld = new Overworld(Content, Window, 3, settings, this.graphics);
            //gameState = GameState.isOverworld;

            //demo = new Stages.Stage_Demo(16, 0, 0, Content, Window);
            // TODO: use this.Content to load your game content here
        }
Exemple #2
0
        /// <summary>
        /// UnloadContent will be called once per game and is the place to unload
        /// all content.
        /// </summary>
        protected override void UnloadContent()
        {
            /*
             * if (demo != null)
             * {
             *  demo.killStage(0);
             *  demo.killGeneral();
             *  demo = null;
             * }
             */
            if (overworld != null)
            {
                overworld.Kill();
                overworld = null;
            }

            // TODO: Unload any non ContentManager content here
        }