Beispiel #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PacmanGame game = new PacmanGame())
     {
         game.Run();
     }
 }
Beispiel #2
0
    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();
        }
    }
Beispiel #3
0
 private static void Main(string[] args)
 {
     using (PacmanGame pacmanGame = new PacmanGame())
         pacmanGame.Run();
 }