/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (PacmanGame game = new PacmanGame()) { game.Run(); } }
public static void Main() { Window gameWindow = new Window("Pacman", 348, 475); // create game window PacmanGame thisGame = new PacmanGame(gameWindow); // create game object while (!gameWindow.CloseRequested) { SplashKit.ProcessEvents(); // process events thisGame.HandleInput(); thisGame.Update(); thisGame.Draw(); } }
private static void Main(string[] args) { using (PacmanGame pacmanGame = new PacmanGame()) pacmanGame.Run(); }