Skip to content

Commit

Permalink
SHERLOCK: implement 2 palette faes for the intro
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kiewitz committed May 31, 2015
1 parent 73bc6e4 commit 0fcddd5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion engines/sherlock/scalpel/scalpel.cpp
Expand Up @@ -440,8 +440,13 @@ void ScalpelEngine::showOpening() {
}

bool ScalpelEngine::showCityCutscene() {
byte greyPalette[PALETTE_SIZE];
byte palette[PALETTE_SIZE];

// Demo fades from black into grey and then fades from grey into the scene
Common::fill(&greyPalette[0], &greyPalette[PALETTE_SIZE], 142);
_screen->fadeIn((const byte *)greyPalette, 3);

_music->playMusic("prolog1.mus");
_animation->_gfxLibraryFilename = "title.lib";
_animation->_soundLibraryFilename = "title.snd";
Expand Down Expand Up @@ -569,7 +574,10 @@ bool ScalpelEngine::scrollCredits() {
// Load the images for displaying credit text
Common::SeekableReadStream *stream = _res->load("credits.vgs", "title.lib");
ImageFile creditsImages(*stream);
_screen->setPalette(creditsImages._palette);

// Demo fades slowly from the scene into credits palette
_screen->fadeIn(creditsImages._palette, 3);

delete stream;

// Save a copy of the screen background for use in drawing each credit frame
Expand Down

0 comments on commit 0fcddd5

Please sign in to comment.