/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (DemoGame game = new DemoGame()) { game.Run(); } }
public static void Main(string[] args) { // Don't wrap this in a using() because that will dispose // the game object. Unlike a normal console application, // we exit Main() and the game continues running. var game = new DemoGame(); // This kicks of the asynchronous game loop and // returns immediately for the Web platform. game.Run(); }
static void Main(string[] args) { Game game = new DemoGame(); game.Run(); }