[Scummvm-git-logs] scummvm master -> 18b272da29651f66c6dffb868367bf4076b4878c

dreammaster dreammaster at scummvm.org
Wed Sep 21 01:47:07 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
18b272da29 XEEN: Added Clouds of Xeen title screen


Commit: 18b272da29651f66c6dffb868367bf4076b4878c
    https://github.com/scummvm/scummvm/commit/18b272da29651f66c6dffb868367bf4076b4878c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-09-20T19:46:55-04:00

Commit Message:
XEEN: Added Clouds of Xeen title screen

Changed paths:
    engines/xeen/worldofxeen/clouds_cutscenes.cpp
    engines/xeen/worldofxeen/worldofxeen.cpp



diff --git a/engines/xeen/worldofxeen/clouds_cutscenes.cpp b/engines/xeen/worldofxeen/clouds_cutscenes.cpp
index 1d578bd..9c29ca7 100644
--- a/engines/xeen/worldofxeen/clouds_cutscenes.cpp
+++ b/engines/xeen/worldofxeen/clouds_cutscenes.cpp
@@ -26,12 +26,69 @@
 namespace Xeen {
 
 bool CloudsCutscenes::showCloudsTitle() {
-	// TODO
+	EventsManager &events = *_vm->_events;
+	Screen &screen = *_vm->_screen;
+	Sound &sound = *_vm->_sound;
+
+	// Initial logo display
+	screen.loadPalette("intro1.pal");
+	screen.loadBackground("logobak.raw");
+	screen.saveBackground();
+	screen.update();
+	screen.fadeIn(128);
+
+	SpriteResource logo[2] = {
+		SpriteResource("logo.vga"), SpriteResource("logo1.vga")
+	};
+	sound.playFX(1);
+
+	for (int idx = 0; idx < 80; ++idx) {
+		screen.restoreBackground();
+		logo[idx / 65].draw(screen, idx % 65);
+		screen.update();
+
+		switch (idx) {
+		case 37:
+			sound.playFX(0);
+			sound.playFX(53);
+			sound.playSound("fire.voc");
+			break;
+		case 52:
+		case 60:
+			sound.playFX(3);
+			break;
+		case 64:
+			sound.playFX(2);
+			break;
+		case 66:
+			sound.playFX(52);
+			sound.playSound("meangro&.voc");
+			break;
+		default:
+			break;
+		}
+
+		WAIT(2);
+	}
+
+	screen.restoreBackground();
+	screen.update();
+	WAIT(30);
+
+	screen.fadeOut(8);
+	logo[0].clear();
+	logo[1].clear();
+
 	return true;
 }
 
 bool CloudsCutscenes::showCloudsIntro() {
 	// TODO
+	EventsManager &events = *_vm->_events;
+	Sound &sound = *_vm->_sound;
+	sound.playSong("mm4theme.m");
+
+	events.wait(5000);
 	return true;
 }
 
diff --git a/engines/xeen/worldofxeen/worldofxeen.cpp b/engines/xeen/worldofxeen/worldofxeen.cpp
index ccdbf8c..7f29249 100644
--- a/engines/xeen/worldofxeen/worldofxeen.cpp
+++ b/engines/xeen/worldofxeen/worldofxeen.cpp
@@ -40,7 +40,7 @@ void WorldOfXeenEngine::showIntro() {
 	if (gDebugLevel == 0)
 		return;
 
-	showDarkSideEnding();
+	showCloudsTitle();
 	/*
 	bool completed = showDarkSideTitle();
 	if (!_seenDarkSideIntro && completed)





More information about the Scummvm-git-logs mailing list