/// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            new GFX(this.GraphicsDevice, this.Content);
            new InputManager();
            new SoundEngine();
            new ResourceManager();
            ResourceManager.Inst.LoadResources();

            this.IsMouseVisible = true;
            GFX.Inst.GetGUI().DefaultFont = Content.Load<SpriteFont>("SimpleFont");

            //activeScreen = new HuntScreen();
            activeScreen = new PlayerScreen();
            //editor = new LevelEditor(mainScene);
            /*
            using (FileStream fs = new FileStream("Graphics.txt", FileMode.Create))
            {
                using (StreamWriter wr = new StreamWriter(fs))
                {
                    PrintPresentationParameters(wr, GFX.Device.PresentationParameters);
                    PrintRenderState(wr, GFX.Device.RenderState);
                    PrintDeviceCapabilities(wr, GFX.Device.GraphicsDeviceCapabilities);
                }
            }*/
        }
Exemple #2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            new SoundEngine();
            new GFX(this.GraphicsDevice, this.Content);
            new InputManager();
            new ResourceManager();
            ResourceManager.Inst.LoadResources();

            GFX.Inst.GetGUI().DefaultFont = Content.Load<SpriteFont>("SimpleFont");

            //activeScreen = new HuntScreen();
            activeScreen = new PlayerScreen();

            /*
            for (int i = 0; i < 8; i++)
            {
                Texture2D heightmap = GFX.Inst.TerrainGen.GenerateTerrain(512, 512);
                heightmap.Save("Test_" + i + ".dds", ImageFileFormat.Dds);
            }
            this.Exit();
            */

            //editor = new LevelEditor(mainScene);
            /*
            using (FileStream fs = new FileStream("Graphics.txt", FileMode.Create))
            {
                using (StreamWriter wr = new StreamWriter(fs))
                {
                    PrintPresentationParameters(wr, GFX.Device.PresentationParameters);
                    PrintRenderState(wr, GFX.Device.RenderState);
                    PrintDeviceCapabilities(wr, GFX.Device.GraphicsDeviceCapabilities);
                }
            }*/
        }