Ignore:
Timestamp:
Aug 11, 2010, 6:18:42 PM (11 years ago)
Author:
sam
Message:

Implement a quit() mechanism in the Game class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/test-map.cpp

    r100 r102  
    2222    Game *game = new Game("maps/testmap.tmx");
    2323
    24     for (int done = 0; !done; )
     24    while (!game->Finished())
    2525    {
    2626        /* Test stuff */
     
    4141        {
    4242            if (event.type == SDL_QUIT)
    43                 done = 1;
     43                game->Quit();
    4444            if (event.type == SDL_KEYDOWN)
    4545            {
     
    4747                    video->FullScreen();
    4848                else if (event.key.keysym.sym == SDLK_ESCAPE)
    49                     done = 1;
     49                    game->Quit();
    5050            }
    5151        }
Note: See TracChangeset for help on using the changeset viewer.