From 488ff8846ecd8de766f95e8036136f2cbb51b26d Mon Sep 17 00:00:00 2001 From: Joost Peters Date: Sat, 8 Mar 2003 12:46:51 +0000 Subject: Added voice support, and more (cd_)intro stuff + added myself to the README :) svn-id: r6768 --- sky/intro.cpp | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'sky/intro.cpp') diff --git a/sky/intro.cpp b/sky/intro.cpp index 04761bf45b..6d4bd115d3 100644 --- a/sky/intro.cpp +++ b/sky/intro.cpp @@ -232,6 +232,49 @@ void SkyState::initVirgin() { free(_tempPal); } +void SkyState::intro(void) { + + _workScreen = (uint8 *)loadFile(60112, NULL); //while virgin screen is up, load rev screen + _tempPal = (uint8 *)loadFile(60113, NULL); + + //loadSectionMusic(0); + + delay(3000); //keep virgin screen up for 3 seconds + + //if (!_isCDVersion) + // fn_start_music(); + + delay(3000); //and another 3 seconds. + fn_fade_down(0); //remove virgin screen + showScreen(); + paletteFadeUp(_tempPal); + free (_tempPal); + free (_workScreen); + + //while rev is up, load gibbons screen + _workScreen = (uint8 *)loadFile(60114, NULL); + _tempPal = (uint8 *)loadFile(60115, NULL); + + intro_text_space = (uint8 *)malloc(10000); + intro_text_save = (uint8 *)malloc(10000); + + //get_text(77); + + delay(8000); // keep revolution up for 8 seconds + + fn_fade_down(0); + showScreen(); + paletteFadeUp(_tempPal); + + free (_tempPal); + free (_workScreen); + + if (_isCDVersion) + doCDIntro(); + + +} + void SkyState::showScreen(void) { _system->copy_rect(_workScreen, 320, 0, 0, 320, 200); -- cgit v1.2.3