Example #1
0
        public WarZGame()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            Graphics.SynchronizeWithVerticalRetrace = false;
            IsFixedTimeStep = false;

            var profilerGameComponent = new ProfilerGameComponent(this, "Fonts/Segoi");
            ProfilingManager.Run = false;
            Components.Add(profilerGameComponent);

            graphics.PreferMultiSampling = true;
        }
Example #2
0
        public WarZGame()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            Graphics.SynchronizeWithVerticalRetrace = false;
            IsFixedTimeStep = false;

            var profilerGameComponent = new ProfilerGameComponent(this, "Fonts/Segoi");

            ProfilingManager.Run = false;
            Components.Add(profilerGameComponent);

            graphics.PreferMultiSampling = true;
        }
Example #3
0
        public GameManager()
        {
            Graphics = new GraphicsDeviceManager(this);
            BaseComponents = new List<IGameComponent>();
            Content.RootDirectory = "Content";
            Instance = this;

            Graphics.PreferredBackBufferWidth = GameSettings.Default.ResolutionWidth;
            Graphics.PreferredBackBufferHeight = GameSettings.Default.ResolutionHeight;

            //if (GameSettings.Default.FullScreen != Graphics.IsFullScreen)
            //    Graphics.ToggleFullScreen();

            //UniversalRandom.ResetInstance(0);

            var profilerGameComponent = new ProfilerGameComponent(this, "ProfilerFont");
            ProfilingManager.Run = false;
            Components.Add(profilerGameComponent);

            IsMouseVisible = true;
        }
        public GameManager()
        {
            Graphics              = new GraphicsDeviceManager(this);
            BaseComponents        = new List <IGameComponent>();
            Content.RootDirectory = "Content";
            Instance              = this;

            Graphics.PreferredBackBufferWidth  = GameSettings.Default.ResolutionWidth;
            Graphics.PreferredBackBufferHeight = GameSettings.Default.ResolutionHeight;

            //if (GameSettings.Default.FullScreen != Graphics.IsFullScreen)
            //    Graphics.ToggleFullScreen();

            //UniversalRandom.ResetInstance(0);

            var profilerGameComponent = new ProfilerGameComponent(this, "ProfilerFont");

            ProfilingManager.Run = false;
            Components.Add(profilerGameComponent);



            IsMouseVisible = true;
        }
Example #5
0
File: Game1.cs Project: kozupi/--
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferHeight = 1000;
     graphics.PreferredBackBufferWidth = 1600;
     Content.RootDirectory = "Content";
     var profilerGameComponent = new ProfilerGameComponent(this, @"Fonts\gameFont");
     showDebug = false;
     Components.Add(profilerGameComponent);
 }