示例#1
0
文件: Core.cs 项目: GodLesZ/svn-dump
		public Core() {
			if (Instance != null) {
				throw new AccessViolationException("Unable to create more than one instance");
			}

			Instance = this;

			Exiting += Game_Exiting;
			mGraphics = new GraphicsDeviceManager(this);
			ScreenManager = new GameScreenManager(this);

			IsMouseVisible = true;
			//IsFixedTimeStep = false;
		}
示例#2
0
文件: Core.cs 项目: GodLesZ/svn-dump
		public static void Main(string[] args) {
			using (Core game = new Core())
				game.Run();
		}