Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- quit = 0;
- option = 0;
- init_Screen();
- SDL_Event event;
- SDL_EnableKeyRepeat(0,0);
- struct S_SPRITESHEET *S_sprite;
- init_Surface(&S_sprite);
- while(!quit && SDL_WaitEvent(&event)) {
- process_Events(event);
- if(option == 0) {option = show_Menu(&screen,&S_sprite,event); }
- if (option == 1 ) { start_GW(&screen,&S_sprite,event); }
- else if (option == 2) { start_Game(&screen,&S_sprite,event); }
- SDL_Flip(SDL_GetVideoSurface());
- }
- free_Surface(&S_sprite);
- // Close SDL process
- SDL_Quit();
- return 0;
- }
Add Comment
Please, Sign In to add comment