2008-05-02 11:18:46 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "drascula/drascula.h"
|
|
|
|
|
|
|
|
namespace Drascula {
|
|
|
|
|
2009-01-05 20:17:33 +00:00
|
|
|
void DrasculaEngine::updateAnim(int y, int destX, int destY, int width, int height, int count, byte* src, int delayVal, bool copyRectangle) {
|
2008-05-30 09:45:00 +00:00
|
|
|
int x = 0;
|
|
|
|
|
|
|
|
for (int n = 0; n < count; n++){
|
|
|
|
x++;
|
2010-06-15 10:18:51 +00:00
|
|
|
if (copyRectangle) {
|
|
|
|
copyBackground(destX, destY, destX, destY, width, height, bgSurface, screenSurface);
|
2009-01-05 20:17:33 +00:00
|
|
|
copyRect(x, y, destX, destY, width, height, src, screenSurface);
|
2010-06-15 10:18:51 +00:00
|
|
|
} else {
|
|
|
|
copyBackground(x, y, destX, destY, width, height, src, screenSurface);
|
|
|
|
}
|
2008-05-30 09:45:00 +00:00
|
|
|
updateScreen(destX, destY, destX, destY, width, height, screenSurface);
|
|
|
|
x += width;
|
2010-06-15 10:20:44 +00:00
|
|
|
updateEvents();
|
2008-05-30 16:39:49 +00:00
|
|
|
pause(delayVal);
|
2008-05-30 09:45:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-06-07 14:15:56 +00:00
|
|
|
// This is the game's introduction sequence
|
2008-05-02 11:18:46 +00:00
|
|
|
void DrasculaEngine::animation_1_1() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_1_1()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
int l, l2, p;
|
2008-09-12 12:54:16 +00:00
|
|
|
//int pixelPos[6];
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2011-01-28 08:07:50 +00:00
|
|
|
while (term_int == 0 && !shouldQuit()) {
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(29);
|
2008-06-05 08:25:29 +00:00
|
|
|
playFLI("logoddm.bin", 9);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
delay(600);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
delay(340);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(26);
|
2008-05-02 11:18:46 +00:00
|
|
|
delay(500);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-05 08:25:29 +00:00
|
|
|
playFLI("logoalc.bin", 8);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("cielo.alg", screenSurface, COMPLETE_PAL);
|
2008-05-11 12:47:26 +00:00
|
|
|
black();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeFromBlack(2);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
delay(900);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:16:17 +00:00
|
|
|
color_abc(kColorRed);
|
2008-09-10 08:25:12 +00:00
|
|
|
centerText(_textmisc[1], 160, 100);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
delay(1000);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
delay(1200);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-06-05 08:25:29 +00:00
|
|
|
playFLI("scrollb.bin", 9);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(5);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("scr2.bin", 17))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-01 20:58:05 +00:00
|
|
|
stopSound();
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("scr3.bin", 17))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("cielo2.alg", screenSurface, COMPLETE_PAL);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(1);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(96, frontSurface, COMPLETE_PAL);
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(103, bgSurface, HALF_PAL);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(104, drawSurface3);
|
|
|
|
loadPic("aux104.alg", drawSurface2);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(4);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
delay(400);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
for (l2 = 0; l2 < 3; l2++)
|
|
|
|
for (l = 0; l < 7; l++) {
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(interf_x[l], interf_y[l], 156, 45, 63, 31, drawSurface2, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2011-01-28 08:07:50 +00:00
|
|
|
if (getScan() == Common::KEYCODE_ESCAPE || shouldQuit()) {
|
2008-05-02 11:18:46 +00:00
|
|
|
term_int = 1;
|
|
|
|
break;
|
|
|
|
}
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
l2 = 0; p = 0;
|
|
|
|
|
|
|
|
for (l = 0; l < 180; l++) {
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 320 - l, 0, l, 200, drawSurface3, screenSurface);
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(l, 0, 0, 0, 320 - l, 200, bgSurface, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2010-06-15 10:22:56 +00:00
|
|
|
copyRect(interf_x[l2], interf_y[l2], 156 - l, 45, 63, 31, drawSurface2, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
p++;
|
|
|
|
if (p == 6) {
|
|
|
|
p = 0;
|
|
|
|
l2++;
|
|
|
|
}
|
|
|
|
if (l2 == 7)
|
|
|
|
l2 = 0;
|
2011-01-28 08:07:50 +00:00
|
|
|
if (getScan() == Common::KEYCODE_ESCAPE || shouldQuit()) {
|
2008-05-02 11:18:46 +00:00
|
|
|
term_int = 1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, screenSurface, bgSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:35:02 +00:00
|
|
|
talk_drascula_big(1);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(100, bgSurface, HALF_PAL);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("auxigor.alg", frontSurface);
|
|
|
|
loadPic("auxdr.alg", backSurface);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 0;
|
2008-06-06 14:50:19 +00:00
|
|
|
drasculaX = 129;
|
|
|
|
drasculaY = 95;
|
2008-06-04 08:06:04 +00:00
|
|
|
trackIgor = 1;
|
2008-05-31 13:01:48 +00:00
|
|
|
igorX = 66;
|
|
|
|
igorY = 97;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-29 22:34:03 +00:00
|
|
|
placeIgor();
|
|
|
|
placeDrascula();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(8, kIgorDch);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-29 22:34:03 +00:00
|
|
|
placeIgor();
|
|
|
|
placeDrascula();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(2);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(3);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("lib.bin", 16))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("lib2.bin", 16))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-30 07:16:17 +00:00
|
|
|
color_solo = kColorRed;
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("plan1.alg", screenSurface, HALF_PAL);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(10);
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_textd[4],"d4.als");
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("plan1.alg", screenSurface, HALF_PAL);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_textd[5], "d5.als");
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("lib2.bin", 16))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("plan2.alg", screenSurface, HALF_PAL);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(20);
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_textd[6], "d6.als");
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("lib2.bin", 16))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("plan3.alg", screenSurface, HALF_PAL);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(20);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_textd[7], "d7.als");
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("plan3.alg", screenSurface, HALF_PAL);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_textd[8], "d8.als");
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(100, bgSurface, HALF_PAL);
|
2008-05-02 11:18:46 +00:00
|
|
|
MusicFadeout();
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(9, kIgorDch);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(9);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(10, kIgorDch);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(11);
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(10);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("rayo1.bin", 16))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(5);
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("rayo2.bin", 15))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("frel2.bin", 16))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("frel.bin", 16))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("frel.bin", 16))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-01 20:58:05 +00:00
|
|
|
stopSound();
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-11 12:47:26 +00:00
|
|
|
black();
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(23);
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeFromBlack(0);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 1;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(1, kIgorDch);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(11, 1);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 3;
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-29 22:34:03 +00:00
|
|
|
placeIgor();
|
|
|
|
placeDrascula();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(1);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 0;
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-29 22:34:03 +00:00
|
|
|
placeIgor();
|
|
|
|
placeDrascula();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(12);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 3;
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-29 22:34:03 +00:00
|
|
|
placeIgor();
|
|
|
|
placeDrascula();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(1);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 1;
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-29 22:34:03 +00:00
|
|
|
placeIgor();
|
|
|
|
placeDrascula();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(2, kIgorDch);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(13);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(13, 1);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 3;
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-29 22:34:03 +00:00
|
|
|
placeIgor();
|
|
|
|
placeDrascula();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(1);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 0;
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-29 22:34:03 +00:00
|
|
|
placeIgor();
|
|
|
|
placeDrascula();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(14);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(3, kIgorDch);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(15);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(4, kIgorDch);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(16);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(5, kIgorDch);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-04 08:06:04 +00:00
|
|
|
trackIgor = 3;
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(17);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(18);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(6, kIgorFront);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(0);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-25 12:02:34 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
playMusic(31);
|
|
|
|
else
|
|
|
|
playMusic(2);
|
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(5);
|
2008-06-05 08:25:29 +00:00
|
|
|
playFLI("intro.bin", 12);
|
2008-05-02 11:18:46 +00:00
|
|
|
term_int = 1;
|
|
|
|
}
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(96, frontSurface, COMPLETE_PAL);
|
|
|
|
loadPic(99, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-07 14:15:56 +00:00
|
|
|
// John falls in love with BJ, who is then abducted by Drascula
|
2008-05-02 11:18:46 +00:00
|
|
|
void DrasculaEngine::animation_2_1() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_2_1()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
int l;
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(231, 91);
|
2008-05-02 11:18:46 +00:00
|
|
|
hare_se_ve = 0;
|
|
|
|
|
|
|
|
term_int = 0;
|
|
|
|
|
2011-01-28 08:07:50 +00:00
|
|
|
while (!shouldQuit()) {
|
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("ag.bin", 14))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an11y13.alg", extraSurface);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(22);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(97, extraSurface);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(4);
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(1);
|
2008-05-29 22:34:03 +00:00
|
|
|
hiccup(18);
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2008-05-29 22:34:03 +00:00
|
|
|
musicStopped = 1;
|
2008-05-30 07:09:36 +00:00
|
|
|
memset(screenSurface, 0, 64000);
|
2008-05-30 07:16:17 +00:00
|
|
|
color_solo = kColorWhite;
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(80);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_textbj[1], "BJ1.als");
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("bj.alg", screenSurface, HALF_PAL);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-11 12:47:26 +00:00
|
|
|
black();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeFromBlack(1);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:16:17 +00:00
|
|
|
color_solo = kColorYellow;
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_text[214], "214.als");
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(16, bgSurface, HALF_PAL);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("auxbj.alg", drawSurface3);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-05-27 09:03:22 +00:00
|
|
|
roomNumber = 16;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
for (l = 0; l < 200; l++)
|
|
|
|
factor_red[l] = 99;
|
2008-06-06 14:50:19 +00:00
|
|
|
bjX = 170;
|
|
|
|
bjY = 90;
|
2008-06-04 08:06:04 +00:00
|
|
|
trackBJ = 0;
|
2008-06-02 23:09:19 +00:00
|
|
|
curX = 91;
|
|
|
|
curY = 95;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-05-02 11:18:46 +00:00
|
|
|
hare_se_ve = 1;
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("97g.alg", extraSurface);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("lev.bin", 15))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(100 + curWidth / 2, 99 + curHeight);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-06-02 23:09:19 +00:00
|
|
|
curX = 100;
|
|
|
|
curY = 95;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-09-12 12:54:16 +00:00
|
|
|
playTalkSequence(2); // sequence 2, chapter 1
|
|
|
|
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("gaf.bin", 15))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("bjb.bin", 14))
|
2008-05-26 14:08:53 +00:00
|
|
|
break;
|
|
|
|
playMusic(9);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(97, extraSurface);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(120);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_text[223], "223.als");
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:16:17 +00:00
|
|
|
color_solo = kColorWhite;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(110);
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_textbj[11], "BJ11.als");
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(118);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(132, 97 + curHeight);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(60);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-27 16:13:41 +00:00
|
|
|
talk(224);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-27 16:13:41 +00:00
|
|
|
talk_bj(12);
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(157, 98 + curHeight);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("bes.bin", 16))
|
2008-05-26 14:08:53 +00:00
|
|
|
break;
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(11);
|
2008-05-30 07:24:32 +00:00
|
|
|
if (animate("rap.bin", 16))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 3;
|
2008-05-27 16:02:07 +00:00
|
|
|
// The room number was originally changed here to "no_bj.alg",
|
|
|
|
// which doesn't exist. In reality, this was just a hack to
|
|
|
|
// set the room number to a non-existant one, so that BJ does
|
|
|
|
// not appear again when the room is refreshed after the
|
|
|
|
// animation where Count Drascula abducts her. We set the
|
|
|
|
// room number to -1 for the same purpose
|
|
|
|
// Also check animation_9_6(), where the same hack was used by
|
|
|
|
// the original
|
|
|
|
roomNumber = -1;
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(8);
|
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-27 16:13:41 +00:00
|
|
|
talk(225);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(76);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-27 16:13:41 +00:00
|
|
|
talk(226);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(30);
|
2011-01-28 08:07:50 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-27 16:13:41 +00:00
|
|
|
talk(227);
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(0);
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-08-27 10:00:32 +00:00
|
|
|
// John Hacker talks with the bartender to book a room
|
2008-05-02 11:18:46 +00:00
|
|
|
void DrasculaEngine::animation_3_1() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_3_1()");
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an11y13.alg", extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-09-12 12:54:16 +00:00
|
|
|
playTalkSequence(3); // sequence 3, chapter 1
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(97, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-08-27 10:00:32 +00:00
|
|
|
// John Hacker talks with the pianist
|
2008-05-02 11:18:46 +00:00
|
|
|
void DrasculaEngine::animation_4_1() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_4_1()");
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an12.alg", extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 09:28:52 +00:00
|
|
|
talk(205);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(1, 139, 228, 112, 47, 60, extraSurface, screenSurface);
|
|
|
|
updateScreen(228,112, 228,112, 47,60, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(49, 139, 228, 112, 47, 60, extraSurface, screenSurface);
|
2008-06-04 07:58:34 +00:00
|
|
|
moveCharacters();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[11] = 1;
|
|
|
|
|
2008-06-02 10:58:45 +00:00
|
|
|
talk_pianist(1);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(206);
|
2008-06-02 10:58:45 +00:00
|
|
|
talk_pianist(2);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(207);
|
2008-06-02 10:58:45 +00:00
|
|
|
talk_pianist(3);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(208);
|
2008-06-02 10:58:45 +00:00
|
|
|
talk_pianist(4);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(209);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[11] = 0;
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(97, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_2_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_2_2()");
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 0;
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-06-04 07:58:34 +00:00
|
|
|
moveCharacters();
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an2_1.alg", frontSurface);
|
|
|
|
loadPic("an2_2.alg", extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(1, 1, 201, 87, 50, 52, frontSurface, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim(1, 201, 87, 50, 52, 6, frontSurface);
|
|
|
|
updateAnim(55, 201, 87, 50, 52, 6, frontSurface);
|
|
|
|
updateAnim(109, 201, 87, 50, 52, 6, frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(2);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim(1, 201, 87, 50, 52, 6, extraSurface);
|
|
|
|
updateAnim(55, 201, 87, 50, 52, 6, extraSurface);
|
|
|
|
updateAnim(109, 201, 87, 50, 52, 2, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause (4);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(1);
|
2008-05-02 11:18:46 +00:00
|
|
|
hipo_sin_nadie(12);
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_4_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_4_2()");
|
|
|
|
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[9] = 1;
|
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(12);
|
2008-08-25 15:07:05 +00:00
|
|
|
talk(60);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(8);
|
|
|
|
|
|
|
|
clearRoom();
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("ciego1.alg", bgSurface, HALF_PAL); // ciego = blind
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("ciego2.alg", drawSurface3);
|
|
|
|
loadPic("ciego3.alg", extraSurface);
|
|
|
|
loadPic("ciego4.alg", backSurface);
|
|
|
|
loadPic("ciego5.alg", frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(10);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(1);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(5);
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(57);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(6);
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(2);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(4);
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(58);
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
delay(14);
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(59);
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(4);
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(60);
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(5);
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(61);
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(6);
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(62);
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(7);
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(63);
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(8);
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-26 20:18:27 +00:00
|
|
|
_system->delayMillis(1000);
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(64);
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(9);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(14);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-11 12:47:26 +00:00
|
|
|
playMusic(roomMusic);
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(9, bgSurface, HALF_PAL);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("aux9.alg", drawSurface3);
|
|
|
|
loadPic(96, frontSurface);
|
|
|
|
loadPic(97, extraSurface);
|
|
|
|
loadPic(99, backSurface);
|
2009-05-12 10:02:18 +00:00
|
|
|
selectVerb(kVerbNone);
|
2008-06-06 19:17:21 +00:00
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[9] = 0;
|
|
|
|
flags[4] = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_14_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_14_2()");
|
|
|
|
|
2008-09-12 12:54:16 +00:00
|
|
|
int cY = -160;
|
2008-05-02 11:18:46 +00:00
|
|
|
int l = 0;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an14_2.alg", backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
for (int n = -160; n <= 0; n = n + 5 + l) {
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-06-04 07:58:34 +00:00
|
|
|
moveCharacters();
|
2008-06-06 14:50:19 +00:00
|
|
|
moveVonBraun();
|
2008-09-12 12:54:16 +00:00
|
|
|
cY = n;
|
|
|
|
copyRect(150, 6, 69, cY, 158, 161, backSurface, screenSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-06-06 14:50:19 +00:00
|
|
|
l++;
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
flags[24] = 1;
|
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
memcpy(bgSurface, screenSurface, 64000);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(7);
|
2008-05-29 22:34:03 +00:00
|
|
|
hiccup(15);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(99, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-09-16 10:44:07 +00:00
|
|
|
// The drunk tells us about Von Braun
|
2008-05-02 11:18:46 +00:00
|
|
|
void DrasculaEngine::animation_16_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_16_2()");
|
|
|
|
|
2008-09-16 10:44:07 +00:00
|
|
|
char curPic[20];
|
2008-05-30 10:55:43 +00:00
|
|
|
talk_drunk(12);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(371);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-11 11:11:24 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
playMusic(30);
|
|
|
|
else
|
|
|
|
playMusic(32);
|
|
|
|
|
2008-09-16 10:44:07 +00:00
|
|
|
if (getScan() != 0)
|
2008-05-02 11:18:46 +00:00
|
|
|
goto asco;
|
|
|
|
|
2008-09-11 09:31:45 +00:00
|
|
|
color_abc(kColorDarkGreen);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-09-16 10:44:07 +00:00
|
|
|
for (int i = 1; i <= 4; i++) {
|
|
|
|
if (i < 4)
|
|
|
|
sprintf(curPic, "his%i.alg", i);
|
|
|
|
else
|
2008-09-16 10:53:57 +00:00
|
|
|
strcpy(curPic, "his4_2.alg");
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-09-16 10:44:07 +00:00
|
|
|
loadPic(curPic, screenSurface, HALF_PAL);
|
|
|
|
centerText(_texthis[i], 180, 180);
|
|
|
|
updateScreen();
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-09-16 10:44:07 +00:00
|
|
|
if (getScan() != 0)
|
|
|
|
goto asco;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-09-16 10:44:07 +00:00
|
|
|
delay(3000);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-09-16 10:53:57 +00:00
|
|
|
if (i < 4) {
|
|
|
|
fadeToBlack(1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-09-16 10:53:57 +00:00
|
|
|
if (getScan() != 0)
|
|
|
|
goto asco;
|
|
|
|
|
|
|
|
clearRoom();
|
|
|
|
}
|
2008-09-16 10:44:07 +00:00
|
|
|
}
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("his4_1.alg", bgSurface, HALF_PAL);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("his4_2.alg", drawSurface3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
for (int l = 1; l < 200; l++) {
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, l, 320, 200 - l, drawSurface3, screenSurface);
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 200 - l, 0, 0, 320, l, bgSurface, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-09-16 10:44:07 +00:00
|
|
|
if (getScan() != 0)
|
2008-05-02 11:18:46 +00:00
|
|
|
goto asco;
|
|
|
|
}
|
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(5);
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(2);
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
asco:
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(roomDisk, drawSurface3);
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(roomNumber, bgSurface, HALF_PAL);
|
2008-05-11 12:47:26 +00:00
|
|
|
black();
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeFromBlack(0);
|
2008-05-11 12:47:26 +00:00
|
|
|
if (roomMusic != 0)
|
|
|
|
playMusic(roomMusic);
|
2008-05-02 11:18:46 +00:00
|
|
|
else
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_20_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_20_2()");
|
|
|
|
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(7, kVonBraunDoor);
|
|
|
|
talk_vonBraun(8, kVonBraunDoor);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(383);
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(9, kVonBraunDoor);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(384);
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(10, kVonBraunDoor);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(385);
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(11, kVonBraunDoor);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[23] == 0) {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(350);
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(57, kVonBraunDoor);
|
2008-05-02 11:18:46 +00:00
|
|
|
} else {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(386);
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(12, kVonBraunDoor);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[18] = 0;
|
|
|
|
flags[14] = 1;
|
2008-09-11 14:49:04 +00:00
|
|
|
toggleDoor(15, 1, kOpenDoor);
|
2008-05-29 22:34:03 +00:00
|
|
|
exitRoom(1);
|
2008-05-02 11:18:46 +00:00
|
|
|
animation_23_2();
|
2008-05-29 22:34:03 +00:00
|
|
|
exitRoom(0);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[21] = 0;
|
|
|
|
flags[24] = 0;
|
2008-06-06 14:50:19 +00:00
|
|
|
trackVonBraun = 1;
|
|
|
|
vonBraunX = 120;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-31 00:15:01 +00:00
|
|
|
breakOut = 1;
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_23_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_23_2()");
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an24.alg", frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[21] = 1;
|
|
|
|
|
|
|
|
if (flags[25] == 0) {
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(13, kVonBraunDoor);
|
|
|
|
talk_vonBraun(14, kVonBraunDoor);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(10);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(387);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(15, kVonBraunNormal);
|
2008-06-06 14:50:19 +00:00
|
|
|
placeVonBraun(42);
|
|
|
|
trackVonBraun = 1;
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(16, kVonBraunNormal);
|
2008-06-06 14:50:19 +00:00
|
|
|
trackVonBraun = 2;
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(157, 147);
|
|
|
|
gotoObject(131, 149);
|
|
|
|
trackProtagonist = 0;
|
2008-05-02 11:18:46 +00:00
|
|
|
animation_14_2();
|
|
|
|
if (flags[25] == 0)
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(17, kVonBraunNormal);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(8);
|
2008-06-06 14:50:19 +00:00
|
|
|
trackVonBraun = 1;
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(18, kVonBraunNormal);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
if (flags[29] == 0)
|
2008-05-31 00:06:05 +00:00
|
|
|
animation_23_joined();
|
2008-05-02 11:18:46 +00:00
|
|
|
else
|
2008-05-31 00:06:05 +00:00
|
|
|
animation_23_joined2();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
trackVonBraun = 2;
|
2008-05-02 11:18:46 +00:00
|
|
|
animation_25_2();
|
2008-06-06 14:50:19 +00:00
|
|
|
placeVonBraun(99);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
if (flags[29] == 0) {
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(19, kVonBraunNormal);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[25] == 0) {
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(20, kVonBraunNormal);
|
2008-06-05 15:03:48 +00:00
|
|
|
if (removeObject(kItemMoney) == 0)
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[30] = 1;
|
2008-06-05 15:03:48 +00:00
|
|
|
if (removeObject(kItemTwoCoins) == 0)
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[31] = 1;
|
2008-06-05 15:03:48 +00:00
|
|
|
if (removeObject(kItemOneCoin) == 0)
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[32] = 1;
|
|
|
|
}
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(21, kVonBraunNormal);
|
2008-05-02 11:18:46 +00:00
|
|
|
} else
|
|
|
|
animation_27_2();
|
|
|
|
|
|
|
|
flags[25] = 1;
|
2008-05-31 00:15:01 +00:00
|
|
|
breakOut = 1;
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-05-31 00:06:05 +00:00
|
|
|
void DrasculaEngine::animation_23_joined() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_23_joined()");
|
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
int p_x = curX + 2, p_y = curY - 3;
|
2008-05-02 11:18:46 +00:00
|
|
|
int x[] = {1, 38, 75, 112, 75, 112, 75, 112, 149, 112, 149, 112, 149, 186, 223, 260,
|
|
|
|
1, 38, 75, 112, 149, 112, 149, 112, 149, 112, 149, 186, 223, 260, 260, 260, 260, 223};
|
|
|
|
int y[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 76, 76, 76, 76, 76, 76, 76,
|
|
|
|
76, 76, 76, 76, 76, 76, 76, 1, 1, 1, 1};
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an23.alg", backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
for (int n = 0; n < 34; n++) {
|
2008-06-10 18:54:32 +00:00
|
|
|
copyRect(p_x, p_y, p_x, p_y, 36, 74, bgSurface, screenSurface);
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRect(x[n], y[n], p_x, p_y, 36, 74, backSurface, screenSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh();
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(p_x, p_y, p_x, p_y, 36, 74, screenSurface);
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(5);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(99, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-05-31 00:06:05 +00:00
|
|
|
void DrasculaEngine::animation_23_joined2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_23_joined2()");
|
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
int p_x = curX + 4, p_y = curY;
|
2008-05-02 11:18:46 +00:00
|
|
|
int x[] = {1, 35, 69, 103, 137, 171, 205, 239, 273, 1, 35, 69, 103, 137};
|
|
|
|
int y[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 73, 73, 73, 73, 73};
|
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(50);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an23_2.alg", backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
for (int n = 0; n < 14; n++) {
|
2008-06-10 18:54:32 +00:00
|
|
|
copyRect(p_x, p_y, p_x, p_y, 33, 71, bgSurface, screenSurface);
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRect(x[n], y[n], p_x, p_y, 33, 71, backSurface, screenSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh();
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(p_x,p_y, p_x,p_y, 33,71, screenSurface);
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(5);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(99, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_25_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_25_2()");
|
|
|
|
|
2008-09-12 12:54:16 +00:00
|
|
|
int cY = 0;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an14_2.alg", backSurface);
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(18, bgSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[24] = 0;
|
|
|
|
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(6);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
for (int n = 0; n >= -160; n = n - 8) {
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-06-04 07:58:34 +00:00
|
|
|
moveCharacters();
|
2008-06-06 14:50:19 +00:00
|
|
|
moveVonBraun();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-09-12 12:54:16 +00:00
|
|
|
cY = n;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-09-12 12:54:16 +00:00
|
|
|
copyRect(150, 6, 69, cY, 158, 161, backSurface, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(99, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_27_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_27_2()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[22] = 1;
|
|
|
|
|
2009-05-12 10:02:18 +00:00
|
|
|
selectVerb(kVerbNone);
|
2008-06-05 15:03:48 +00:00
|
|
|
removeObject(kItemEarWithEarPlug);
|
|
|
|
addObject(kItemEarplugs);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(23, kVonBraunNormal);
|
|
|
|
talk_vonBraun(24, kVonBraunNormal);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[30] == 1)
|
2008-06-05 15:03:48 +00:00
|
|
|
addObject(kItemMoney);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[31] == 1)
|
2008-06-05 15:03:48 +00:00
|
|
|
addObject(kItemTwoCoins);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[32] == 1)
|
2008-06-05 15:03:48 +00:00
|
|
|
addObject(kItemOneCoin);
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(25, kVonBraunNormal);
|
|
|
|
talk_vonBraun(26, kVonBraunNormal);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_29_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_29_2()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[33] == 0) {
|
2008-09-12 12:54:16 +00:00
|
|
|
playTalkSequence(29); // sequence 29, chapter 2
|
2008-05-02 11:18:46 +00:00
|
|
|
} else
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(43, kVonBraunNormal);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(402);
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(42, kVonBraunNormal);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
if (flags[38] == 0) {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(403);
|
2008-05-31 00:15:01 +00:00
|
|
|
breakOut = 1;
|
2008-05-02 11:18:46 +00:00
|
|
|
} else
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(386);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_31_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_31_2()");
|
|
|
|
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(44, kVonBraunNormal);
|
2008-06-06 14:50:19 +00:00
|
|
|
placeVonBraun(-50);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(15);
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(159, 140);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(99, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-09-12 12:54:16 +00:00
|
|
|
playTalkSequence(31); // sequence 31, chapter 2
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2009-05-12 10:02:18 +00:00
|
|
|
selectVerb(kVerbNone);
|
2008-06-05 15:03:48 +00:00
|
|
|
removeObject(kItemLeaves);
|
|
|
|
removeObject(kItemBubbleGum);
|
|
|
|
removeObject(kItemTissues);
|
|
|
|
removeObject(kItemCigarettes);
|
|
|
|
removeObject(kItemCandle);
|
|
|
|
addObject(kItemReefer);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_35_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_35_2()");
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(96, 165);
|
|
|
|
gotoObject(79, 165);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an35_1.alg", backSurface);
|
|
|
|
loadPic("an35_2.alg", frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim(1, 70, 90, 46, 80, 6, backSurface);
|
|
|
|
updateAnim(82, 70, 90, 46, 80, 6, backSurface);
|
|
|
|
updateAnim(1, 70, 90, 46, 80, 6, frontSurface);
|
|
|
|
updateAnim(82, 70, 90, 46, 80, 2, frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(19);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(1);
|
2008-05-02 11:18:46 +00:00
|
|
|
hipo_sin_nadie(18);
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(10);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(2);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2010-06-15 10:18:51 +00:00
|
|
|
// Use cross on Yoda
|
2008-05-02 11:18:46 +00:00
|
|
|
void DrasculaEngine::animation_2_3() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_2_3()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[0] = 1;
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(13);
|
2008-05-02 11:18:46 +00:00
|
|
|
animation_3_3();
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(13);
|
2008-05-02 11:18:46 +00:00
|
|
|
animation_4_3();
|
|
|
|
flags[1] = 1;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(120, 0, 120, 0, 200, 200, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
animation_5_3();
|
|
|
|
flags[0] = 0;
|
|
|
|
flags[1] = 1;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(96, frontSurface);
|
|
|
|
loadPic(97, extraSurface);
|
|
|
|
loadPic(99, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(332, 127);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_3_3() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_3_3()");
|
|
|
|
|
2008-06-02 23:09:19 +00:00
|
|
|
int px = curX - 20, py = curY - 1;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an2y_1.alg", frontSurface);
|
|
|
|
loadPic("an2y_2.alg", extraSurface);
|
|
|
|
loadPic("an2y_3.alg", backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2009-01-05 20:17:33 +00:00
|
|
|
updateAnim(2, px, py, 71, 72, 4, frontSurface, 3, true);
|
|
|
|
updateAnim(75, px, py, 71, 72, 4, frontSurface, 3, true);
|
|
|
|
updateAnim(2, px, py, 71, 72, 4, extraSurface, 3, true);
|
|
|
|
updateAnim(75, px, py, 71, 72, 4, extraSurface, 3, true);
|
|
|
|
updateAnim(2, px, py, 71, 72, 4, backSurface, 3, true);
|
|
|
|
updateAnim(75, px, py, 71, 72, 4, backSurface, 3, true);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_4_3() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_4_3()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
int px = 120, py = 63;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("any_1.alg", frontSurface);
|
|
|
|
loadPic("any_2.alg", extraSurface);
|
|
|
|
loadPic("any_3.alg", backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2009-01-05 20:17:33 +00:00
|
|
|
updateAnim(1, px, py, 77, 89, 4, frontSurface, 3, true);
|
|
|
|
updateAnim(91, px, py, 77, 89, 4, frontSurface, 3, true);
|
|
|
|
updateAnim(1, px, py, 77, 89, 4, extraSurface, 3, true);
|
|
|
|
updateAnim(91, px, py, 77, 89, 4, extraSurface, 3, true);
|
|
|
|
updateAnim(1, px, py, 77, 89, 4, backSurface, 3, true);
|
|
|
|
updateAnim(91, px, py, 77, 89, 4, backSurface, 3, true);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_5_3() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_5_3()");
|
|
|
|
|
2008-06-02 23:09:19 +00:00
|
|
|
int px = curX - 20, py = curY - 1;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an3y_1.alg", frontSurface);
|
|
|
|
loadPic("an3y_2.alg", extraSurface);
|
|
|
|
loadPic("an3y_3.alg", backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2009-01-05 20:17:33 +00:00
|
|
|
updateAnim(2, px, py, 71, 72, 4, frontSurface, 3, true);
|
|
|
|
updateAnim(75, px, py, 71, 72, 4, frontSurface, 3, true);
|
|
|
|
updateAnim(2, px, py, 71, 72, 4, extraSurface, 3, true);
|
|
|
|
updateAnim(75, px, py, 71, 72, 4, extraSurface, 3, true);
|
|
|
|
updateAnim(2, px, py, 71, 72, 4, backSurface, 3, true);
|
|
|
|
updateAnim(75, px, py, 71, 72, 4, backSurface, 3, true);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_6_3() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_6_3()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
int frame = 0, px = 112, py = 62;
|
|
|
|
int yoda_x[] = { 3 ,82, 161, 240, 3, 82 };
|
|
|
|
int yoda_y[] = { 3, 3, 3, 3, 94, 94 };
|
|
|
|
|
2008-05-30 08:14:01 +00:00
|
|
|
characterMoved = 0;
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[3] = 1;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[1] = 0;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an4y.alg", frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
for (frame = 0; frame < 6; frame++) {
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRect(yoda_x[frame], yoda_y[frame], px, py, 78, 90, frontSurface, screenSurface);
|
|
|
|
updateScreen(px, py, px, py, 78, 90, screenSurface);
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
flags[2] = 1;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(96, frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-05 08:25:29 +00:00
|
|
|
void DrasculaEngine::animation_ray() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_ray()");
|
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("anr_1.alg", frontSurface, HALF_PAL);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("anr_2.alg", extraSurface);
|
|
|
|
loadPic("anr_3.alg", backSurface);
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("anr_4.alg", bgSurface);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("anr_5.alg", drawSurface3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(50);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(5);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, extraSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, backSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-06-10 18:54:32 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, bgSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, backSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, drawSurface3);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, frontSurface);
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_7_4() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_7_4()");
|
|
|
|
|
2008-05-11 12:47:26 +00:00
|
|
|
black();
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(427);
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeFromBlack(1);
|
|
|
|
removeObject(8);
|
|
|
|
removeObject(10);
|
|
|
|
removeObject(12);
|
|
|
|
removeObject(16);
|
|
|
|
addObject(17);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[30] = 0;
|
|
|
|
flags[29] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_1_5() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_1_5()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[0] == 0) {
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(430);
|
2008-05-27 16:13:41 +00:00
|
|
|
talk_bj(16);
|
|
|
|
talk_bj(17);
|
|
|
|
talk_bj(18);
|
|
|
|
talk(217);
|
|
|
|
talk_bj(19);
|
|
|
|
talk(229);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(5);
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(114, 170);
|
|
|
|
trackProtagonist = 3;
|
2008-05-27 16:13:41 +00:00
|
|
|
talk(431);
|
|
|
|
talk_bj(20);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 2;
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(4);
|
2008-05-27 16:13:41 +00:00
|
|
|
talk(438);
|
2008-06-03 08:54:49 +00:00
|
|
|
roomX = 120;
|
|
|
|
roomY = 157;
|
2008-05-29 22:34:03 +00:00
|
|
|
walkToObject = 1;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackFinal = 1;
|
2008-05-29 22:34:03 +00:00
|
|
|
startWalking();
|
2008-05-27 16:13:41 +00:00
|
|
|
talk_bj(21);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2011-01-28 08:07:50 +00:00
|
|
|
while (!shouldQuit()) {
|
2008-05-30 08:14:01 +00:00
|
|
|
if (characterMoved == 0)
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-05-27 16:13:41 +00:00
|
|
|
talk(229);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[0] = 1;
|
|
|
|
}
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-06-05 13:23:57 +00:00
|
|
|
converse(8);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_5_5(){
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_5_5(");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
int h;
|
|
|
|
int frame = 0;
|
2008-06-05 08:25:29 +00:00
|
|
|
int boneX[] = {1, 99, 197, 1, 99, 197, 1, 99, 197};
|
|
|
|
int boneY[] = {1, 1, 1, 66, 66, 66, 131, 131, 131};
|
|
|
|
int flyX[] = {1, 63, 125, 187, 249};
|
2008-06-02 23:09:19 +00:00
|
|
|
int pixelX = curX - 53, pixelY = curY - 9;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2009-05-12 10:02:18 +00:00
|
|
|
selectVerb(kVerbNone);
|
2008-05-29 22:34:03 +00:00
|
|
|
removeObject(8);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(curX - 19, curY + curHeight);
|
|
|
|
trackProtagonist = 1;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("3an5_1.alg", backSurface);
|
|
|
|
loadPic("3an5_2.alg", frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
for (frame = 0; frame < 9; frame++) {
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-06-05 08:25:29 +00:00
|
|
|
copyRect(boneX[frame], boneY[frame], pixelX, pixelY, 97, 64, backSurface, screenSurface);
|
2008-05-30 08:14:01 +00:00
|
|
|
updateScreen(pixelX, pixelY, pixelX,pixelY, 97,64, screenSurface);
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(52, 161, 198, 81, 26, 24, drawSurface3, screenSurface);
|
|
|
|
updateScreen(198, 81, 198, 81, 26, 24, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
for (frame = 0; frame < 9; frame++) {
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-06-05 08:25:29 +00:00
|
|
|
copyRect(boneX[frame], boneY[frame], pixelX, pixelY, 97, 64, frontSurface, screenSurface);
|
2008-05-30 08:14:01 +00:00
|
|
|
updateScreen(pixelX, pixelY, pixelX,pixelY, 97, 64, screenSurface);
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
flags[6] = 1;
|
2008-05-31 09:16:26 +00:00
|
|
|
updateVisible();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(12);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(96, frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
for (h = 0; h < (200 - 18); h++)
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 53, 0, h, 320, 19, frontSurface, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(101, bgSurface, HALF_PAL);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("3an5_3.alg", backSurface);
|
|
|
|
loadPic("3an5_4.alg", extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, bgSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(9);
|
2008-05-02 11:18:46 +00:00
|
|
|
for (frame = 0; frame < 5; frame++) {
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-06-05 08:25:29 +00:00
|
|
|
copyBackground(flyX[frame], 1, 174, 79, 61, 109, backSurface, screenSurface);
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(174, 79, 174, 79, 61, 109, screenSurface);
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
for (frame = 0; frame < 5; frame++) {
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-06-05 08:25:29 +00:00
|
|
|
copyBackground(flyX[frame], 1, 174, 79, 61, 109, extraSurface, screenSurface);
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(174, 79, 174, 79, 61, 109, screenSurface);
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
2008-06-10 18:54:32 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, bgSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(1);
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(99, backSurface);
|
|
|
|
loadPic(97, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(49, bgSurface, HALF_PAL);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_11_5() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_11_5()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[9] = 1;
|
|
|
|
if (flags[2] == 1 && flags[3] == 1 && flags[4] == 1)
|
|
|
|
animation_12_5();
|
|
|
|
else {
|
|
|
|
flags[9] = 0;
|
2008-05-30 09:28:52 +00:00
|
|
|
talk(33);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_12_5() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_12_5()");
|
|
|
|
|
2008-05-30 08:28:54 +00:00
|
|
|
DacPalette256 bgPalette1;
|
|
|
|
DacPalette256 bgPalette2;
|
|
|
|
DacPalette256 bgPalette3;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
int frame;
|
2008-06-02 20:46:00 +00:00
|
|
|
const int rayX[] = {1, 46, 91, 136, 181, 226, 271, 181};
|
2008-05-02 11:18:46 +00:00
|
|
|
const int frusky_x[] = {100, 139, 178, 217, 100, 178, 217, 139, 100, 139};
|
|
|
|
const int elfrusky_x[] = {1, 68, 135, 1, 68, 135, 1, 68, 135, 68, 1, 135, 68, 135, 68};
|
2008-05-30 08:28:54 +00:00
|
|
|
int color, component;
|
2008-06-17 21:52:58 +00:00
|
|
|
signed char fade;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(26);
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(27);
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("rayo1.bin", 23);
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(5);
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("rayo2.bin", 17);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-09-10 12:03:42 +00:00
|
|
|
setDefaultPalette(darkPalette);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
for (color = 0; color < 255; color++)
|
2008-05-30 08:28:54 +00:00
|
|
|
for (component = 0; component < 3; component++) {
|
|
|
|
bgPalette1[color][component] = gamePalette[color][component];
|
|
|
|
bgPalette2[color][component] = gamePalette[color][component];
|
|
|
|
bgPalette3[color][component] = gamePalette[color][component];
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
for (fade = 3; fade >= 0; fade--) {
|
2008-06-07 14:15:56 +00:00
|
|
|
for (color = 0; color < 128; color++) {
|
|
|
|
for (component = 0; component < 3; component++) {
|
2008-06-03 08:54:49 +00:00
|
|
|
bgPalette3[color][component] = adjustToVGA(bgPalette3[color][component] - 8 + fade);
|
2008-06-07 14:15:56 +00:00
|
|
|
if (fade <= 2)
|
|
|
|
bgPalette2[color][component] = adjustToVGA(bgPalette2[color][component] - 8 + fade);
|
|
|
|
if (fade <= 1)
|
|
|
|
bgPalette1[color][component] = adjustToVGA(bgPalette1[color][component] - 8 + fade);
|
|
|
|
}
|
|
|
|
}
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("3an11_1.alg", backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
for (frame = 0; frame < 8; frame++) {
|
|
|
|
if (frame == 2 || frame == 4 || frame == 8 || frame==10)
|
2008-05-30 08:28:54 +00:00
|
|
|
setPalette((byte *)&bgPalette1);
|
2008-05-02 11:18:46 +00:00
|
|
|
else if (frame == 1 || frame == 5 || frame == 7 || frame == 9)
|
2008-05-30 08:28:54 +00:00
|
|
|
setPalette((byte *)&bgPalette2);
|
2008-05-02 11:18:46 +00:00
|
|
|
else
|
2008-05-30 08:28:54 +00:00
|
|
|
setPalette((byte *)&bgPalette3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(4);
|
|
|
|
updateRoom();
|
2008-06-02 20:46:00 +00:00
|
|
|
copyRect(rayX[frame], 1, 41, 0, 44, 44, backSurface, screenSurface);
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRect(frusky_x[frame], 113, 205, 50, 38, 86, drawSurface3, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-01 20:58:05 +00:00
|
|
|
stopSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
for (frame = 0; frame < 15; frame++) {
|
|
|
|
if (frame == 2 || frame == 4 || frame == 7 || frame == 9)
|
2008-05-30 08:28:54 +00:00
|
|
|
setPalette((byte *)&bgPalette1);
|
2008-05-02 11:18:46 +00:00
|
|
|
else if (frame == 1 || frame == 5)
|
2008-05-27 06:35:00 +00:00
|
|
|
setPalette((byte *)&gamePalette);
|
2008-05-02 11:18:46 +00:00
|
|
|
else
|
2008-05-30 08:28:54 +00:00
|
|
|
setPalette((byte *)&bgPalette2);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(4);
|
|
|
|
updateRoom();
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRect(elfrusky_x[frame], 47, 192, 39, 66, 106, backSurface, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("frel.bin", 16);
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-09-10 12:03:42 +00:00
|
|
|
setDefaultPalette(brightPalette);
|
2008-06-04 09:02:23 +00:00
|
|
|
setPalette((byte *)&gamePalette);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[1] = 1;
|
|
|
|
|
|
|
|
animation_13_5();
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(1);
|
2008-05-29 22:34:03 +00:00
|
|
|
hiccup(12);
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(99, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(40, 169);
|
|
|
|
gotoObject(-14, 175);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:19:09 +00:00
|
|
|
doBreak = 1;
|
2008-05-11 12:47:26 +00:00
|
|
|
previousMusic = roomMusic;
|
2008-05-02 11:18:46 +00:00
|
|
|
hare_se_ve = 1;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-05-30 08:14:01 +00:00
|
|
|
characterMoved = 0;
|
2008-06-02 23:09:19 +00:00
|
|
|
curX = -1;
|
2008-05-29 22:34:03 +00:00
|
|
|
objExit = 104;
|
2009-05-12 10:02:18 +00:00
|
|
|
selectVerb(kVerbNone);
|
2008-06-04 09:08:37 +00:00
|
|
|
enterRoom(57);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_13_5() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_13_5()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
int frank_x = 199;
|
|
|
|
int frame = 0;
|
|
|
|
int frus_x[] = {1, 46, 91, 136, 181, 226, 271};
|
|
|
|
int frus_y[] = {1, 1, 1, 1, 1, 1, 1, 89};
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("auxfr.alg", backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-09-12 12:54:16 +00:00
|
|
|
copyRect(1, 1, frank_x, 81, 44, 87, backSurface, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(15);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(18);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2011-01-28 08:07:50 +00:00
|
|
|
while (!shouldQuit()) {
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-09-12 12:54:16 +00:00
|
|
|
copyRect(frus_x[frame], frus_y[frame], frank_x, 81, 44, 87, backSurface, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-06-07 14:15:56 +00:00
|
|
|
frank_x -= 5;
|
2008-05-02 11:18:46 +00:00
|
|
|
frame++;
|
|
|
|
if (frank_x <= -45)
|
|
|
|
break;
|
|
|
|
if (frame == 7) {
|
|
|
|
frame = 0;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 3;
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(6);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_14_5() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_14_5()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[11] = 1;
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(3);
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(0, 0, 0,0 , 320, 200, screenSurface);
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(17);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 3;
|
2008-05-30 09:28:52 +00:00
|
|
|
talk(246);
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(89, 160);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[10] = 1;
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(7);
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(14);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 3;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_textd[18], "d18.als");
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_1_6() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_1_6()");
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 0;
|
2008-06-02 23:09:19 +00:00
|
|
|
curX = 103;
|
|
|
|
curY = 108;
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[0] = 1;
|
2008-06-07 14:15:56 +00:00
|
|
|
for (int l = 0; l < 200; l++)
|
2008-05-02 11:18:46 +00:00
|
|
|
factor_red[l] = 98;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("auxig2.alg", frontSurface);
|
|
|
|
loadPic("auxdr.alg", drawSurface2);
|
|
|
|
loadPic("car.alg", backSurface);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(19, 1);
|
2008-05-29 12:17:40 +00:00
|
|
|
talk(247);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(20, 1);
|
|
|
|
talk_drascula(21, 1);
|
2008-05-29 12:17:40 +00:00
|
|
|
talk(248);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(22, 1);
|
2008-05-29 12:17:40 +00:00
|
|
|
talk(249);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(23, 1);
|
2008-06-05 13:23:57 +00:00
|
|
|
converse(11);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(26, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("fum.bin", 15);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(27, 1);
|
2008-05-29 12:17:40 +00:00
|
|
|
talk(254);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(28, 1);
|
2008-05-29 12:17:40 +00:00
|
|
|
talk(255);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(29, 1);
|
2010-06-15 10:23:17 +00:00
|
|
|
updateEvents();
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(1);
|
2010-06-15 10:23:17 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("time1.alg", screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2010-06-15 10:23:17 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
delay(930);
|
2010-06-15 10:23:17 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-11 12:47:26 +00:00
|
|
|
black();
|
2008-05-02 11:18:46 +00:00
|
|
|
hare_se_ve = 0;
|
|
|
|
flags[0] = 0;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeFromBlack(1);
|
2008-05-29 12:17:40 +00:00
|
|
|
talk(256);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(30, 1);
|
2008-05-29 12:17:40 +00:00
|
|
|
talk(257);
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(0);
|
2010-06-15 10:23:17 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("time1.alg", screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2010-06-15 10:23:17 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
delay(900);
|
2010-06-15 10:23:17 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-11 12:47:26 +00:00
|
|
|
black();
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeFromBlack(1);
|
2008-05-29 12:17:40 +00:00
|
|
|
talk(258);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(31, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
animation_5_6();
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(32, 1);
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(11, kIgorDch);
|
2008-06-04 08:06:04 +00:00
|
|
|
trackIgor = 3;
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(33, 1);
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(12, kIgorFront);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(34, 1);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 0;
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(35);
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-04 09:08:37 +00:00
|
|
|
enterRoom(102);
|
2008-05-29 22:34:03 +00:00
|
|
|
activatePendulum();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_5_6() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_5_6()");
|
|
|
|
|
2008-09-12 12:54:16 +00:00
|
|
|
int pY = -125;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("man.bin", 14);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-07 14:15:56 +00:00
|
|
|
for (int n = -125; n <= 0; n = n + 2) {
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-09-12 12:54:16 +00:00
|
|
|
pY = n;
|
|
|
|
copyRect(1, 29, 204, pY, 18, 125, drawSurface3, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(2);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
flags[3] = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_6_6() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_6_6()");
|
|
|
|
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("rct.bin", 11);
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2009-05-12 10:02:18 +00:00
|
|
|
selectVerb(kVerbNone);
|
2008-05-29 22:34:03 +00:00
|
|
|
removeObject(20);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(96, frontSurface);
|
|
|
|
loadPic(97, frontSurface);
|
|
|
|
loadPic(97, extraSurface);
|
|
|
|
loadPic(99, backSurface);
|
2008-05-30 07:19:09 +00:00
|
|
|
doBreak = 1;
|
2008-05-29 22:34:03 +00:00
|
|
|
objExit = 104;
|
2008-06-02 23:09:19 +00:00
|
|
|
curX = -1;
|
2009-05-12 10:02:18 +00:00
|
|
|
selectVerb(kVerbNone);
|
2008-06-04 09:08:37 +00:00
|
|
|
enterRoom(58);
|
2008-05-02 11:18:46 +00:00
|
|
|
hare_se_ve = 1;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("hbp.bin", 14);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 3;
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[0] = 1;
|
|
|
|
flags[1] = 0;
|
|
|
|
flags[2] = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_9_6() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_9_6()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
int v_cd;
|
|
|
|
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("fin.bin", 14);
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(13);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[5] = 1;
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("drf.bin", 16);
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(0);
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-02 23:09:19 +00:00
|
|
|
curX = -1;
|
2008-05-29 22:34:03 +00:00
|
|
|
objExit = 108;
|
2008-06-04 09:08:37 +00:00
|
|
|
enterRoom(59);
|
2008-05-27 16:02:07 +00:00
|
|
|
// The room number was originally changed here to "nada.alg",
|
|
|
|
// which is a non-existant file. In reality, this was just a
|
|
|
|
// hack to set the room number to a non-existant one, so that
|
|
|
|
// room sprites do not appear again when the room is refreshed.
|
|
|
|
// We set the room number to -1 for the same purpose.
|
|
|
|
// Also check animation_2_1(), where the same hack was used
|
|
|
|
// by the original
|
2010-05-24 16:59:06 +00:00
|
|
|
roomNumber = -2;
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("nota2.alg", bgSurface, HALF_PAL);
|
2008-05-11 12:47:26 +00:00
|
|
|
black();
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-06-02 23:09:19 +00:00
|
|
|
curX -= 21;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeFromBlack(0);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(96);
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(116, 178);
|
|
|
|
trackProtagonist = 2;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(9);
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("nota.alg", bgSurface, COMPLETE_PAL);
|
2008-05-30 07:16:17 +00:00
|
|
|
color_abc(kColorWhite);
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_textbj[24], "bj24.als");
|
|
|
|
talk_solo(_textbj[25], "bj25.als");
|
|
|
|
talk_solo(_textbj[26], "bj26.als");
|
|
|
|
talk_solo(_textbj[27], "bj27.als");
|
|
|
|
talk_solo(_textbj[28], "bj28.als");
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 3;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(96, frontSurface, COMPLETE_PAL);
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("nota2.alg", bgSurface, HALF_PAL);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(296);
|
|
|
|
talk(297);
|
|
|
|
talk(298);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(299);
|
|
|
|
talk(300);
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, screenSurface, bgSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-30 07:16:17 +00:00
|
|
|
color_abc(kColorLightGreen);
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_solo(_textmisc[2], "s15.als");
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("nota2.alg", bgSurface);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 0;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(301);
|
2008-05-02 11:18:46 +00:00
|
|
|
v_cd = _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) / 16;
|
2008-06-07 14:15:56 +00:00
|
|
|
v_cd += 4;
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(17);
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(1);
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-05 08:25:29 +00:00
|
|
|
playFLI("qpc.bin", 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
MusicFadeout();
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, v_cd * 16);
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(3);
|
2008-06-05 08:25:29 +00:00
|
|
|
playFLI("crd.bin", 1);
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_19_6() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_19_6()");
|
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(140, 23, 161, 69, 35, 80, drawSurface3, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-06-04 07:58:34 +00:00
|
|
|
moveCharacters();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(6);
|
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(4);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(6);
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_12_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_12_2()");
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an12.alg", extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(356);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(1, 139, 228, 112, 47, 60, extraSurface, screenSurface);
|
|
|
|
updateScreen(228, 112, 228, 112, 47, 60, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(49, 139, 228, 112, 47, 60, extraSurface, screenSurface);
|
2008-06-04 07:58:34 +00:00
|
|
|
moveCharacters();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[11] = 1;
|
|
|
|
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_pianist(5);
|
2008-06-05 13:23:57 +00:00
|
|
|
converse(1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[11] = 0;
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(974, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_26_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_26_2()");
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an12.alg", extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(392);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(1, 139, 228, 112, 47, 60, extraSurface, screenSurface);
|
|
|
|
updateScreen(228, 112, 228, 112, 47, 60, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(49, 139, 228, 112, 47, 60, extraSurface, screenSurface);
|
2008-06-04 07:58:34 +00:00
|
|
|
moveCharacters();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[11] = 1;
|
|
|
|
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_pianist(5);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(393);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_pianist(17);
|
|
|
|
talk_pianist(18);
|
|
|
|
talk_pianist(19);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an26.alg", extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim(1, 225, 113, 50, 59, 6, extraSurface);
|
|
|
|
|
|
|
|
int x = 0;
|
|
|
|
for (int n = 0; n < 6; n++) {
|
2008-05-02 11:18:46 +00:00
|
|
|
x++;
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(x, 61, 225, 113, 50, 59, extraSurface, screenSurface);
|
|
|
|
updateScreen(225, 113, 225, 113, 50, 59, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
x = x + 50;
|
|
|
|
if (n == 2)
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(9);
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-01 20:58:05 +00:00
|
|
|
stopSound();
|
2008-05-30 09:45:00 +00:00
|
|
|
|
|
|
|
updateAnim(121, 225, 113, 50, 59, 6, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-11 11:20:40 +00:00
|
|
|
pickObject(11);
|
2008-06-05 15:03:48 +00:00
|
|
|
removeObject(kItemBook);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[11] = 0;
|
|
|
|
flags[39] = 1;
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(974, extraSurface);
|
2008-05-11 12:47:26 +00:00
|
|
|
roomMusic = 16;
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_11_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_11_2()");
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an11y13.alg", extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-09-12 12:54:16 +00:00
|
|
|
playTalkSequence(11); // sequence 11, chapter 2
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(974, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_13_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_13_2()");
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an11y13.alg", frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
if (flags[41] == 0) {
|
2008-09-12 12:54:16 +00:00
|
|
|
playTalkSequence(13); // sequence 13, chapter 2
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(964, frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_24_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_24_2()");
|
|
|
|
|
2008-06-02 23:09:19 +00:00
|
|
|
if (curX < 178)
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(208, 136);
|
|
|
|
trackProtagonist = 3;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
|
|
|
pause(3);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 0;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(356);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an24.alg", frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
animation_32_2();
|
|
|
|
|
|
|
|
flags[21] = 1;
|
|
|
|
|
2008-08-26 08:05:36 +00:00
|
|
|
talk_vonBraun(22, kVonBraunNormal);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
if (flags[22] == 0)
|
2008-06-05 13:23:57 +00:00
|
|
|
converse(4);
|
2008-05-02 11:18:46 +00:00
|
|
|
else
|
2008-06-05 13:23:57 +00:00
|
|
|
converse(5);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
exitRoom(0);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[21] = 0;
|
|
|
|
flags[24] = 0;
|
2008-06-06 14:50:19 +00:00
|
|
|
trackVonBraun = 1;
|
|
|
|
vonBraunX = 120;
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_32_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_32_2()");
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an32_1.alg", drawSurface3);
|
|
|
|
loadPic("an32_2.alg", backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim(1, 113, 53, 65, 81, 4, drawSurface3, 4);
|
|
|
|
updateAnim(83, 113, 53, 65, 81, 4, drawSurface3, 4);
|
|
|
|
updateAnim(1, 113, 53, 65, 81, 4, backSurface, 4);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
int x = 0;
|
|
|
|
for (int n = 0; n < 3; n++) {
|
2008-05-02 11:18:46 +00:00
|
|
|
x++;
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(x, 83, 113, 53, 65, 81, backSurface, screenSurface);
|
|
|
|
updateScreen(113, 53, 113, 53, 65, 81, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
x = x + 65;
|
|
|
|
if (n < 2)
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(4);
|
2010-06-15 10:22:56 +00:00
|
|
|
|
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("aux18.alg", drawSurface3);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_34_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_34_2()");
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an34_1.alg", backSurface);
|
|
|
|
loadPic("an34_2.alg", extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim(1, 218, 79, 83, 75, 3, backSurface);
|
|
|
|
updateAnim(77, 218, 79, 83, 75, 3, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(8);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim(1, 218, 79, 83, 75, 3, extraSurface);
|
|
|
|
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(30);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(1, 77, 218, 79, 83, 75, extraSurface, screenSurface);
|
|
|
|
updateScreen(218, 79, 218, 79, 83, 75, screenSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(994, backSurface);
|
|
|
|
loadPic(974, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_36_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_36_2()");
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an11y13.alg", extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(404);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(19);
|
|
|
|
talk_bartender(20);
|
|
|
|
talk_bartender(21);
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(355);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(40);
|
2008-06-02 05:15:34 +00:00
|
|
|
talk_bartender(82);
|
2008-06-06 19:17:21 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(974, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2010-06-15 10:20:44 +00:00
|
|
|
// Use sickle on plant
|
2008-05-02 11:18:46 +00:00
|
|
|
void DrasculaEngine::animation_7_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_7_2()");
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an7_1.alg", backSurface);
|
|
|
|
loadPic("an7_2.alg", extraSurface);
|
|
|
|
loadPic("an7_3.alg", frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
if (flags[3] == 1)
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(258, 110, 85, 44, 23, 53, drawSurface3, bgSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2009-01-05 20:17:33 +00:00
|
|
|
updateAnim(1, 80, 64, 51, 73, 6, backSurface, 3, true);
|
|
|
|
updateAnim(75, 80, 64, 51, 73, 6, backSurface, 3, true);
|
|
|
|
updateAnim(1, 80, 64, 51, 73, 6, extraSurface, 3, true);
|
|
|
|
updateAnim(75, 80, 64, 51, 73, 6, extraSurface, 3, true);
|
|
|
|
updateAnim(1, 80, 64, 51, 73, 6, frontSurface, 3, true);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an7_4.alg", backSurface);
|
|
|
|
loadPic("an7_5.alg", extraSurface);
|
|
|
|
loadPic("an7_6.alg", frontSurface);
|
|
|
|
loadPic("an7_7.alg", drawSurface3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2009-01-05 20:17:33 +00:00
|
|
|
updateAnim(1, 80, 64, 51, 73, 6, backSurface, 3, true);
|
|
|
|
updateAnim(75, 80, 64, 51, 73, 6, backSurface, 3, true);
|
|
|
|
updateAnim(1, 80, 64, 51, 73, 6, extraSurface, 3, true);
|
|
|
|
updateAnim(75, 80, 64, 51, 73, 6, extraSurface, 3, true);
|
|
|
|
updateAnim(1, 80, 64, 51, 73, 6, frontSurface, 3, true);
|
|
|
|
updateAnim(75, 80, 64, 51, 73, 6, extraSurface, 3, true);
|
|
|
|
updateAnim(1, 80, 64, 51, 73, 6, frontSurface, 3, true);
|
|
|
|
updateAnim(75, 80, 64, 51, 73, 6, frontSurface, 3, true);
|
|
|
|
updateAnim(1, 80, 64, 51, 73, 6, drawSurface3, 3, true);
|
|
|
|
updateAnim(75, 80, 64, 51, 73, 2, drawSurface3, 3, true);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an7_8.alg", backSurface);
|
|
|
|
loadPic("an7_9.alg", extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2009-01-05 20:17:33 +00:00
|
|
|
updateAnim(1, 80, 64, 51, 73, 6, backSurface, 3, true);
|
|
|
|
updateAnim(75, 80, 64, 51, 73, 6, backSurface, 3, true);
|
|
|
|
updateAnim(1, 80, 64, 51, 73, 6, extraSurface, 3, true);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(80, 64, 80, 64, 51, 73, bgSurface, screenSurface);
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRect(1, 75, 80, 64, 51, 73, extraSurface, screenSurface);
|
|
|
|
updateScreen(80, 64, 80, 64, 51, 73, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[37] = 1;
|
|
|
|
|
|
|
|
if (flags[7] == 1 && flags[26] == 1 && flags[34] == 1 && flags[35] == 1 && flags[37] == 1)
|
|
|
|
flags[38] = 1;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(99, backSurface);
|
|
|
|
loadPic(97, extraSurface);
|
|
|
|
loadPic(96, frontSurface);
|
|
|
|
loadPic("aux3.alg", drawSurface3);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_5_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_5_2()");
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 0;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an5_1.alg", backSurface);
|
|
|
|
loadPic("an5_2.alg", extraSurface);
|
|
|
|
loadPic("an5_3.alg", frontSurface);
|
|
|
|
loadPic("an5_4.alg", drawSurface3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(1, 1, 213, 66, 53,84, backSurface, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 18:08:19 +00:00
|
|
|
updateAnim(1, 213, 66, 52, 84, 6, backSurface);
|
|
|
|
updateAnim(86, 213, 66, 52, 84, 6, backSurface);
|
|
|
|
updateAnim(1, 213, 66, 52, 84, 6, extraSurface);
|
|
|
|
updateAnim(1, 213, 66, 52, 84, 6, extraSurface);
|
|
|
|
updateAnim(86, 213, 66, 52, 84, 6, extraSurface);
|
|
|
|
updateAnim(1, 213, 66, 52, 84, 6, frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(1);
|
2008-06-04 18:08:19 +00:00
|
|
|
updateAnim(86, 213, 66, 52, 84, 6, frontSurface);
|
2008-06-01 20:58:05 +00:00
|
|
|
stopSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 18:08:19 +00:00
|
|
|
updateAnim(1, 213, 66, 52, 84, 6, drawSurface3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(994, backSurface);
|
|
|
|
loadPic(974, extraSurface);
|
|
|
|
loadPic(964, frontSurface);
|
|
|
|
loadPic("aux5.alg", drawSurface3);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[8] = 1;
|
2008-06-02 23:09:19 +00:00
|
|
|
curX = curX - 4;
|
2008-09-10 08:25:12 +00:00
|
|
|
talk_sync(_text[46], "46.als", "4442444244244");
|
2009-05-12 10:02:18 +00:00
|
|
|
selectVerb(kVerbNone);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_6_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_6_2()");
|
|
|
|
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[9] = 1;
|
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("ciego1.alg", bgSurface, HALF_PAL); // ciego = blind
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("ciego2.alg", drawSurface3);
|
|
|
|
loadPic("ciego3.alg", extraSurface);
|
|
|
|
loadPic("ciego4.alg", backSurface);
|
|
|
|
loadPic("ciego5.alg", frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
if (flags[4] == 1)
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(66);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(6);
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(11);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(4);
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(67);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(10);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-11 12:47:26 +00:00
|
|
|
playMusic(roomMusic);
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(9, bgSurface, HALF_PAL);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("aux9.alg", drawSurface3);
|
|
|
|
loadPic(96, frontSurface);
|
|
|
|
loadPic(97, extraSurface);
|
|
|
|
loadPic(99, backSurface);
|
2009-05-12 10:02:18 +00:00
|
|
|
selectVerb(kVerbNone);
|
2008-06-06 19:17:21 +00:00
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[9] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_33_2() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_33_2()");
|
|
|
|
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[9] = 1;
|
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(12);
|
2008-09-15 13:45:10 +00:00
|
|
|
talk(60);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(8);
|
|
|
|
|
|
|
|
clearRoom();
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("ciego1.alg", bgSurface, HALF_PAL); // ciego = blind
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("ciego2.alg", drawSurface3);
|
|
|
|
loadPic("ciego3.alg", extraSurface);
|
|
|
|
loadPic("ciego4.alg", backSurface);
|
|
|
|
loadPic("ciego5.alg", frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(10);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(1);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(5);
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(57);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(6);
|
2008-05-02 11:18:46 +00:00
|
|
|
_system->delayMillis(1000);
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(10);
|
2008-06-07 10:10:40 +00:00
|
|
|
talk_hacker(65);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(14);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-11 12:47:26 +00:00
|
|
|
playMusic(roomMusic);
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(9, bgSurface, HALF_PAL);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("aux9.alg", drawSurface3);
|
|
|
|
loadPic(96, frontSurface);
|
|
|
|
loadPic(97, extraSurface);
|
|
|
|
loadPic(99, backSurface);
|
2009-05-12 10:02:18 +00:00
|
|
|
selectVerb(kVerbNone);
|
2008-06-06 19:17:21 +00:00
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[33] = 1;
|
|
|
|
flags[9] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_1_4() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_1_4()");
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[21] == 0) {
|
2008-05-11 11:20:40 +00:00
|
|
|
strcpy(objName[2], "igor");
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(275);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(131, 133, 199, 95, 50, 66, drawSurface3, screenSurface);
|
|
|
|
updateScreen(199, 95, 199, 95, 50, 66, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(182, 133, 199, 95, 50, 66, drawSurface3, screenSurface);
|
2008-06-04 07:58:34 +00:00
|
|
|
moveCharacters();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[18] = 1;
|
|
|
|
flags[20] = 1;
|
|
|
|
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(13, kIgorSeated);
|
|
|
|
talk_igor(14, kIgorSeated);
|
|
|
|
talk_igor(15, kIgorSeated);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[21] = 1;
|
|
|
|
} else {
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(356);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(131, 133, 199, 95, 50, 66, drawSurface3, screenSurface);
|
|
|
|
updateScreen(199, 95, 199, 95, 50, 66, screenSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(2);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(182, 133, 199, 95, 50, 66, drawSurface3, screenSurface);
|
2008-06-04 07:58:34 +00:00
|
|
|
moveCharacters();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[18] = 1;
|
|
|
|
flags[20] = 1;
|
|
|
|
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(276);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(14);
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(6, kIgorSeated);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-05 13:23:57 +00:00
|
|
|
converse(6);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[20] = 0;
|
|
|
|
flags[18] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_5_4(){
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_5_4(");
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 3;
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("anh_dr.alg", backSurface);
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(99, 160);
|
|
|
|
gotoObject(38, 177);
|
2008-05-02 11:18:46 +00:00
|
|
|
hare_se_ve = 0;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
delay(800);
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("bio.bin", 14);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[29] = 1;
|
2008-06-02 23:09:19 +00:00
|
|
|
curX = 95;
|
|
|
|
curY = 82;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-09-11 14:49:04 +00:00
|
|
|
toggleDoor(2, 0, kOpenDoor);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("auxigor.alg", frontSurface);
|
2008-05-31 13:01:48 +00:00
|
|
|
igorX = 100;
|
|
|
|
igorY = 65;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(29, kIgorFront);
|
|
|
|
talk_igor(30, kIgorFront);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(96, frontSurface);
|
|
|
|
loadPic(99, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
hare_se_ve = 1;
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(0);
|
|
|
|
exitRoom(0);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_6_4() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_6_4()");
|
|
|
|
|
2008-05-27 09:03:22 +00:00
|
|
|
int prevRoom = roomNumber;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-27 09:03:22 +00:00
|
|
|
roomNumber = 26;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(26, bgSurface, HALF_PAL);
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("aux26.alg", drawSurface3);
|
|
|
|
loadPic("auxigor.alg", frontSurface);
|
2008-08-26 08:21:21 +00:00
|
|
|
copyBackground();
|
2008-05-02 11:44:47 +00:00
|
|
|
update_26_pre();
|
2008-05-31 13:01:48 +00:00
|
|
|
igorX = 104;
|
|
|
|
igorY = 71;
|
2008-05-29 22:34:03 +00:00
|
|
|
placeIgor();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(40);
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(26, kIgorFront);
|
2008-05-27 09:03:22 +00:00
|
|
|
roomNumber = prevRoom;
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(96, frontSurface);
|
|
|
|
loadPic(roomDisk, drawSurface3);
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(roomNumber, bgSurface, HALF_PAL);
|
2009-05-12 10:02:18 +00:00
|
|
|
selectVerb(kVerbNone);
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_8_4() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "animation_8_4()");
|
|
|
|
|
2008-06-07 14:15:56 +00:00
|
|
|
int bookcaseX[] = {1, 75, 149, 223, 1, 75, 149, 223, 149, 223, 149, 223, 149, 223};
|
|
|
|
int bookcaseY[] = {1, 1, 1, 1, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74};
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an_8.alg", frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-07 14:15:56 +00:00
|
|
|
for (int frame = 0; frame < 14; frame++) {
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(2);
|
2008-06-07 14:15:56 +00:00
|
|
|
copyBackground(bookcaseX[frame], bookcaseY[frame], 77, 45, 73, 72, frontSurface, screenSurface);
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(77, 45, 77, 45, 73, 72, screenSurface);
|
2010-06-15 10:22:56 +00:00
|
|
|
updateEvents();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(96, frontSurface);
|
2008-09-11 14:49:04 +00:00
|
|
|
toggleDoor(7, 2, kOpenDoor);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-07 19:40:43 +00:00
|
|
|
void DrasculaEngine::activatePendulum() {
|
2010-06-15 10:17:51 +00:00
|
|
|
debug(4, "activatePendulum()");
|
|
|
|
|
2008-06-07 19:40:43 +00:00
|
|
|
flags[1] = 2;
|
|
|
|
hare_se_ve = 0;
|
|
|
|
roomNumber = 102;
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic(102, bgSurface, HALF_PAL);
|
2008-06-07 19:40:43 +00:00
|
|
|
loadPic("an_p1.alg", drawSurface3);
|
|
|
|
loadPic("an_p2.alg", extraSurface);
|
|
|
|
loadPic("an_p3.alg", frontSurface);
|
|
|
|
|
|
|
|
copyBackground(0, 171, 0, 0, OBJWIDTH, OBJHEIGHT, backSurface, drawSurface3);
|
|
|
|
|
|
|
|
savedTime = getTime();
|
|
|
|
}
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
} // End of namespace Drascula
|