示例#1
0
文件: Game.cs 项目: GodLesZ/svn-dump
		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();
		}
示例#2
0
文件: Game.cs 项目: GodLesZ/svn-dump
		public override void Restart() {
			mWorld = new World(this);
		}