Allow users skip intro, and reduce its length
authorMiriam Ruiz <miriam@debian.org>
Wed, 3 Dec 2008 11:03:52 +0000 (3 12:03 +0100)
committerMiriam Ruiz <miriam@debian.org>
Wed, 3 Dec 2008 11:03:52 +0000 (3 12:03 +0100)
src/intro.cpp

index 3af144d..c136eb4 100644 (file)
@@ -32,7 +32,8 @@ void kball_do_the_intro()
 
        play_sample(krono_wav, 255,128,1000,0);
 
-       rest(3000);
+       rest(1000);
+       while (!keypressed()) rest(100);
        
        clear_bitmap(screen);
        data.nuke_datafile();   
@@ -92,6 +93,7 @@ void kball_do_the_exit()
        buf[xbuf] = '\0';
        textout_centre_ex(screen, font, buf, x,y,c,-1);
        
-       rest(5000);
+       rest(500);
+       while (!keypressed()) rest(100);
        clear_bitmap(screen);
 }