protected override void Initialize() { mWorld = new World(this); //#if !DEBUG Graphics.PreferredBackBufferWidth = GraphicsDevice.DisplayMode.Width; Graphics.PreferredBackBufferHeight = GraphicsDevice.DisplayMode.Height; Graphics.IsFullScreen = true; //#else // Graphics.PreferredBackBufferWidth = 1300; // Graphics.PreferredBackBufferHeight = 700; //#endif Graphics.ApplyChanges(); IsMouseVisible = true; mDifSimple = new Rectangle(Window.ClientBounds.Width / 2 - 170, Window.ClientBounds.Height - 200, 100, 40); mDifNormal = new Rectangle(Window.ClientBounds.Width / 2 - 50, Window.ClientBounds.Height - 200, 100, 40); mDifHeavy = new Rectangle(Window.ClientBounds.Width / 2 + 70, Window.ClientBounds.Height - 200, 100, 40); base.Initialize(); }
public override void Restart() { mWorld = new World(this); }