public Main() { _startMS = DateTime.Now.Millisecond; Settings.CheckVersionFormat(); Settings.Load(); IO.Log.Initialize(); Settings.CheckFolders(); IO.Log.Write("Entering constructor"); IO.Log.Write("Setting graphics device"); graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; IO.Log.Write("Initializing resource manager"); ResourceManager.Initialize(Content); window = Window; //Window.Title = "MicroWorld Version " + Settings.VERSION; Window.Title = "MicroWorld";// Version " + Settings.VERSION; //this.IsMouseVisible = true; game = this; cd = new CircuitDebug(); //cd.Show(); mv = new Debug.MatrixViewer(); //mv.Show(); //graphics.SynchronizeWithVerticalRetrace = true; //graphics.PreferredBackBufferWidth = 1024; //graphics.PreferredBackBufferHeight = 768; //graphics.PreferredBackBufferWidth = 800; //graphics.PreferredBackBufferHeight = 480; IO.Log.Write("Setting graphics stencil format"); Main.graphics.PreferredDepthStencilFormat = DepthFormat.Depth24Stencil8; //graphics.PreferredBackBufferWidth = 1920; //graphics.PreferredBackBufferHeight = 1080; //graphics.IsFullScreen = true; windowWidth = graphics.PreferredBackBufferWidth; windowHeight = graphics.PreferredBackBufferHeight; Settings.ChangeResolution(); Utilities.Reflection.RegisterAssembly(System.Reflection.Assembly.GetExecutingAssembly()); GlobalEvents.onResolutionChanged += new GlobalEvents.ResolutionEventHandler(GlobalEvents_onResolutionChanged); lastSecond = DateTime.Now.Second; IO.Log.Write("Leaving constructor"); //vvm.Show(); Logics.CircuitPart.ttt(); }
int tps = 0; //ticks #endregion Fields #region Constructors public Main() { _startMS = DateTime.Now.Millisecond; Settings.CheckVersionFormat(); Settings.Load(); IO.Log.Initialize(); Settings.CheckFolders(); IO.Log.Write("Entering constructor"); IO.Log.Write("Setting graphics device"); graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; IO.Log.Write("Initializing resource manager"); ResourceManager.Initialize(Content); window = Window; //Window.Title = "MicroWorld Version " + Settings.VERSION; Window.Title = "MicroWorld";// Version " + Settings.VERSION; //this.IsMouseVisible = true; game = this; cd = new CircuitDebug(); //cd.Show(); mv = new Debug.MatrixViewer(); //mv.Show(); //graphics.SynchronizeWithVerticalRetrace = true; //graphics.PreferredBackBufferWidth = 1024; //graphics.PreferredBackBufferHeight = 768; //graphics.PreferredBackBufferWidth = 800; //graphics.PreferredBackBufferHeight = 480; IO.Log.Write("Setting graphics stencil format"); Main.graphics.PreferredDepthStencilFormat = DepthFormat.Depth24Stencil8; //graphics.PreferredBackBufferWidth = 1920; //graphics.PreferredBackBufferHeight = 1080; //graphics.IsFullScreen = true; windowWidth = graphics.PreferredBackBufferWidth; windowHeight = graphics.PreferredBackBufferHeight; Settings.ChangeResolution(); Utilities.Reflection.RegisterAssembly(System.Reflection.Assembly.GetExecutingAssembly()); GlobalEvents.onResolutionChanged += new GlobalEvents.ResolutionEventHandler(GlobalEvents_onResolutionChanged); lastSecond = DateTime.Now.Second; IO.Log.Write("Leaving constructor"); //vvm.Show(); Logics.CircuitPart.ttt(); }