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