/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (ExampleGame game = new ExampleGame()) { game.Run(); } }
static void Main(string[] args) { GameInstance = new ExampleGame("GameProperties.json"); GameInstance.Run(); while (GameInstance.isRunning) { } // Game has shutdown at this point }
static void Main() { using (var game = new ExampleGame()) game.Run(); }