From 46a341b4aa158aadb1681937354af7446ba8be25 Mon Sep 17 00:00:00 2001 From: uruk Date: Sat, 8 Feb 2014 17:16:14 +0100 Subject: AVALANCHE: Implement the ghostroom's animation until Avvy turns back. --- engines/avalanche/ghostroom.cpp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/avalanche/ghostroom.cpp b/engines/avalanche/ghostroom.cpp index f6a03a71f8..f45f40402c 100644 --- a/engines/avalanche/ghostroom.cpp +++ b/engines/avalanche/ghostroom.cpp @@ -112,7 +112,9 @@ void GhostRoom::doBat() { } void GhostRoom::bigGreenEyes(byte how) { - warning("STUB: bigGreenEyes()"); + _vm->_graphics->ghostDrawPicture(_greenEyes[how], 330, 103); + _vm->_graphics->ghostDrawPicture(_greenEyes[how], 376, 103); + _vm->_graphics->refreshScreen(); } ChunkBlock GhostRoom::readChunkBlock(Common::File &file) { @@ -266,6 +268,24 @@ void GhostRoom::run() { wait(177); } + // The exclamation mark appears: + _vm->_graphics->ghostDrawPicture(_exclamation, 246, 127); + _vm->_graphics->refreshScreen(); + wait(777); + + // Erase "aargh": + _vm->_graphics->drawFilledRectangle(Common::Rect(172, 78, 348, 112), kColorBlack); + _vm->_graphics->refreshScreen(); + + for (int i = 4; i >= 0; i--) { + wait(377); + bigGreenEyes(i); + } + + // Erase the exclamation mark: + _vm->_graphics->drawFilledRectangle(Common::Rect(246, 127, 252, 134), kColorBlack); + _vm->_graphics->refreshScreen(); + warning("STUB: run()"); CursorMan.showMouse(true); -- cgit v1.2.3