Beispiel #1
0
		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;
		}
Beispiel #2
0
		public static void Main(string[] args) {
			using (Core game = new Core())
				game.Run();
		}