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; }
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; }
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); }