void draw_intro()
{
-display_text_file("intro.txt", "images/background/arctis2.jpg");
+display_text_file("intro.txt", "/images/background/arctis2.jpg");
}
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
SDL_Flip(screen);
}
+void fadeout()
+{
+ clearscreen(0, 0, 0);
+ white_text->draw_align("Loading...", screen->w/2, screen->h/2, A_HMIDDLE, A_TOP);
+ flipscreen();
+}
+
void update_rect(SDL_Surface *scr, Sint32 x, Sint32 y, Sint32 w, Sint32 h)
{
if(!use_gl)
void updatescreen(void);
void flipscreen(void);
void update_rect(SDL_Surface *scr, Sint32 x, Sint32 y, Sint32 w, Sint32 h);
+void fadeout();
#endif /*SUPERTUX_SCREEN_H*/
draw_intro();
}
+ fadeout();
WorldMapNS::WorldMap worldmap;
// Load the game or at least set the savegame_file variable
speed = -MAX_VEL;
/* draw the credits */
-
surface->draw_bg();
- if (strcmp(file, "CREDITS") == 0)
- white_big_text->drawf("- SuperTux " VERSION " -",
- 0, screen->h-scroll, A_HMIDDLE, A_TOP, 2);
-
y = 0;
for(int i = 0; i < length; i++)
{
y += white_text->h+ITEMS_SPACE;
break;
case '-':
- white_big_text->drawf(names.item[i], 0, 60+screen->h+y-scroll, A_HMIDDLE, A_TOP, 3);
+ white_big_text->drawf(names.item[i]+1, 0, 60+screen->h+y-scroll, A_HMIDDLE, A_TOP, 3);
y += white_big_text->h+ITEMS_SPACE;
break;
default: