X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsupertux.c;h=ad86fd69d0d987193f5633f57d36f2acb186d119;hb=2f395aba3974db45f45a8587ed423a3abeab4cd5;hp=89216aa3c8d0a054f02fcc9591f2522fea3b90f2;hpb=a6e764aab14a8157ba5b59c3d271a2073f9eae80;p=supertux.git diff --git a/src/supertux.c b/src/supertux.c index 89216aa3c..ad86fd69d 100644 --- a/src/supertux.c +++ b/src/supertux.c @@ -7,31 +7,11 @@ bill@newbreedsoftware.com http://www.newbreedsoftware.com/supertux/ - April 11, 2000 - April 12, 2000 + April 11, 2000 - December 29, 2003 */ -#include -#include -#include -#include -#include -#include -#include - -#ifdef LINUX -#include -#include -#include -#endif - -#include "defines.h" -#include "globals.h" -#include "setup.h" -#include "intro.h" -#include "title.h" -#include "gameloop.h" -#include "screen.h" +#include "supertux.h" /* --- MAIN --- */ @@ -46,15 +26,26 @@ int main(int argc, char * argv[]) parseargs(argc, argv); - st_setup(); - + st_directory_setup(); + st_audio_setup(); + st_video_setup(); + st_joystick_setup(); + st_general_setup(); + done = intro(); + done = 0; + while (!done) { done = title(); if (!done) + { + if(game_started) done = gameloop(); + else if(level_editor_started) + done = leveleditor(1); + } } clearscreen(0, 0, 0);