Random complaints

Discussion in 'Ice Hockey Sim' started by Flack, Jun 16, 2009.

  1. Flack SA Flack

    int[], teams, int team[].

    Damn you all.
     
  2. Clank CL Ank

    Yay for good coding practices! ^_^
     
  3. Flack SA Flack

    Damn <> not being good enough, thank you "".
     
  4. Bibu07 BI Immanuel

  5. Flack SA Flack

    Why are you laughing?
     
  6. Bibu07 BI Immanuel

    possibly a retard :$
     
  7. Flack SA Flack

    Seems likely.
     
  8. Bender BG Herd

  9. Hunter AD Hunt

    2 please.
     
  10. Hybrid A Kolar

    Stone please.
     
  11. chapnis CO Chapnis

    i hate my life... ... ..
     
  12. Storer BA Storer

    I hate you.
     
  13. Flack SA Flack

    Code:
    #include "SDL/SDL.h"
    #include "SDL/SDL_Mixer.h"
    
    int main (int argc, char* args[]) {
    
        //Init
        SDL_Init( SDL_INIT_EVERYTHING );
        SDL_Surface *buffer;
    
        bool fullscreen = false;
    
        if ( fullscreen == true ) {
            buffer = SDL_SetVideoMode(1280,800,32,SDL_SWSURFACE | SDL_FULLSCREEN);
        } else {
            buffer = SDL_SetVideoMode(1024,768,32,SDL_SWSURFACE);
        }
    
        Mix_OpenAudio(22050,MIX_DEFAULT_FORMAT,2,4096); //Init Sound
    
        //Set window caption
        SDL_WM_SetCaption("SDL Game!", NULL);
    
        //Game Loop to go here
        SDL_Event event;
        bool quit = false;
    
        while ( SDL_PollEvent(&event) && quit != true ) {
            switch (event.type) {
                case SDL_KEYDOWN:
                    if (event.key.keysym.sym == SDLK_ESCAPE) {
                        quit = true;
                    }
            }
    
        }
    
        //Kill/Free space
        SDL_FreeSurface(buffer);
        SDL_Quit();
    
        return 0;
    }
    
    **** you while loop.
     
    Last edited: Jun 24, 2009
  14. Bender BG Herd

    That stupid loop!
     
  15. Bedsey JB Dempsey

    Worst. Loop. Ever.
     
  16. Flack SA Flack

    Nuh, it's not infinite, those are much worse.
     
  17. Jono J Ono

    Boolean ftw!

    Arrays ftl!
     
  18. SuperNova SJ Nova

    [​IMG]
     
    Last edited: Jun 27, 2009
  19. Bedsey JB Dempsey

    How's things?
     
  20. Bender BG Herd

    Pretty good, you?
     

Share This Page