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++;
|
|
|
|
copyBackground(px, py, px, py, width, height, drawSurface1, screenSurface);
|
|
|
|
copyRect(x, y, px, py, width, height, src, screenSurface);
|
|
|
|
updateScreen(px, py, px, py, width, height, screenSurface);
|
|
|
|
x = x + width;
|
|
|
|
pause(3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-05-02 11:18:46 +00:00
|
|
|
fliplay("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;
|
|
|
|
fliplay("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;
|
|
|
|
|
|
|
|
fliplay("scrollb.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;
|
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-02 04:42:19 +00:00
|
|
|
loadPic("96.alg", frontSurface, COMPLETE_PAL);
|
|
|
|
loadPic("103.alg", drawSurface1, HALF_PAL);
|
|
|
|
loadPic("104.alg", drawSurface3, 1);
|
|
|
|
loadPic("aux104.alg", drawSurface2, 1);
|
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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, screenSurface);
|
|
|
|
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);
|
|
|
|
copyBackground(l, 0, 0, 0, 320 - l, 200, drawSurface1, 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, screenSurface, drawSurface1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("100.alg", drawSurface1, HALF_PAL);
|
|
|
|
loadPic("auxigor.alg", frontSurface, 1);
|
|
|
|
loadPic("auxdr.alg", backSurface, 1);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackDrascula = 0;
|
2008-05-02 11:18:46 +00:00
|
|
|
x_dr = 129;
|
|
|
|
y_dr = 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("100.alg", drawSurface1, 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-11 10:03:06 +00:00
|
|
|
playMusic(2);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(5);
|
2008-05-02 11:18:46 +00:00
|
|
|
fliplay("intro.bin", 12);
|
|
|
|
term_int = 1;
|
|
|
|
}
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("96.alg", frontSurface, COMPLETE_PAL);
|
|
|
|
loadPic("99.alg", backSurface, 1);
|
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-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = frontSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an11y13.alg", extraSurface, 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-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-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = extraSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("97.alg", extraSurface, 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(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-02 04:42:19 +00:00
|
|
|
loadPic("16.alg", drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("auxbj.alg", drawSurface3, 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-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;
|
|
|
|
x_bj = 170;
|
|
|
|
y_bj = 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-02 04:42:19 +00:00
|
|
|
loadPic("97g.alg", extraSurface, 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-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-02 04:42:19 +00:00
|
|
|
loadPic("97.alg", extraSurface, 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
|
|
|
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-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = frontSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an11y13.alg", extraSurface, 1);
|
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-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = extraSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("97.alg", extraSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_4_1() {
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = frontSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an12.alg", extraSurface, 1);
|
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-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = extraSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[11] = 0;
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("97.alg", extraSurface, 1);
|
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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("an2_1.alg", frontSurface, 1);
|
|
|
|
loadPic("an2_2.alg", extraSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, screenSurface);
|
|
|
|
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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-30 09:28:52 +00:00
|
|
|
talk(56);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(8);
|
|
|
|
|
|
|
|
clearRoom();
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("ciego1.alg", drawSurface1, HALF_PAL); // ciego = blind
|
|
|
|
loadPic("ciego2.alg", drawSurface3, 1);
|
|
|
|
loadPic("ciego3.alg", extraSurface, 1);
|
|
|
|
loadPic("ciego4.alg", backSurface, 1);
|
|
|
|
loadPic("ciego5.alg", frontSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = frontSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][57], "d57.als");
|
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-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][58],"d58.als");
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(3);
|
2008-05-02 11:18:46 +00:00
|
|
|
delay(14);
|
2008-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][59],"d59.als");
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(4);
|
2008-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][60],"d60.als");
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(5);
|
2008-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][61],"d61.als");
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(6);
|
2008-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][62],"d62.als");
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(7);
|
2008-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][63],"d63.als");
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(8);
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, screenSurface);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-26 20:18:27 +00:00
|
|
|
_system->delayMillis(1000);
|
2008-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][64], "d64.als");
|
2008-06-02 05:00:11 +00:00
|
|
|
talk_blind(9);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("9.alg", drawSurface1, HALF_PAL);
|
|
|
|
loadPic("aux9.alg", drawSurface3, 1);
|
|
|
|
loadPic("96.alg", frontSurface, 1);
|
|
|
|
loadPic("97.alg", extraSurface, 1);
|
|
|
|
loadPic("99.alg", backSurface, 1);
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = extraSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
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() {
|
|
|
|
int n, pos_cabina[6];
|
|
|
|
int l = 0;
|
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an14_2.alg", backSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
pos_cabina[0] = 150;
|
|
|
|
pos_cabina[1] = 6;
|
|
|
|
pos_cabina[2] = 69;
|
|
|
|
pos_cabina[3] = -160;
|
|
|
|
pos_cabina[4] = 158;
|
|
|
|
pos_cabina[5] = 161;
|
|
|
|
|
|
|
|
for (n = -160; n <= 0; n = n + 5 + l) {
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, screenSurface);
|
2008-05-02 11:44:47 +00:00
|
|
|
updateRefresh_pre();
|
2008-06-04 07:58:34 +00:00
|
|
|
moveCharacters();
|
2008-06-03 08:54:49 +00:00
|
|
|
moveVB();
|
2008-05-02 11:18:46 +00:00
|
|
|
pos_cabina[3] = n;
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRectClip(pos_cabina, backSurface, screenSurface);
|
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
|
|
|
l = l + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
flags[24] = 1;
|
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
decompressPic(drawSurface1, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("99.alg", backSurface, 1);
|
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() {
|
|
|
|
int l;
|
|
|
|
|
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-02 04:42:19 +00:00
|
|
|
loadPic("his1.alg", drawSurface1, 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("his2.alg", drawSurface1, HALF_PAL);
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("his3.alg", drawSurface1, HALF_PAL);
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("his4_1.alg", drawSurface1, HALF_PAL);
|
|
|
|
loadPic("his4_2.alg", drawSurface3, 1);
|
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;
|
|
|
|
|
|
|
|
for (l = 1; l < 200; l++) {
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, l, 320, 200 - l, drawSurface3, screenSurface);
|
|
|
|
copyBackground(0, 200 - l, 0, 0, 320, l, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic(roomDisk, drawSurface3, 1);
|
2008-05-27 09:03:22 +00:00
|
|
|
char rm[20];
|
|
|
|
sprintf(rm, "%i.alg", roomNumber);
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic(rm, drawSurface1, 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-05-26 20:14:25 +00:00
|
|
|
talk_vbpuerta(5);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_20_2() {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vbpuerta(7);
|
|
|
|
talk_vbpuerta(8);
|
|
|
|
talk(383);
|
|
|
|
talk_vbpuerta(9);
|
|
|
|
talk(384);
|
|
|
|
talk_vbpuerta(10);
|
|
|
|
talk(385);
|
|
|
|
talk_vbpuerta(11);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[23] == 0) {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(350);
|
|
|
|
talk_vbpuerta(57);
|
2008-05-02 11:18:46 +00:00
|
|
|
} else {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(386);
|
|
|
|
talk_vbpuerta(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-03 08:54:49 +00:00
|
|
|
trackVB = 1;
|
|
|
|
vbX = 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-05-26 20:14:25 +00:00
|
|
|
talk_vbpuerta(6);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_23_2() {
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an24.alg", frontSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
flags[21] = 1;
|
|
|
|
|
|
|
|
if (flags[25] == 0) {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(13);
|
|
|
|
talk_vb(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-05-26 20:14:25 +00:00
|
|
|
talk_vb(15);
|
2008-05-02 11:18:46 +00:00
|
|
|
lleva_vb(42);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackVB = 1;
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(16);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackVB = 2;
|
|
|
|
gotoObject(157, 147);
|
|
|
|
gotoObject(131, 149);
|
|
|
|
trackProtagonist = 0;
|
2008-05-02 11:18:46 +00:00
|
|
|
animation_14_2();
|
|
|
|
if (flags[25] == 0)
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(17);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(8);
|
2008-06-03 08:54:49 +00:00
|
|
|
trackVB = 1;
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(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-03 08:54:49 +00:00
|
|
|
trackVB = 2;
|
2008-05-02 11:18:46 +00:00
|
|
|
animation_25_2();
|
|
|
|
lleva_vb(99);
|
|
|
|
|
|
|
|
if (flags[29] == 0) {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(19);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[25] == 0) {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(20);
|
2008-05-29 22:34:03 +00:00
|
|
|
if (removeObject(7) == 0)
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[30] = 1;
|
2008-05-29 22:34:03 +00:00
|
|
|
if (removeObject(18) == 0)
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[31] = 1;
|
2008-05-29 22:34:03 +00:00
|
|
|
if (removeObject(19) == 0)
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[32] = 1;
|
|
|
|
}
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(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-02 23:09:19 +00:00
|
|
|
int n, 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-02 04:42:19 +00:00
|
|
|
loadPic("an23.alg", backSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
for (n = 0; n < 34; n++) {
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRect(p_x, p_y, p_x, p_y, 36, 74, drawSurface1, screenSurface);
|
|
|
|
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-02 04:42:19 +00:00
|
|
|
loadPic("99.alg", backSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-05-31 00:06:05 +00:00
|
|
|
void DrasculaEngine::animation_23_joined2() {
|
2008-06-02 23:09:19 +00:00
|
|
|
int n, 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-02 04:42:19 +00:00
|
|
|
loadPic("an23_2.alg", backSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
for (n = 0; n < 14; n++) {
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRect(p_x, p_y, p_x, p_y, 33, 71, drawSurface1, screenSurface);
|
|
|
|
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-02 04:42:19 +00:00
|
|
|
loadPic("99.alg", backSurface,1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_25_2() {
|
|
|
|
int n, pos_cabina[6];
|
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an14_2.alg", backSurface, 1);
|
|
|
|
loadPic("18.alg", drawSurface1, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
pos_cabina[0] = 150;
|
|
|
|
pos_cabina[1] = 6;
|
|
|
|
pos_cabina[2] = 69;
|
|
|
|
pos_cabina[3] = 0;
|
|
|
|
pos_cabina[4] = 158;
|
|
|
|
pos_cabina[5] = 161;
|
|
|
|
|
|
|
|
flags[24] = 0;
|
|
|
|
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(6);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
for (n = 0; n >= -160; n = n - 8) {
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-03 08:54:49 +00:00
|
|
|
moveVB();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
pos_cabina[3] = n;
|
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyRectClip(pos_cabina, 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-02 04:42:19 +00:00
|
|
|
loadPic("99.alg", backSurface, 1);
|
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-05-29 22:34:03 +00:00
|
|
|
removeObject(23);
|
|
|
|
addObject(11);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(23);
|
|
|
|
talk_vb(24);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[30] == 1)
|
2008-05-29 22:34:03 +00:00
|
|
|
addObject(7);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[31] == 1)
|
2008-05-29 22:34:03 +00:00
|
|
|
addObject(18);
|
2008-05-02 11:18:46 +00:00
|
|
|
if (flags[32] == 1)
|
2008-05-29 22:34:03 +00:00
|
|
|
addObject(19);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(25);
|
|
|
|
talk_vb(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++)
|
|
|
|
talk_vb(i);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_29_2() {
|
|
|
|
if (flags[33] == 0) {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(32);
|
|
|
|
talk(398);
|
|
|
|
talk_vb(33);
|
|
|
|
talk(399);
|
|
|
|
talk_vb(34);
|
|
|
|
talk_vb(35);
|
|
|
|
talk(400);
|
|
|
|
talk_vb(36);
|
|
|
|
talk_vb(37);
|
|
|
|
talk(386);
|
|
|
|
talk_vb(38);
|
|
|
|
talk_vb(39);
|
|
|
|
talk(401);
|
|
|
|
talk_vb(40);
|
|
|
|
talk_vb(41);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[33] = 1;
|
|
|
|
} else
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(43);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(402);
|
|
|
|
talk_vb(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-05-26 20:14:25 +00:00
|
|
|
talk_vb(31);
|
|
|
|
talk(396);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_31_2() {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(44);
|
2008-05-02 11:18:46 +00:00
|
|
|
lleva_vb(-50);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(15);
|
2008-06-03 08:54:49 +00:00
|
|
|
gotoObject(159, 140);
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("99.alg", backSurface, 1);
|
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-05-02 11:18:46 +00:00
|
|
|
lleva_vb(98);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(45);
|
|
|
|
talk_vb(46);
|
|
|
|
talk_vb(47);
|
|
|
|
talk(407);
|
|
|
|
talk_vb(48);
|
|
|
|
talk_vb(49);
|
|
|
|
talk(408);
|
|
|
|
talk_vb(50);
|
|
|
|
talk_vb(51);
|
|
|
|
talk(409);
|
|
|
|
talk_vb(52);
|
|
|
|
talk_vb(53);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(12);
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(54);
|
|
|
|
talk_vb(55);
|
|
|
|
talk(410);
|
|
|
|
talk_vb(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-05-29 22:34:03 +00:00
|
|
|
removeObject(8);
|
|
|
|
removeObject(13);
|
|
|
|
removeObject(15);
|
|
|
|
removeObject(16);
|
|
|
|
removeObject(17);
|
|
|
|
addObject(20);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("an35_1.alg", backSurface, 1);
|
|
|
|
loadPic("an35_2.alg", frontSurface, 1);
|
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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("96.alg", frontSurface, 1);
|
|
|
|
loadPic("97.alg", extraSurface, 1);
|
|
|
|
loadPic("99.alg", backSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("an2y_1.alg", frontSurface, 1);
|
|
|
|
loadPic("an2y_2.alg", extraSurface, 1);
|
|
|
|
loadPic("an2y_3.alg", backSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("any_1.alg", frontSurface, 1);
|
|
|
|
loadPic("any_2.alg", extraSurface, 1);
|
|
|
|
loadPic("any_3.alg", backSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("an3y_1.alg", frontSurface, 1);
|
|
|
|
loadPic("an3y_2.alg", extraSurface, 1);
|
|
|
|
loadPic("an3y_3.alg", backSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("an4y.alg", frontSurface, 1);
|
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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, screenSurface);
|
|
|
|
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-02 04:42:19 +00:00
|
|
|
loadPic("96.alg", frontSurface, 1);
|
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
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_rayo() {
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("anr_1.alg", frontSurface, HALF_PAL);
|
|
|
|
loadPic("anr_2.alg", extraSurface, 1);
|
|
|
|
loadPic("anr_3.alg", backSurface, 1);
|
|
|
|
loadPic("anr_4.alg", drawSurface1, 1);
|
|
|
|
loadPic("anr_5.alg", drawSurface3, 1);
|
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-05-30 07:09:36 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, drawSurface1);
|
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-05-29 22:34:03 +00:00
|
|
|
converse("op_8.cal");
|
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-05-30 14:25:03 +00:00
|
|
|
talk_wolf(1);
|
|
|
|
talk_wolf(2);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(23);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(229);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_wolf(3);
|
|
|
|
talk_wolf(4);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(230);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_wolf(5);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(231);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_wolf(6);
|
|
|
|
talk_wolf(7);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(33);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(232);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_wolf(8);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_5_5(){
|
|
|
|
int h;
|
|
|
|
int frame = 0;
|
|
|
|
int hueso_x[] = {1, 99, 197, 1, 99, 197, 1, 99, 197};
|
|
|
|
int hueso_y[] = {1, 1, 1, 66, 66, 66, 131, 131, 131};
|
|
|
|
int vuela_x[] = {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-02 04:42:19 +00:00
|
|
|
loadPic("3an5_1.alg", backSurface, 1);
|
|
|
|
loadPic("3an5_2.alg", frontSurface, 1);
|
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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, screenSurface);
|
2008-05-30 08:14:01 +00:00
|
|
|
copyRect(hueso_x[frame], hueso_y[frame], pixelX, pixelY, 97, 64, backSurface, screenSurface);
|
|
|
|
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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, screenSurface);
|
2008-05-30 08:14:01 +00:00
|
|
|
copyRect(hueso_x[frame], hueso_y[frame], pixelX, pixelY, 97, 64, frontSurface, screenSurface);
|
|
|
|
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-02 04:42:19 +00:00
|
|
|
loadPic("96.alg", frontSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("101.alg", drawSurface1, HALF_PAL);
|
|
|
|
loadPic("3an5_3.alg", backSurface, 1);
|
|
|
|
loadPic("3an5_4.alg", extraSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, drawSurface1);
|
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-05-30 07:09:36 +00:00
|
|
|
copyBackground(vuela_x[frame], 1, 174, 79, 61, 109, backSurface, screenSurface);
|
|
|
|
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-05-30 07:09:36 +00:00
|
|
|
copyBackground(vuela_x[frame], 1, 174, 79, 61, 109, extraSurface, screenSurface);
|
|
|
|
updateScreen(174, 79, 174, 79, 61, 109, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
2008-05-30 07:09:36 +00:00
|
|
|
updateScreen(0, 0, 0, 0, 320, 200, drawSurface1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("99.alg", backSurface, 1);
|
|
|
|
loadPic("97.alg", extraSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("49.alg", drawSurface1, HALF_PAL);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_6_5() {
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_wolf(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-05-30 14:25:03 +00:00
|
|
|
talk_wolf(10);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(236);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_wolf(11);
|
|
|
|
talk_wolf(12);
|
|
|
|
talk_wolf(13);
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(34);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_wolf(14);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_8_5() {
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_wolf(15);
|
2008-05-30 08:48:01 +00:00
|
|
|
talk(238);
|
2008-05-30 14:25:03 +00:00
|
|
|
talk_wolf(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};
|
|
|
|
//const int humo_x[] = {1, 29, 57, 85, 113, 141, 169, 197, 225};
|
2008-05-30 08:28:54 +00:00
|
|
|
int color, component;
|
2008-06-03 08:54:49 +00:00
|
|
|
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 = 1; fade >= 0; fade--) {
|
2008-05-02 11:18:46 +00:00
|
|
|
for (color = 0; color < 128; color++)
|
2008-05-30 08:28:54 +00:00
|
|
|
for (component = 0; component < 3; component++)
|
2008-06-03 08:54:49 +00:00
|
|
|
bgPalette1[color][component] = adjustToVGA(bgPalette1[color][component] - 8 + fade);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
for (fade = 2; fade >= 0; fade--) {
|
2008-05-02 11:18:46 +00:00
|
|
|
for (color = 0; color < 128; color++)
|
2008-05-30 08:28:54 +00:00
|
|
|
for (component = 0; component < 3; component++)
|
2008-06-03 08:54:49 +00:00
|
|
|
bgPalette2[color][component] = adjustToVGA(bgPalette2[color][component] - 8 + fade);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-03 08:54:49 +00:00
|
|
|
for (fade = 3; fade >= 0; fade--) {
|
2008-05-02 11:18:46 +00:00
|
|
|
for (color = 0; color < 128; color++)
|
2008-05-30 08:28:54 +00:00
|
|
|
for (component = 0; component < 3; component++)
|
2008-06-03 08:54:49 +00:00
|
|
|
bgPalette3[color][component] = adjustToVGA(bgPalette3[color][component] - 8 + fade);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("3an11_1.alg", backSurface, 1);
|
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-05-11 11:20:40 +00:00
|
|
|
updatePalette();
|
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-02 04:42:19 +00:00
|
|
|
loadPic("99.alg", backSurface, 1);
|
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-05-02 11:18:46 +00:00
|
|
|
carga_escoba("57.ald");
|
|
|
|
}
|
|
|
|
|
|
|
|
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};
|
|
|
|
int pos_frusky[6];
|
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("auxfr.alg", backSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
pos_frusky[3] = 81;
|
|
|
|
pos_frusky[4] = 44;
|
|
|
|
pos_frusky[5] = 87;
|
|
|
|
pos_frusky[0] = 1;
|
|
|
|
pos_frusky[1] = 1;
|
|
|
|
pos_frusky[2] = frank_x;
|
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-05-02 11:18:46 +00:00
|
|
|
frank_x = frank_x - 5;
|
|
|
|
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() {
|
|
|
|
int l;
|
|
|
|
|
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;
|
|
|
|
for (l = 0; l < 200; l++)
|
|
|
|
factor_red[l] = 98;
|
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("auxig2.alg", frontSurface, 1);
|
|
|
|
loadPic("auxdr.alg", drawSurface2, 1);
|
|
|
|
loadPic("car.alg", backSurface, 1);
|
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-05-29 22:34:03 +00:00
|
|
|
converse("op_11.cal");
|
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-02 04:42:19 +00:00
|
|
|
loadPic("time1.alg", screenSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("time1.alg", screenSurface,1);
|
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
|
|
|
|
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = extraSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-05-02 11:18:46 +00:00
|
|
|
carga_escoba("102.ald");
|
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() {
|
|
|
|
int n, pos_pen[6];
|
|
|
|
|
|
|
|
pos_pen[0] = 1;
|
|
|
|
pos_pen[1] = 29;
|
|
|
|
pos_pen[2] = 204;
|
|
|
|
pos_pen[3] = -125;
|
|
|
|
pos_pen[4] = 18;
|
|
|
|
pos_pen[5] = 125;
|
|
|
|
|
2008-05-30 07:24:32 +00:00
|
|
|
animate("man.bin", 14);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
for (n = -125; n <= 0; n = n + 2) {
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("96.alg", frontSurface, 1);
|
|
|
|
loadPic("97.alg", frontSurface, 1);
|
|
|
|
loadPic("97.alg", extraSurface, 1);
|
|
|
|
loadPic("99.alg", backSurface, 1);
|
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-05-02 11:18:46 +00:00
|
|
|
carga_escoba("58.ald");
|
|
|
|
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-05-02 11:18:46 +00:00
|
|
|
carga_escoba("59.ald");
|
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-02 04:42:19 +00:00
|
|
|
loadPic("nota2.alg", drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("nota.alg", drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("96.alg", frontSurface, COMPLETE_PAL);
|
|
|
|
loadPic("nota2.alg", drawSurface1, 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, screenSurface, drawSurface1);
|
2008-05-31 12:40:02 +00:00
|
|
|
updateScreen();
|
2008-05-30 07:16:17 +00:00
|
|
|
color_abc(kColorLightGreen);
|
2008-05-02 13:21:06 +00:00
|
|
|
talk_solo("GOOOOOOOOOOOOOOOL", "s15.als");
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("nota2.alg", drawSurface1, 1);
|
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;
|
|
|
|
v_cd = 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-05-02 11:18:46 +00:00
|
|
|
fliplay("qpc.bin", 1);
|
|
|
|
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-05-02 11:18:46 +00:00
|
|
|
fliplay("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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, screenSurface);
|
|
|
|
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-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = frontSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an12.alg", extraSurface, 1);
|
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-05-29 22:34:03 +00:00
|
|
|
converse("op_1.cal");
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = extraSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[11] = 0;
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("974.alg", extraSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_26_2() {
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = frontSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an12.alg", extraSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("an26.alg", extraSurface, 1);
|
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-05-29 22:34:03 +00:00
|
|
|
removeObject(12);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = extraSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[11] = 0;
|
|
|
|
flags[39] = 1;
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("974.alg", extraSurface, 1);
|
2008-05-11 12:47:26 +00:00
|
|
|
roomMusic = 16;
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_11_2() {
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = frontSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an11y13.alg", extraSurface, 1);
|
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-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = extraSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("974.alg", extraSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_13_2() {
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an11y13.alg", frontSurface, 1);
|
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-05-29 22:34:03 +00:00
|
|
|
converse("op_2.cal");
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("964.alg", frontSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_18_2() {
|
2008-05-26 20:14:25 +00:00
|
|
|
talk(378);
|
|
|
|
talk_vbpuerta(4);
|
2008-05-29 22:34:03 +00:00
|
|
|
converse("op_3.cal");
|
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-05-26 20:14:25 +00:00
|
|
|
talk_vbpuerta(1);
|
|
|
|
talk(375);
|
|
|
|
talk_vbpuerta(2);
|
|
|
|
talk(376);
|
|
|
|
talk_vbpuerta(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-02 04:42:19 +00:00
|
|
|
loadPic("an24.alg", frontSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
animation_32_2();
|
|
|
|
|
|
|
|
flags[21] = 1;
|
|
|
|
|
2008-05-26 20:14:25 +00:00
|
|
|
talk_vb(22);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
if (flags[22] == 0)
|
2008-05-29 22:34:03 +00:00
|
|
|
converse("op_4.cal");
|
2008-05-02 11:18:46 +00:00
|
|
|
else
|
2008-05-29 22:34:03 +00:00
|
|
|
converse("op_5.cal");
|
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-03 08:54:49 +00:00
|
|
|
trackVB = 1;
|
|
|
|
vbX = 120;
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_32_2() {
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an32_1.alg", drawSurface3, 1);
|
|
|
|
loadPic("an32_2.alg", backSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("aux18.alg", drawSurface3, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("an34_1.alg", backSurface, 1);
|
|
|
|
loadPic("an34_2.alg", extraSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("994.alg", backSurface, 1);
|
|
|
|
loadPic("974.alg", extraSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_36_2() {
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = frontSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an11y13.alg", extraSurface, 1);
|
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-05-02 11:18:46 +00:00
|
|
|
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = extraSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("974.alg", extraSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DrasculaEngine::animation_7_2() {
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an7_1.alg", backSurface, 1);
|
|
|
|
loadPic("an7_2.alg", extraSurface, 1);
|
|
|
|
loadPic("an7_3.alg", frontSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
if (flags[3] == 1)
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(258, 110, 85, 44, 23, 53, drawSurface3, drawSurface1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("an7_4.alg", backSurface, 1);
|
|
|
|
loadPic("an7_5.alg", extraSurface, 1);
|
|
|
|
loadPic("an7_6.alg", frontSurface, 1);
|
|
|
|
loadPic("an7_7.alg", drawSurface3, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("an7_8.alg", backSurface, 1);
|
|
|
|
loadPic("an7_9.alg", extraSurface, 1);
|
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-05-30 07:09:36 +00:00
|
|
|
copyBackground(80, 64, 80, 64, 51, 73, drawSurface1, screenSurface);
|
|
|
|
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-02 04:42:19 +00:00
|
|
|
loadPic("99.alg", backSurface, 1);
|
|
|
|
loadPic("97.alg", extraSurface, 1);
|
|
|
|
loadPic("96.alg", frontSurface, 1);
|
|
|
|
loadPic("aux3.alg", drawSurface3, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("an5_1.alg", backSurface, 1);
|
|
|
|
loadPic("an5_2.alg", extraSurface, 1);
|
|
|
|
loadPic("an5_3.alg", frontSurface, 1);
|
|
|
|
loadPic("an5_4.alg", drawSurface3, 1);
|
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-05-30 09:45:00 +00:00
|
|
|
// FIXME: the widths in these calls were 53 and 52 (by mistake, probably).
|
|
|
|
// I've set them to 53, but if any problems arise, we should try 52 as well
|
|
|
|
updateAnim(1, 213, 66, 53, 84, 6, backSurface);
|
|
|
|
updateAnim(86, 213, 66, 53, 84, 6, backSurface);
|
|
|
|
updateAnim(1, 213, 66, 53, 84, 6, extraSurface);
|
|
|
|
updateAnim(1, 213, 66, 53, 84, 6, extraSurface);
|
|
|
|
updateAnim(86, 213, 66, 53, 84, 6, extraSurface);
|
|
|
|
updateAnim(1, 213, 66, 53, 84, 6, frontSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 11:04:40 +00:00
|
|
|
playSound(1);
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim(86, 213, 66, 53, 84, 6, frontSurface);
|
2008-06-01 20:58:05 +00:00
|
|
|
stopSound();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 09:45:00 +00:00
|
|
|
updateAnim(1, 213, 66, 53, 84, 6, drawSurface3);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("994.alg", backSurface, 1);
|
|
|
|
loadPic("974.alg", extraSurface, 1);
|
|
|
|
loadPic("964.alg", frontSurface, 1);
|
|
|
|
loadPic("aux5.alg", drawSurface3, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
flags[8] = 1;
|
2008-06-02 23:09:19 +00:00
|
|
|
curX = curX - 4;
|
2008-05-02 15:09:20 +00:00
|
|
|
talk_sinc(_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-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = frontSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-05-02 11:44:47 +00:00
|
|
|
clearRoom();
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("ciego1.alg", drawSurface1, HALF_PAL); // ciego = blind
|
|
|
|
loadPic("ciego2.alg", drawSurface3, 1);
|
|
|
|
loadPic("ciego3.alg", extraSurface, 1);
|
|
|
|
loadPic("ciego4.alg", backSurface, 1);
|
|
|
|
loadPic("ciego5.alg", frontSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][66], "d66.als");
|
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-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][67], "d67.als");
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("9.alg", drawSurface1, HALF_PAL);
|
|
|
|
loadPic("aux9.alg", drawSurface3, 1);
|
|
|
|
loadPic("96.alg", frontSurface, 1);
|
|
|
|
loadPic("97.alg", extraSurface, 1);
|
|
|
|
loadPic("99.alg", backSurface, 1);
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = extraSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
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-02 04:42:19 +00:00
|
|
|
loadPic("ciego1.alg", drawSurface1, HALF_PAL); // ciego = blind
|
|
|
|
loadPic("ciego2.alg", drawSurface3, 1);
|
|
|
|
loadPic("ciego3.alg", extraSurface, 1);
|
|
|
|
loadPic("ciego4.alg", backSurface, 1);
|
|
|
|
loadPic("ciego5.alg", frontSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = frontSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][57], "d57.als");
|
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-05-02 15:09:20 +00:00
|
|
|
talk_hacker(_textd[_lang][65], "d65.als");
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("9.alg", drawSurface1, HALF_PAL);
|
|
|
|
loadPic("aux9.alg", drawSurface3, 1);
|
|
|
|
loadPic("96.alg", frontSurface, 1);
|
|
|
|
loadPic("97.alg", extraSurface, 1);
|
|
|
|
loadPic("99.alg", backSurface, 1);
|
2008-05-11 11:20:40 +00:00
|
|
|
withoutVerb();
|
2008-05-02 11:18:46 +00:00
|
|
|
|
2008-05-24 21:23:06 +00:00
|
|
|
if (_lang == kSpanish)
|
2008-05-30 07:09:36 +00:00
|
|
|
textSurface = extraSurface;
|
2008-05-24 21:23:06 +00:00
|
|
|
|
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-05-29 22:34:03 +00:00
|
|
|
converse("op_6.cal");
|
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-02 04:42:19 +00:00
|
|
|
loadPic("anh_dr.alg", backSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("auxigor.alg", frontSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("96.alg", frontSurface, 1);
|
|
|
|
loadPic("99.alg", backSurface, 1);
|
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-02 04:42:19 +00:00
|
|
|
loadPic("26.alg", drawSurface1, HALF_PAL);
|
|
|
|
loadPic("aux26.alg", drawSurface3, 1);
|
|
|
|
loadPic("auxigor.alg", frontSurface, 1);
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, 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-02 04:42:19 +00:00
|
|
|
loadPic("96.alg", frontSurface, 1);
|
|
|
|
loadPic(roomDisk, drawSurface3, 1);
|
2008-05-27 09:03:22 +00:00
|
|
|
char rm[20];
|
|
|
|
sprintf(rm, "%i.alg", roomNumber);
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic(rm, drawSurface1, 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() {
|
|
|
|
int frame;
|
|
|
|
int estanteria_x[] = {1, 75, 149, 223, 1, 75, 149, 223, 149, 223, 149, 223, 149, 223};
|
|
|
|
int estanteria_y[] = {1, 1, 1, 1, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74};
|
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("an_8.alg", frontSurface, 1);
|
2008-05-02 11:18:46 +00:00
|
|
|
|
|
|
|
for (frame = 0; frame < 14; frame++) {
|
2008-05-02 11:44:47 +00:00
|
|
|
pause(2);
|
2008-05-30 07:09:36 +00:00
|
|
|
copyBackground(estanteria_x[frame], estanteria_y[frame], 77, 45, 73, 72, frontSurface, screenSurface);
|
|
|
|
updateScreen(77, 45, 77, 45, 73, 72, screenSurface);
|
2008-05-02 11:18:46 +00:00
|
|
|
}
|
|
|
|
|
2008-06-02 04:42:19 +00:00
|
|
|
loadPic("96.alg", frontSurface, 1);
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} // End of namespace Drascula
|