[Scummvm-cvs-logs] SF.net SVN: scummvm:[55205] scummvm/trunk/engines/mohawk/riven_external.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Tue Jan 11 18:27:48 CET 2011
Revision: 55205
http://scummvm.svn.sourceforge.net/scummvm/?rev=55205&view=rev
Author: mthreepwood
Date: 2011-01-11 17:27:47 +0000 (Tue, 11 Jan 2011)
Log Message:
-----------
MOHAWK: Play the telescope moving video (now that seeking is available :))
Modified Paths:
--------------
scummvm/trunk/engines/mohawk/riven_external.cpp
Modified: scummvm/trunk/engines/mohawk/riven_external.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/riven_external.cpp 2011-01-11 17:27:43 UTC (rev 55204)
+++ scummvm/trunk/engines/mohawk/riven_external.cpp 2011-01-11 17:27:47 UTC (rev 55205)
@@ -1885,7 +1885,13 @@
} else {
// We're not at the bottom, and we can move down again
- // TODO: Down movie, it involves playing a chunk of a movie
+ // Play a piece of the moving down movie
+ static const uint32 timeIntervals[] = { 4320, 3440, 2560, 1760, 880, 0 };
+ uint16 movieCode = (*telescopeCover) ? 1 : 2;
+ VideoHandle handle = _vm->_video->playMovie(movieCode);
+ _vm->_video->setVideoBounds(handle, Graphics::VideoTimestamp(timeIntervals[*telescopePos], 600), Graphics::VideoTimestamp(timeIntervals[*telescopePos - 1], 600));
+ _vm->_sound->playSound(14); // Play the moving sound
+ _vm->_video->waitUntilMovieEnds(handle);
// Now move the telescope down a position and refresh
*telescopePos -= 1;
@@ -1911,7 +1917,13 @@
return;
}
- // TODO: Up movie, it involves playing a chunk of a movie
+ // Play a piece of the moving up movie
+ static const uint32 timeIntervals[] = { 0, 800, 1680, 2560, 3440, 4320 };
+ uint16 movieCode = (*_vm->getVar("ttelecover")) ? 4 : 5;
+ VideoHandle handle = _vm->_video->playMovie(movieCode);
+ _vm->_video->setVideoBounds(handle, Graphics::VideoTimestamp(timeIntervals[*telescopePos - 1], 600), Graphics::VideoTimestamp(timeIntervals[*telescopePos], 600));
+ _vm->_sound->playSound(14); // Play the moving sound
+ _vm->_video->waitUntilMovieEnds(handle);
// Now move the telescope up a position and refresh
*telescopePos += 1;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list