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 {
|
|
|
|
|
2008-05-30 16:39:49 +00:00
|
|
|
void DrasculaEngine::updateAnim(int y, int destX, int destY, int width, int height, int count, byte* src, int delayVal) {
|
2008-05-30 09:45:00 +00:00
|
|
|
int x = 0;
|
|
|
|
|
|
|
|
for (int n = 0; n < count; n++){
|
|
|
|
x++;
|
|
|
|
copyBackground(x, y, destX, destY, width, height, src, screenSurface);
|
|
|
|
updateScreen(destX, destY, destX, destY, width, height, screenSurface);
|
|
|
|
x += width;
|
2008-05-30 16:39:49 +00:00
|
|
|
pause(delayVal);
|
2008-05-30 09:45:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::updateAnim2(int y, int px, int py, int width, int height, int count, byte* src) {
|
|
|
|
int x = 0;
|
|
|
|
|
|
|
|
for (int n = 0; n < count; n++) {
|
|
|
|
x++;
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(px, py, px, py, width, height, bgSurface, screenSurface);
|
2008-05-30 09:45:00 +00:00
|
|
|
copyRect(x, y, px, py, width, height, src, screenSurface);
|
|
|
|
updateScreen(px, py, px, py, width, height, screenSurface);
|
|
|
|
x = x + width;
|
|
|
|
pause(3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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() {
|
|
|
|
int l, l2, p;
|
2008-05-30 08:14:01 +00:00
|
|
|
int pixelPos[6];
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
while (term_int == 0) {
|
2008-05-11 10:03:06 +00:00
|
|
|
playMusic(29);
|
2008-06-05 08:25:29 +00:00
|
|
|
playFLI("logoddm.bin", 9);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
delay(600);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-05 08:25:29 +00:00
|
|
|
playFLI("logoalc.bin", 8);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
delay(900);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:16:17 +00:00
|
|
|
color_abc(kColorRed);
|
2008-05-29 22:34:03 +00:00
|
|
|
centerText(_textmisc[_lang][1], 160, 100);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
delay(1000);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
delay(1200);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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();
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(1);
|
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
delay(400);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
for (l2 = 0; l2 < 3; l2++)
|
|
|
|
for (l = 0; l < 7; l++) {
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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();
|
2008-05-29 22:34:03 +00:00
|
|
|
if (getScan() == Common::KEYCODE_ESCAPE) {
|
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
|
|
|
}
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
l2 = 0; p = 0;
|
2008-05-30 08:14:01 +00:00
|
|
|
pixelPos[3] = 45;
|
|
|
|
pixelPos[4] = 63;
|
|
|
|
pixelPos[5] = 31;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2008-05-30 08:14:01 +00:00
|
|
|
pixelPos[0] = interf_x[l2];
|
|
|
|
pixelPos[1] = interf_y[l2];
|
|
|
|
pixelPos[2] = 156 - l;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 08:14:01 +00:00
|
|
|
copyRectClip(pixelPos, drawSurface2, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-02 11:18:46 +00:00
|
|
|
p++;
|
|
|
|
if (p == 6) {
|
|
|
|
p = 0;
|
|
|
|
l2++;
|
|
|
|
}
|
|
|
|
if (l2 == 7)
|
|
|
|
l2 = 0;
|
2008-05-29 22:34:03 +00:00
|
|
|
if (getScan() == Common::KEYCODE_ESCAPE) {
|
2008-05-02 11:18:46 +00:00
|
|
|
term_int = 1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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-06-02 10:58:45 +00:00
|
|
|
talk_dr_grande(1);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(3);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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-05-02 15:09:20 +00:00
|
|
|
talk_solo(_textd[_lang][4],"d4.als");
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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-05-02 15:09:20 +00:00
|
|
|
talk_solo(_textd[_lang][5], "d5.als");
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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-05-02 15:09:20 +00:00
|
|
|
talk_solo(_textd[_lang][6], "d6.als");
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 15:09:20 +00:00
|
|
|
talk_solo(_textd[_lang][7], "d7.als");
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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-05-02 15:09:20 +00:00
|
|
|
talk_solo(_textd[_lang][8], "d8.als");
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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();
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(9, kIgorDch);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(9);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(10, kIgorDch);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(11, 1);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 3;
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 3;
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 3;
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(3, kIgorDch);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(15);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(4, kIgorDch);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-31 13:01:48 +00:00
|
|
|
talk_drascula(16);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(5, kIgorDch);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(18);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(6, kIgorFront);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(0);
|
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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() {
|
|
|
|
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;
|
|
|
|
|
|
|
|
for (;;) {
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = frontSurface;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("an11y13.alg", extraSurface);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(22);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = extraSurface;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(97, extraSurface);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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();
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 15:09:20 +00:00
|
|
|
talk_solo(_textbj[_lang][1], "BJ1.als");
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-30 07:16:17 +00:00
|
|
|
color_solo = kColorYellow;
|
2008-05-02 15:09:20 +00:00
|
|
|
talk_solo(_text[_lang][214], "214.als");
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("auxbj.alg", drawSurface3);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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;
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic("97g.alg", extraSurface);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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-05-27 16:13:41 +00:00
|
|
|
talk_bj(2);
|
|
|
|
talk(215);
|
|
|
|
talk_bj(3);
|
|
|
|
talk(216);
|
|
|
|
talk_bj(4);
|
|
|
|
talk_bj(5);
|
|
|
|
talk_bj(6);
|
|
|
|
talk(217);
|
|
|
|
talk_bj(7);
|
|
|
|
talk(218);
|
|
|
|
talk_bj(8);
|
|
|
|
talk(219);
|
|
|
|
talk_bj(9);
|
|
|
|
talk(220);
|
|
|
|
talk(221);
|
|
|
|
talk_bj(10);
|
|
|
|
talk(222);
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(120);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 15:09:20 +00:00
|
|
|
talk_solo(_text[_lang][223], "223.als");
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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();
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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-05-02 15:09:20 +00:00
|
|
|
talk_solo(_textbj[_lang][11], "BJ11.als");
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(118);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
2008-05-02 11:18:46 +00:00
|
|
|
break;
|
2008-05-27 16:13:41 +00:00
|
|
|
talk(224);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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;
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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);
|
2008-05-29 22:34:03 +00:00
|
|
|
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_3_1() {
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = frontSurface;
|
|
|
|
|
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(192);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(1);
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(193);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(2);
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(194);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(3);
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(195);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(4);
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(196);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(5);
|
|
|
|
talk_bartender(6);
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(197);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(7);
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(198);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(8);
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(199);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(9);
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(200);
|
|
|
|
talk(201);
|
|
|
|
talk(202);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[0] = 1;
|
|
|
|
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = extraSurface;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(97, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_4_1() {
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = frontSurface;
|
|
|
|
|
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
|
|
|
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = extraSurface;
|
|
|
|
|
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_1_2() {
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(178, 121);
|
|
|
|
gotoObject(169, 135);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_2_2() {
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 0;
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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_3_2() {
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(163, 106);
|
|
|
|
gotoObject(287, 101);
|
|
|
|
trackProtagonist = 0;
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::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-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = frontSurface;
|
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = extraSurface;
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[9] = 0;
|
|
|
|
flags[4] = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_8_2() {
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_pianist(6);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(358);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_pianist(7);
|
|
|
|
talk_pianist(8);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_9_2() {
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_pianist(9);
|
|
|
|
talk_pianist(10);
|
|
|
|
talk_pianist(11);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_10_2() {
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_pianist(12);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(361);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(40);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_pianist(13);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(362);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_pianist(14);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(363);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_pianist(15);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(364);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_pianist(16);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_14_2() {
|
2008-06-08 03:09:21 +00:00
|
|
|
int cabinPos[6] = { 150, 6, 69, -160, 158, 161 };
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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();
|
|
|
|
cabinPos[3] = n;
|
|
|
|
copyRectClip(cabinPos, 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
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_15_2() {
|
2008-05-30 10:55:43 +00:00
|
|
|
talk_drunk(8);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(7);
|
2008-05-30 10:55:43 +00:00
|
|
|
talk_drunk(9);
|
|
|
|
talk_drunk(10);
|
|
|
|
talk_drunk(11);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_16_2() {
|
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-05-29 22:34:03 +00:00
|
|
|
int key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
goto asco;
|
|
|
|
|
2008-05-11 11:11:24 +00:00
|
|
|
if (_lang != kSpanish)
|
2008-05-30 07:16:17 +00:00
|
|
|
color_abc(kColorDarkGreen);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("his1.alg", bgSurface, HALF_PAL);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
|
|
|
if (_lang == kSpanish)
|
2008-05-11 12:47:26 +00:00
|
|
|
black();
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
|
|
|
if (_lang != kSpanish)
|
2008-05-29 22:34:03 +00:00
|
|
|
centerText(_texthis[_lang][1], 180, 180);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-11 11:11:24 +00:00
|
|
|
|
|
|
|
if (_lang == kSpanish)
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeFromBlack(1);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
goto asco;
|
|
|
|
|
2008-05-11 11:11:24 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-26 20:18:27 +00:00
|
|
|
_system->delayMillis(3000);
|
2008-05-11 11:11:24 +00:00
|
|
|
else
|
2008-05-26 20:18:27 +00:00
|
|
|
_system->delayMillis(4000);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
goto asco;
|
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(1);
|
|
|
|
key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
goto asco;
|
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("his2.alg", bgSurface, HALF_PAL);
|
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
|
|
|
if (_lang != kSpanish)
|
2008-05-29 22:34:03 +00:00
|
|
|
centerText(_texthis[_lang][2], 180, 180);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-29 22:34:03 +00:00
|
|
|
key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
goto asco;
|
|
|
|
|
2008-05-11 11:11:24 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-26 20:18:27 +00:00
|
|
|
_system->delayMillis(3000);
|
2008-05-11 11:11:24 +00:00
|
|
|
else
|
2008-05-26 20:18:27 +00:00
|
|
|
_system->delayMillis(4000);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
goto asco;
|
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(1);
|
|
|
|
key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
goto asco;
|
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-10 18:54:32 +00:00
|
|
|
loadPic("his3.alg", bgSurface, HALF_PAL);
|
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
|
|
|
if (_lang != kSpanish)
|
2008-05-29 22:34:03 +00:00
|
|
|
centerText(_texthis[_lang][3], 180, 180);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-29 22:34:03 +00:00
|
|
|
key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
goto asco;
|
|
|
|
|
2008-05-11 11:11:24 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-26 20:18:27 +00:00
|
|
|
_system->delayMillis(3000);
|
2008-05-11 11:11:24 +00:00
|
|
|
else
|
2008-05-26 20:18:27 +00:00
|
|
|
_system->delayMillis(4000);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
goto asco;
|
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface3, screenSurface);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
|
|
|
if (_lang != kSpanish)
|
2008-05-29 22:34:03 +00:00
|
|
|
centerText(_texthis[_lang][1], 180, 180);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-29 22:34:03 +00:00
|
|
|
key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
goto asco;
|
|
|
|
|
2008-05-11 11:11:24 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-26 20:18:27 +00:00
|
|
|
_system->delayMillis(2000);
|
2008-05-11 11:11:24 +00:00
|
|
|
else
|
2008-05-26 20:18:27 +00:00
|
|
|
_system->delayMillis(4000);
|
2008-05-11 11:11:24 +00:00
|
|
|
|
2008-05-29 22:34:03 +00:00
|
|
|
key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
goto asco;
|
|
|
|
|
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-05-29 22:34:03 +00:00
|
|
|
key = getScan();
|
2008-05-02 11:18:46 +00:00
|
|
|
if (key != 0)
|
|
|
|
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_17_2() {
|
2008-05-30 10:55:43 +00:00
|
|
|
talk_drunk(13);
|
|
|
|
talk_drunk(14);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[40] = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_19_2() {
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(5);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_20_2() {
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(7);
|
|
|
|
talk_vonBraunpuerta(8);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(383);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(9);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(384);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(10);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(385);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(11);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[23] == 0) {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(350);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(57);
|
2008-05-02 11:18:46 +00:00
|
|
|
} else {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(386);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(12);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[18] = 0;
|
|
|
|
flags[14] = 1;
|
2008-05-11 11:20:40 +00:00
|
|
|
openDoor(15, 1);
|
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_21_2() {
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(6);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::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-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(13);
|
|
|
|
talk_vonBraun(14);
|
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-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(15);
|
|
|
|
placeVonBraun(42);
|
|
|
|
trackVonBraun = 1;
|
|
|
|
talk_vonBraun(16);
|
|
|
|
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-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(17);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(8);
|
2008-06-06 14:50:19 +00:00
|
|
|
trackVonBraun = 1;
|
|
|
|
talk_vonBraun(18);
|
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-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(19);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[25] == 0) {
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(20);
|
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-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(21);
|
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() {
|
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);
|
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() {
|
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);
|
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() {
|
2008-06-07 14:15:56 +00:00
|
|
|
int cabinPos[6] = { 150, 6, 69, 0, 158, 161 };
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, 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-06-06 14:50:19 +00:00
|
|
|
moveVonBraun();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
cabinPos[3] = n;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
copyRectClip(cabinPos, 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();
|
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() {
|
|
|
|
flags[22] = 1;
|
|
|
|
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-06-05 15:03:48 +00:00
|
|
|
removeObject(kItemEarWithEarPlug);
|
|
|
|
addObject(kItemEarplugs);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(23);
|
|
|
|
talk_vonBraun(24);
|
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-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(25);
|
|
|
|
talk_vonBraun(26);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_28_2() {
|
2008-05-30 14:25:03 +00:00
|
|
|
for(int i = 27; i <= 30; i++)
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(i);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_29_2() {
|
|
|
|
if (flags[33] == 0) {
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(32);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(398);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(33);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(399);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(34);
|
|
|
|
talk_vonBraun(35);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(400);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(36);
|
|
|
|
talk_vonBraun(37);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(386);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(38);
|
|
|
|
talk_vonBraun(39);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(401);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(40);
|
|
|
|
talk_vonBraun(41);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[33] = 1;
|
|
|
|
} else
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(43);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(402);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(42);
|
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_30_2() {
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(31);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(396);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_31_2() {
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(44);
|
|
|
|
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-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 2;
|
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(78);
|
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:44:47 +00:00
|
|
|
pause(22);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(406);
|
2008-06-06 14:50:19 +00:00
|
|
|
placeVonBraun(98);
|
|
|
|
talk_vonBraun(45);
|
|
|
|
talk_vonBraun(46);
|
|
|
|
talk_vonBraun(47);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(407);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(48);
|
|
|
|
talk_vonBraun(49);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(408);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(50);
|
|
|
|
talk_vonBraun(51);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(409);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(52);
|
|
|
|
talk_vonBraun(53);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(12);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(54);
|
|
|
|
talk_vonBraun(55);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(410);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(56);
|
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
|
|
|
|
|
|
|
flags[38] = 0;
|
|
|
|
flags[36] = 1;
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
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() {
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, 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-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
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_1_3() {
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(413);
|
2008-05-02 11:18:46 +00:00
|
|
|
grr();
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(50);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(414);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_2_3() {
|
|
|
|
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() {
|
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
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim2(2, px, py, 71, 72, 4, frontSurface);
|
|
|
|
updateAnim2(75, px, py, 71, 72, 4, frontSurface);
|
|
|
|
updateAnim2(2, px, py, 71, 72, 4, extraSurface);
|
|
|
|
updateAnim2(75, px, py, 71, 72, 4, extraSurface);
|
|
|
|
updateAnim2(2, px, py, 71, 72, 4, backSurface);
|
|
|
|
updateAnim2(75, px, py, 71, 72, 4, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_4_3() {
|
|
|
|
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
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim2(1, px, py, 77, 89, 4, frontSurface);
|
|
|
|
updateAnim2(91, px, py, 77, 89, 4, frontSurface);
|
|
|
|
updateAnim2(1, px, py, 77, 89, 4, extraSurface);
|
|
|
|
updateAnim2(91, px, py, 77, 89, 4, extraSurface);
|
|
|
|
updateAnim2(1, px, py, 77, 89, 4, backSurface);
|
|
|
|
updateAnim2(91, px, py, 77, 89, 4, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::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
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim2(2, px, py, 71, 72, 4, frontSurface);
|
|
|
|
updateAnim2(75, px, py, 71, 72, 4, frontSurface);
|
|
|
|
updateAnim2(2, px, py, 71, 72, 4, extraSurface);
|
|
|
|
updateAnim2(75, px, py, 71, 72, 4, extraSurface);
|
|
|
|
updateAnim2(2, px, py, 71, 72, 4, backSurface);
|
|
|
|
updateAnim2(75, px, py, 71, 72, 4, backSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_6_3() {
|
|
|
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
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() {
|
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_2_4() {
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(16, kIgorSeated);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(278);
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(17, kIgorSeated);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(279);
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(18, kIgorSeated);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_3_4() {
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(19, kIgorSeated);
|
|
|
|
talk_igor(20, kIgorSeated);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(281);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_4_4() {
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(287);
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(21, kIgorSeated);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(284);
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(22, kIgorSeated);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(285);
|
2008-06-02 20:32:36 +00:00
|
|
|
talk_igor(23, kIgorSeated);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::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() {
|
|
|
|
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
|
|
|
|
|
|
|
for (;;) {
|
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();
|
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_2_5() {
|
2008-05-27 16:13:41 +00:00
|
|
|
talk_bj(22);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_3_5() {
|
2008-05-27 16:13:41 +00:00
|
|
|
talk_bj(23);
|
2008-05-11 11:20:40 +00:00
|
|
|
pickObject(10);
|
2008-05-31 00:15:01 +00:00
|
|
|
breakOut = 1;
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_4_5() {
|
|
|
|
flags[7] = 1;
|
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(228);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_werewolf(1);
|
|
|
|
talk_werewolf(2);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(23);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(229);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_werewolf(3);
|
|
|
|
talk_werewolf(4);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(230);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_werewolf(5);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(231);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_werewolf(6);
|
|
|
|
talk_werewolf(7);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(33);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(232);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_werewolf(8);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_5_5(){
|
|
|
|
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
|
|
|
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
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);
|
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);
|
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_6_5() {
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_werewolf(9);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(234);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_7_5() {
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_werewolf(10);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(236);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_werewolf(11);
|
|
|
|
talk_werewolf(12);
|
|
|
|
talk_werewolf(13);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(34);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_werewolf(14);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_8_5() {
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_werewolf(15);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(238);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_werewolf(16);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_9_5() {
|
|
|
|
flags[4] = 1;
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(401);
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-05-29 22:34:03 +00:00
|
|
|
removeObject(15);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_10_5() {
|
|
|
|
flags[3] = 1;
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(401);
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-05-29 22:34:03 +00:00
|
|
|
removeObject(12);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_11_5() {
|
|
|
|
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() {
|
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-06-04 07:58:34 +00:00
|
|
|
setDarkPalette();
|
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();
|
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();
|
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-06-04 07:58:34 +00:00
|
|
|
setBrightPalette();
|
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;
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-06-04 09:08:37 +00:00
|
|
|
enterRoom(57);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_13_5() {
|
|
|
|
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-07 14:15:56 +00:00
|
|
|
int pos_frusky[6] = { 1, 1, frank_x, 81, 44, 87 };
|
2008-05-02 11:18:46 +00:00
|
|
|
|
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-05-30 07:09:36 +00:00
|
|
|
copyRectClip(pos_frusky, 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
|
|
|
|
|
|
|
for (;;) {
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
pos_frusky[0] = frus_x[frame];
|
|
|
|
pos_frusky[1] = frus_y[frame];
|
|
|
|
pos_frusky[2] = frank_x;
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRectClip( pos_frusky, 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
|
|
|
}
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(6);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_14_5() {
|
|
|
|
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-05-02 15:09:20 +00:00
|
|
|
talk_solo(_textd[_lang][18], "d18.als");
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_15_5() {
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_mus(4);
|
|
|
|
talk_mus(5);
|
|
|
|
talk_mus(6);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(291);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_mus(7);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_16_5() {
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_mus(8);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_17_5() {
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_mus(9);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::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);
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(1);
|
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();
|
2008-05-02 11:18:46 +00:00
|
|
|
delay(930);
|
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);
|
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();
|
2008-05-02 11:18:46 +00:00
|
|
|
delay(900);
|
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-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = extraSurface;
|
|
|
|
|
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_2_6() {
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(24, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_3_6() {
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(24, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_4_6() {
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_drascula(25, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_5_6() {
|
2008-06-07 14:15:56 +00:00
|
|
|
int pos_pen[6] = { 1, 29, 204, -125, 18, 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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-02 11:18:46 +00:00
|
|
|
pos_pen[3] = n;
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRectClip(pos_pen, 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();
|
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() {
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("rct.bin", 11);
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
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;
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
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_7_6() {
|
|
|
|
flags[8] = 1;
|
2008-05-31 09:16:26 +00:00
|
|
|
updateVisible();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_9_6() {
|
|
|
|
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
|
|
|
|
roomNumber = -1;
|
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-05-02 15:09:20 +00:00
|
|
|
talk_solo(_textbj[_lang][24], "bj24.als");
|
|
|
|
talk_solo(_textbj[_lang][25], "bj25.als");
|
|
|
|
talk_solo(_textbj[_lang][26], "bj26.als");
|
|
|
|
talk_solo(_textbj[_lang][27], "bj27.als");
|
|
|
|
talk_solo(_textbj[_lang][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-06-06 20:12:51 +00:00
|
|
|
talk_solo(_textmisc[_lang][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_10_6() {
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(14);
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(164, 85, 155, 48, 113, 114, drawSurface3, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_bartender(23, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[7] = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_11_6() {
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_bartender(10, 1);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(268);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_bartender(11, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_12_6() {
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_bartender(12, 1);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(270);
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_bartender(13, 1);
|
|
|
|
talk_bartender(14, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_13_6() {
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_bartender(15, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_14_6() {
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_bartender(24, 1);
|
2008-05-29 22:34:03 +00:00
|
|
|
addObject(21);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[10] = 1;
|
2008-05-31 00:15:01 +00:00
|
|
|
breakOut = 1;
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_15_6() {
|
2008-06-01 22:38:29 +00:00
|
|
|
talk_bartender(16, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_18_6() {
|
|
|
|
flags[6] = 1;
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-05-29 22:34:03 +00:00
|
|
|
removeObject(21);
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("beb.bin", 10);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_19_6() {
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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() {
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = frontSurface;
|
|
|
|
|
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
|
|
|
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = extraSurface;
|
|
|
|
|
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() {
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = frontSurface;
|
|
|
|
|
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);
|
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
|
|
|
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = extraSurface;
|
|
|
|
|
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() {
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = frontSurface;
|
|
|
|
|
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(352);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(1);
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(353);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(17);
|
2008-05-29 18:09:12 +00:00
|
|
|
talk(354);
|
2008-05-31 00:06:05 +00:00
|
|
|
talk_bartender(18);
|
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-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = extraSurface;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(974, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::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-05-30 08:48:01 +00:00
|
|
|
talk(103);
|
2008-05-30 10:55:43 +00:00
|
|
|
talk_drunk(4);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[12] = 1;
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(367);
|
2008-05-30 10:55:43 +00:00
|
|
|
talk_drunk(5);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[12] = 1;
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(368);
|
2008-05-30 10:55:43 +00:00
|
|
|
talk_drunk(6);
|
|
|
|
talk_drunk(7);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[41] = 1;
|
|
|
|
}
|
2008-06-05 13:23:57 +00:00
|
|
|
converse(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_18_2() {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(378);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(4);
|
2008-06-05 13:23:57 +00:00
|
|
|
converse(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_22_2() {
|
2008-05-30 09:28:52 +00:00
|
|
|
talk(374);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist=2;
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(13);
|
2008-06-01 20:58:05 +00:00
|
|
|
finishSound();
|
2008-06-03 08:54:49 +00:00
|
|
|
trackProtagonist = 1;
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(1);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(375);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(2);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(376);
|
2008-06-06 14:50:19 +00:00
|
|
|
talk_vonBraunpuerta(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[18] = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::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-06-06 14:50:19 +00:00
|
|
|
talk_vonBraun(22);
|
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() {
|
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);
|
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() {
|
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() {
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = frontSurface;
|
|
|
|
|
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
|
|
|
|
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = extraSurface;
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(974, extraSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, 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-05-30 09:45:00 +00:00
|
|
|
updateAnim2(1, 80, 64, 51, 73, 6, backSurface);
|
|
|
|
updateAnim2(75, 80, 64, 51, 73, 6, backSurface);
|
|
|
|
updateAnim2(1, 80, 64, 51, 73, 6, extraSurface);
|
|
|
|
updateAnim2(75, 80, 64, 51, 73, 6, extraSurface);
|
|
|
|
updateAnim2(1, 80, 64, 51, 73, 6, frontSurface);
|
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
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim2(1, 80, 64, 51, 73, 6, backSurface);
|
|
|
|
updateAnim2(75, 80, 64, 51, 73, 6, backSurface);
|
|
|
|
updateAnim2(1, 80, 64, 51, 73, 6, extraSurface);
|
|
|
|
updateAnim2(75, 80, 64, 51, 73, 6, extraSurface);
|
|
|
|
updateAnim2(1, 80, 64, 51, 73, 6, frontSurface);
|
|
|
|
updateAnim2(75, 80, 64, 51, 73, 6, extraSurface);
|
|
|
|
updateAnim2(1, 80, 64, 51, 73, 6, frontSurface);
|
|
|
|
updateAnim2(75, 80, 64, 51, 73, 6, frontSurface);
|
|
|
|
updateAnim2(1, 80, 64, 51, 73, 6, drawSurface3);
|
|
|
|
updateAnim2(75, 80, 64, 51, 73, 2, drawSurface3);
|
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
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim2(1, 80, 64, 51, 73, 6, backSurface);
|
|
|
|
updateAnim2(75, 80, 64, 51, 73, 6, backSurface);
|
|
|
|
updateAnim2(1, 80, 64, 51, 73, 6, extraSurface);
|
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() {
|
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-06-04 09:02:23 +00:00
|
|
|
talk_sync(_text[_lang][46], "46.als", "4442444244244");
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_6_2() {
|
2008-05-11 10:03:06 +00:00
|
|
|
stopMusic();
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[9] = 1;
|
|
|
|
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = frontSurface;
|
|
|
|
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = extraSurface;
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[9] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::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-05-30 09:28:52 +00:00
|
|
|
talk(56);
|
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-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = frontSurface;
|
|
|
|
|
2008-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-06 19:17:21 +00:00
|
|
|
if (_lang == kSpanish)
|
|
|
|
textSurface = extraSurface;
|
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[33] = 1;
|
|
|
|
flags[9] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_1_4() {
|
|
|
|
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(){
|
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-05-11 11:20:40 +00:00
|
|
|
openDoor(2, 0);
|
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() {
|
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-06-10 18:54:32 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, bgSurface, screenSurface);
|
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);
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::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);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-04 10:27:10 +00:00
|
|
|
loadPic(96, frontSurface);
|
2008-05-11 11:20:40 +00:00
|
|
|
openDoor(7, 2);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_9_4() {
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("st.bin", 14);
|
2008-05-29 22:34:03 +00:00
|
|
|
fadeToBlack(1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-07 19:40:43 +00:00
|
|
|
void DrasculaEngine::activatePendulum() {
|
|
|
|
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
|