Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 4
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;
        }
Ejemplo n.º 5
0
Archivo: Game1.cs Proyecto: 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);
 }