Initial commit

This commit is contained in:
2026-02-02 04:50:13 +01:00
commit 5b11698731
22592 changed files with 7677434 additions and 0 deletions

View File

@@ -0,0 +1,756 @@
/* 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 3 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, see <http://www.gnu.org/licenses/>.
*
*/
#include "amazon_resources.h"
namespace Amazon {
const byte MOUSE0[] = {
// hotspot x and y, uint16 LE
0, 0, 0, 0,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0, 2, 6, 1,
0, 3, 6, 6, 1,
0, 3, 6, 6, 1,
0, 4, 6, 6, 6, 1,
0, 4, 6, 6, 6, 1,
0, 5, 6, 6, 6, 6, 1,
0, 5, 6, 6, 6, 6, 1,
0, 6, 6, 6, 6, 6, 6, 1,
0, 6, 6, 6, 6, 6, 6, 1,
0, 7, 6, 6, 6, 6, 6, 6, 1,
0, 6, 6, 6, 6, 6, 6, 1,
0, 5, 6, 6, 6, 6, 1,
2, 3, 6, 6, 1,
3, 3, 6, 6, 1,
3, 3, 6, 6, 1,
4, 2, 6, 1
};
const byte MOUSE1[] = {
// hotspot x and y, uint16 LE
0x07, 0x00, 0x07, 0x00,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0x06, 0x01, 0x05,
0x04, 0x05, 0xFF, 0xFF, 0x00, 0xFF, 0xFF,
0x03, 0x07, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF,
0x02, 0x09, 0xFF, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0xFF,
0x01, 0x0B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF,
0x01, 0x0B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0xFF,
0x00, 0x0D, 0x05, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00, 0x00, 0x05,
0x01, 0x0B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0xFF,
0x01, 0x0B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF,
0x02, 0x09, 0xFF, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0xFF,
0x03, 0x07, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF,
0x04, 0x05, 0xFF, 0xFF, 0x00, 0xFF, 0xFF,
0x06, 0x01, 0x05,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00
};
const byte MOUSE2[] = {
// hotspot x and y, uint16 LE
0x08, 0x00, 0x08, 0x00,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0x00, 0x00,
0x00, 0x00,
0x07, 0x02, 0x04, 0x05,
0x07, 0x02, 0x04, 0x05,
0x07, 0x02, 0x04, 0x05,
0x07, 0x02, 0x04, 0x05,
0x07, 0x02, 0x04, 0x05,
0x02, 0x0C, 0x04, 0x04, 0x04, 0x04, 0x04, 0x00, 0x04, 0x04, 0x04, 0x04, 0x04, 0x05,
0x07, 0x02, 0x04, 0x05,
0x07, 0x02, 0x04, 0x05,
0x07, 0x02, 0x04, 0x05,
0x07, 0x02, 0x04, 0x05,
0x07, 0x02, 0x04, 0x05,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00
};
const byte MOUSE3[] = {
// hotspot x and y, uint16 LE
0x00, 0x00, 0x00, 0x00,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0x00, 0x0B, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
0x00, 0x0C, 0x06, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x06, 0x06, 0x05,
0x00, 0x0C, 0x06, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x06, 0x05, 0x05,
0x00, 0x0C, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x05,
0x00, 0x0C, 0x06, 0x06, 0x06, 0x06, 0x06, 0x05, 0x06, 0x06, 0x06, 0x06, 0x06, 0x05,
0x00, 0x0C, 0x06, 0x06, 0x06, 0x06, 0x05, 0x00, 0x00, 0x06, 0x06, 0x06, 0x06, 0x05,
0x00, 0x0C, 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, 0x06, 0x06, 0x06, 0x06, 0x06, 0x05,
0x00, 0x0C, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x05,
0x00, 0x0C, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x05,
0x00, 0x0C, 0x06, 0x06, 0x06, 0x06, 0x06, 0x05, 0x06, 0x06, 0x06, 0x06, 0x06, 0x05,
0x00, 0x0C, 0x06, 0x06, 0x06, 0x06, 0x06, 0x05, 0x06, 0x06, 0x06, 0x06, 0x06, 0x05,
0x00, 0x0C, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x05,
0x01, 0x0B, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00
};
const byte CURSEYE[] = {
// hotspot x and y, uint16 LE
0x01, 0x00, 0x08, 0x00,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0x04, 0x06, 0x0E, 0x0D, 0x0D, 0x0D, 0x0D, 0x0D,
0x03, 0x09, 0x0E, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0D, 0x0D,
0x02, 0x0B, 0x0E, 0x01, 0x33, 0x33, 0x01, 0x01, 0x33, 0x34, 0x01, 0x01, 0x0D,
0x01, 0x0D, 0x0E, 0x01, 0x04, 0x34, 0x01, 0x01, 0x01, 0x07, 0x33, 0x04, 0x04, 0x01, 0x0D,
0x00, 0x0F, 0x0E, 0x0E, 0x01, 0x07, 0x33, 0x33, 0x01, 0x01, 0x33, 0x34, 0x07, 0x07, 0x06, 0x01, 0x0E,
0x01, 0x0D, 0x0F, 0x0F, 0x06, 0x07, 0x34, 0x33, 0x33, 0x34, 0x07, 0x07, 0x06, 0x0F, 0x0E,
0x03, 0x09, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0E,
0x01, 0x01, 0x07,
0x00, 0x03, 0x07, 0x01, 0x07,
0x01, 0x01, 0x07,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00
};
const byte CURSHAND[] = {
// hotspot x and y, uint16 LE
0x02, 0x00, 0x03, 0x00,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0x07, 0x02, 0x17, 0x0E,
0x05, 0x07, 0x0E, 0x12, 0x17, 0x0E, 0x13, 0x17, 0x0E,
0x02, 0x0C, 0x07, 0x00, 0x17, 0x0E, 0x11, 0x0F, 0x0E, 0x11, 0x17, 0x0E, 0x00, 0x17,
0x01, 0x0E, 0x07, 0x01, 0x07, 0x0F, 0x0E, 0x11, 0x17, 0x0E, 0x11, 0x0F, 0x0E, 0x12, 0x17, 0x0E,
0x02, 0x0D, 0x07, 0x00, 0x17, 0x0F, 0x12, 0x0F, 0x0F, 0x11, 0x17, 0x0E, 0x12, 0x0F, 0x0E,
0x04, 0x0B, 0x0F, 0x0E, 0x11, 0x17, 0x0E, 0x12, 0x0F, 0x0F, 0x11, 0x17, 0x0E,
0x04, 0x0B, 0x17, 0x0E, 0x12, 0x17, 0x0E, 0x12, 0x17, 0x0E, 0x11, 0x0F, 0x0E,
0x00, 0x0F, 0x0E, 0x0D, 0x12, 0x00, 0x17, 0x0F, 0x0F, 0x0F, 0x0F, 0x12, 0x0F, 0x0E, 0x12, 0x17, 0x0F,
0x00, 0x0F, 0x0F, 0x17, 0x0D, 0x11, 0x0F, 0x0E, 0x0D, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0E, 0x0D,
0x01, 0x0E, 0x0F, 0x17, 0x0F, 0x0E, 0x0F, 0x0D, 0x0D, 0x0D, 0x0D, 0x0E, 0x0F, 0x0F, 0x0E, 0x0D,
0x02, 0x0D, 0x0F, 0x17, 0x0F, 0x0E, 0x0D, 0x0D, 0x0F, 0x0F, 0x0E, 0x0F, 0x0E, 0x0E, 0x12,
0x03, 0x0C, 0x0F, 0x17, 0x0F, 0x0F, 0x0F, 0x0E, 0x0F, 0x0F, 0x0F, 0x0E, 0x0D, 0x12,
0x04, 0x0A, 0x0F, 0x17, 0x0F, 0x0F, 0x0F, 0x0E, 0x0F, 0x0F, 0x0E, 0x0D,
0x05, 0x09, 0x0F, 0x17, 0x0F, 0x0F, 0x0F, 0x0F, 0x0E, 0x0D, 0x12,
0x06, 0x08, 0x17, 0x0F, 0x0F, 0x0F, 0x0F, 0x0E, 0x0D, 0x12,
0x06, 0x07, 0x17, 0x0F, 0x0F, 0x0F, 0x3D, 0x0E, 0x0D
};
const byte CURSGET[] = {
// hotspot x and y, uint16 LE
0x07, 0x00, 0x0E, 0x00,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0x0A, 0x05, 0x1C, 0x07, 0x0F, 0x0F, 0x0F,
0x08, 0x08, 0x1C, 0x07, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0C,
0x06, 0x0A, 0x1C, 0x07, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0C,
0x05, 0x0A, 0x07, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0C,
0x03, 0x0C, 0x07, 0x1C, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0C,
0x02, 0x0D, 0x1C, 0x0F, 0x0E, 0x0E, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0C,
0x01, 0x0E, 0x07, 0x0F, 0x0E, 0x0D, 0x0F, 0x0E, 0x0D, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0C,
0x00, 0x0F, 0x1C, 0x0F, 0x0E, 0x0D, 0x0F, 0x0E, 0x0D, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0C,
0x00, 0x0F, 0x1C, 0x0E, 0x0D, 0x0F, 0x0E, 0x0D, 0x0F, 0x0F, 0x0C, 0x0C, 0x0E, 0x0F, 0x0F, 0x0F, 0x0C,
0x00, 0x0E, 0x1C, 0x0D, 0x0F, 0x0E, 0x0D, 0x0F, 0x0F, 0x0C, 0x00, 0x00, 0x0E, 0x0F, 0x0F, 0x0C,
0x00, 0x0E, 0x1C, 0x0E, 0x0F, 0x0D, 0x0F, 0x0F, 0x0C, 0x00, 0x00, 0x0E, 0x1C, 0x0F, 0x0F, 0x0C,
0x00, 0x0D, 0x1C, 0x0D, 0x0F, 0x0D, 0x0F, 0x0C, 0x00, 0x00, 0x00, 0x0E, 0x1C, 0x0F, 0x0C,
0x01, 0x0B, 0x0E, 0x0F, 0x0E, 0x0F, 0x0C, 0x00, 0x00, 0x0E, 0x07, 0x0F, 0x0C,
0x02, 0x09, 0x0E, 0x0D, 0x0F, 0x0C, 0x00, 0x07, 0x0E, 0x0F, 0x0C,
0x03, 0x06, 0x0E, 0x0F, 0x0E, 0x07, 0x01, 0x07,
0x07, 0x01, 0x07
};
const byte CURSCLIMB[] = {
// hotspot x and y, uint16 LE
0x03, 0x00, 0x0E, 0x00,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0x06, 0x04, 0x01, 0x01, 0x01, 0x01,
0x06, 0x04, 0x0F, 0x0E, 0x01, 0x01,
0x06, 0x04, 0x0F, 0x0E, 0x0D, 0x01,
0x07, 0x02, 0x0F, 0x0D,
0x00, 0x0C, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x13, 0x12, 0x12, 0x12, 0x12, 0x11, 0x11,
0x00, 0x0D, 0x0D, 0x0E, 0x00, 0x00, 0x13, 0x14, 0x13, 0x12, 0x12, 0x12, 0x11, 0x11, 0x0E,
0x01, 0x0C, 0x0D, 0x0D, 0x0D, 0x0E, 0x11, 0x13, 0x13, 0x12, 0x11, 0x11, 0x0E, 0x0D,
0x02, 0x0C, 0x0E, 0x0E, 0x00, 0x00, 0x00, 0x13, 0x12, 0x11, 0x00, 0x00, 0x0E, 0x0D,
0x03, 0x0B, 0x04, 0x04, 0x04, 0x22, 0x21, 0x21, 0x20, 0x00, 0x00, 0x00, 0x0D,
0x02, 0x0D, 0x22, 0x04, 0x20, 0x22, 0x04, 0x21, 0x04, 0x20, 0x00, 0x00, 0x00, 0x0E, 0x0E,
0x03, 0x07, 0x22, 0x21, 0x20, 0x20, 0x22, 0x04, 0x20,
0x04, 0x06, 0x01, 0x01, 0x00, 0x04, 0x22, 0x20,
0x02, 0x09, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x04, 0x20,
0x03, 0x09, 0x07, 0x01, 0x01, 0x00, 0x00, 0x00, 0x22, 0x04, 0x20,
0x02, 0x0B, 0x07, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x20,
0x03, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01
};
const byte CURSTALK[] = {
// hotspot x and y, uint16 LE
0x02, 0x00, 0x0B, 0x00,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0x03, 0x08, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
0x01, 0x0C, 0x06, 0x06, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x06, 0x06,
0x00, 0x0E, 0x06, 0x06, 0x06, 0x06, 0x07, 0x06, 0x07, 0x07, 0x06, 0x07, 0x07, 0x06, 0x07, 0x06,
0x00, 0x0F, 0x06, 0x08, 0x08, 0x08, 0x06, 0x08, 0x06, 0x06, 0x08, 0x06, 0x06, 0x08, 0x06, 0x08, 0x06,
0x00, 0x0F, 0x06, 0x06, 0x08, 0x06, 0x08, 0x06, 0x08, 0x06, 0x08, 0x06, 0x06, 0x08, 0x08, 0x06, 0x06,
0x00, 0x0F, 0x06, 0x06, 0x08, 0x06, 0x08, 0x08, 0x08, 0x06, 0x08, 0x06, 0x06, 0x08, 0x06, 0x08, 0x06,
0x01, 0x0E, 0x06, 0x08, 0x06, 0x08, 0x06, 0x08, 0x06, 0x08, 0x08, 0x06, 0x08, 0x06, 0x08, 0x06,
0x02, 0x0C, 0x06, 0x06, 0x06, 0x07, 0x06, 0x07, 0x06, 0x06, 0x07, 0x06, 0x07, 0x06,
0x04, 0x09, 0x06, 0x06, 0x06, 0x07, 0x07, 0x07, 0x07, 0x06, 0x06,
0x07, 0x04, 0x06, 0x07, 0x07, 0x06,
0x02, 0x08, 0x07, 0x00, 0x00, 0x06, 0x06, 0x06, 0x06, 0x06,
0x01, 0x06, 0x07, 0x01, 0x07, 0x06, 0x06, 0x06,
0x02, 0x01, 0x07,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00
};
const byte CURSHELP[] = {
// hotspot x and y, uint16 LE
0x02, 0x00, 0x0B, 0x00,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0x04, 0x06, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24,
0x02, 0x0A, 0x24, 0x24, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x20, 0x20,
0x01, 0x0C, 0x24, 0x22, 0x22, 0x22, 0x20, 0x20, 0x20, 0x22, 0x22, 0x22, 0x22, 0x20,
0x00, 0x0E, 0x24, 0x22, 0x22, 0x22, 0x20, 0x00, 0x00, 0x00, 0x24, 0x22, 0x22, 0x22, 0x22, 0x20,
0x00, 0x0E, 0x24, 0x22, 0x22, 0x22, 0x22, 0x20, 0x00, 0x00, 0x00, 0x24, 0x22, 0x22, 0x22, 0x20,
0x00, 0x0E, 0x24, 0x22, 0x22, 0x22, 0x22, 0x20, 0x00, 0x00, 0x00, 0x24, 0x22, 0x22, 0x22, 0x20,
0x01, 0x0D, 0x24, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x24, 0x22, 0x22, 0x22, 0x22, 0x20,
0x07, 0x06, 0x24, 0x22, 0x22, 0x22, 0x22, 0x20,
0x05, 0x07, 0x24, 0x22, 0x22, 0x22, 0x22, 0x20, 0x20,
0x04, 0x05, 0x24, 0x22, 0x22, 0x22, 0x20,
0x02, 0x07, 0x07, 0x00, 0x24, 0x20, 0x20, 0x20, 0x20,
0x01, 0x03, 0x07, 0x01, 0x07,
0x02, 0x07, 0x07, 0x00, 0x00, 0x24, 0x24, 0x24, 0x24,
0x04, 0x06, 0x24, 0x22, 0x22, 0x22, 0x22, 0x20,
0x04, 0x06, 0x24, 0x22, 0x22, 0x22, 0x22, 0x20,
0x05, 0x04, 0x20, 0x20, 0x20, 0x20
};
const byte *const CURSORS[AMAZON_NUM_CURSORS] = {
MOUSE0, MOUSE1, MOUSE2, MOUSE3, CURSEYE, CURSHAND, CURSGET, CURSCLIMB, CURSTALK, CURSHELP
};
const uint CURSOR_SIZES[AMAZON_NUM_CURSORS] = {
sizeof(MOUSE0), sizeof(MOUSE1), sizeof(MOUSE2), sizeof(MOUSE3), sizeof(CURSEYE),
sizeof(CURSHAND), sizeof(CURSGET), sizeof(CURSCLIMB), sizeof(CURSTALK), sizeof(CURSHELP)
};
const int FONT2_INDEX[] = {
62, 2, 6,
0x0000, 0x0019, 0x0021, 0x002e, 0x0041, 0x005a, 0x0073, 0x008c, 0x0093, 0x009b,
0x00a3, 0x00bc, 0x00d5, 0x00dd, 0x00ea, 0x00f1, 0x00fe, 0x010b, 0x0118, 0x0125,
0x0132, 0x013f, 0x014c, 0x0159, 0x0166, 0x0173, 0x0180, 0x0187, 0x018e, 0x01a7,
0x01b4, 0x01cd, 0x01dc, 0x01f5, 0x0208, 0x0215, 0x0222, 0x022f, 0x023c, 0x0249,
0x025c, 0x0269, 0x0276, 0x0285, 0x0292, 0x029f, 0x02b2, 0x02c5, 0x02d2, 0x02df,
0x02ee, 0x02fb, 0x0308, 0x0315, 0x0322, 0x032f, 0x0342, 0x034f, 0x0362, 0x036f,
0x0388, 0x03a1,
};
const byte FONT2_DATA[] = {
0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xf0, 0xf0, 0xf0, 0xf0,
0x00, 0xf0, 0x00, 0x06, 0xf3, 0xc0, 0xc3, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x07, 0x1c, 0x00,
0x67, 0x9e, 0xc0, 0x07, 0x1c, 0x00, 0x67, 0x9e, 0xc0, 0x07,
0x1c, 0x00, 0x00, 0x00, 0x00, 0x09, 0x02, 0xc0, 0x00, 0x3f,
0xfc, 0x00, 0xb2, 0xc0, 0x00, 0x3f, 0xfc, 0x00, 0x02, 0xcb,
0x00, 0x3f, 0xfc, 0x00, 0x03, 0xc0, 0x00, 0x00, 0x00, 0x00,
0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x18, 0x60,
0x70, 0x70, 0x60, 0x1c, 0x00, 0x04, 0x60, 0x18, 0x1c, 0x1c,
0x1c, 0x70, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x30,
0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xc0,
0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xf0, 0xf0,
0x00, 0x07, 0x00, 0xf0, 0x03, 0xc0, 0x0f, 0x00, 0x3c, 0x00,
0xf0, 0x00, 0x00, 0x00, 0x07, 0x3f, 0xc0, 0x70, 0x70, 0x70,
0x70, 0x70, 0x70, 0x3f, 0xc0, 0x00, 0x00, 0x07, 0x1f, 0x00,
0x07, 0x00, 0x07, 0x00, 0x07, 0x00, 0xff, 0xf0, 0x00, 0x00,
0x08, 0x2b, 0xf0, 0xb0, 0x2c, 0x00, 0xa0, 0x0a, 0x00, 0xff,
0xfc, 0x00, 0x00, 0x07, 0xff, 0xc0, 0x00, 0x70, 0x03, 0xc0,
0x00, 0x70, 0xff, 0xc0, 0x00, 0x00, 0x07, 0x0b, 0xc0, 0x2d,
0xc0, 0xb1, 0xc0, 0xaa, 0xa0, 0x01, 0xc0, 0x00, 0x00, 0x07,
0xff, 0xf0, 0x70, 0x00, 0x7f, 0xc0, 0x00, 0xb0, 0xbf, 0xc0,
0x00, 0x00, 0x07, 0x2f, 0xc0, 0x70, 0x00, 0x7f, 0xc0, 0x70,
0x70, 0x3f, 0xc0, 0x00, 0x00, 0x08, 0xff, 0xfc, 0x00, 0xb0,
0x02, 0xc0, 0x02, 0xc0, 0x0b, 0x00, 0x00, 0x00, 0x08, 0x2f,
0xf0, 0xb0, 0x1c, 0x2f, 0xf0, 0xb0, 0x1c, 0x2f, 0xf0, 0x00,
0x00, 0x07, 0x3f, 0xc0, 0x70, 0x70, 0x3f, 0xf0, 0x00, 0x70,
0x3f, 0xc0, 0x00, 0x00, 0x03, 0xf0, 0xf0, 0x00, 0xf0, 0xf0,
0x00, 0x03, 0xf0, 0xf0, 0x00, 0xf0, 0x30, 0x00, 0x09, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0xff, 0xc0, 0x00, 0x00,
0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x06, 0xff, 0x00, 0x03, 0xc0, 0x0f, 0x00, 0x3c, 0x00,
0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x0a, 0x00, 0x40, 0x00, 0x01, 0xf0, 0x00, 0x07, 0x1c,
0x00, 0x1f, 0xff, 0x00, 0x70, 0x01, 0xc0, 0x00, 0x00, 0x00,
0x08, 0x7f, 0xf0, 0x70, 0x1c, 0x7f, 0xf0, 0x70, 0x1c, 0x6a,
0xb0, 0x00, 0x00, 0x08, 0x2f, 0xfc, 0x70, 0x00, 0x70, 0x00,
0x70, 0x00, 0x2a, 0xa8, 0x00, 0x00, 0x08, 0x7f, 0xf0, 0x70,
0x1c, 0x70, 0x1c, 0x70, 0x1c, 0x6a, 0xb0, 0x00, 0x00, 0x07,
0x7f, 0xf0, 0x70, 0x00, 0x7f, 0xc0, 0x70, 0x00, 0x6a, 0xa0,
0x00, 0x00, 0x07, 0x7f, 0xf0, 0x70, 0x00, 0x7f, 0xc0, 0x70,
0x00, 0x60, 0x00, 0x00, 0x00, 0x09, 0x3f, 0xfc, 0x00, 0x70,
0x00, 0x00, 0x70, 0xff, 0x00, 0x70, 0x1c, 0x00, 0x2a, 0xbc,
0x00, 0x00, 0x00, 0x00, 0x08, 0x70, 0x1c, 0x70, 0x1c, 0x7f,
0xfc, 0x70, 0x1c, 0x70, 0x1c, 0x00, 0x00, 0x07, 0xff, 0xf0,
0x07, 0x00, 0x07, 0x00, 0x07, 0x00, 0xaa, 0xa0, 0x00, 0x00,
0x08, 0x0f, 0xfc, 0x00, 0x70, 0x00, 0x70, 0x00, 0x70, 0x70,
0x70, 0x2a, 0x40, 0x00, 0x00, 0x08, 0x70, 0x2c, 0x72, 0xc0,
0x7f, 0x00, 0x72, 0xc0, 0x70, 0x28, 0x00, 0x00, 0x07, 0x70,
0x00, 0x70, 0x00, 0x70, 0x00, 0x70, 0x00, 0x6a, 0xa0, 0x00,
0x00, 0x0a, 0x70, 0x02, 0xc0, 0x7c, 0x09, 0xc0, 0x77, 0x2d,
0xc0, 0x71, 0xb1, 0xc0, 0x60, 0xc1, 0x80, 0x00, 0x00, 0x00,
0x09, 0x70, 0x07, 0x00, 0x77, 0x07, 0x00, 0x71, 0xc7, 0x00,
0x70, 0x77, 0x00, 0x60, 0x06, 0x00, 0x00, 0x00, 0x00, 0x08,
0x2f, 0xf0, 0x70, 0x1c, 0x70, 0x1c, 0x70, 0x1c, 0x2a, 0xa0,
0x00, 0x00, 0x08, 0x7f, 0xf0, 0x70, 0x1c, 0x7f, 0xf0, 0x70,
0x00, 0x60, 0x00, 0x00, 0x00, 0x08, 0x2f, 0xf0, 0x70, 0x1c,
0x70, 0x1c, 0x71, 0xdc, 0x2a, 0xa0, 0x00, 0x1c, 0x00, 0x00,
0x08, 0x7f, 0xf0, 0x70, 0x1c, 0x7f, 0xc0, 0x70, 0x70, 0x60,
0x18, 0x00, 0x00, 0x07, 0x2f, 0xf0, 0x70, 0x00, 0x2f, 0xc0,
0x00, 0xb0, 0xbf, 0xc0, 0x00, 0x00, 0x07, 0xff, 0xf0, 0x0b,
0x00, 0x07, 0x00, 0x07, 0x00, 0x07, 0x00, 0x00, 0x00, 0x08,
0x70, 0x1c, 0x70, 0x1c, 0x70, 0x1c, 0x70, 0xdc, 0x1f, 0x1c,
0x00, 0x00, 0x08, 0xf0, 0x1c, 0xb0, 0x1c, 0x70, 0xb0, 0x72,
0xc0, 0x7f, 0x00, 0x00, 0x00, 0x0b, 0xf0, 0x00, 0xb0, 0xb0,
0x00, 0x70, 0x70, 0xc0, 0x70, 0x72, 0x72, 0xc0, 0x7c, 0x1f,
0x00, 0x00, 0x00, 0x00, 0x08, 0xf0, 0x3c, 0x1c, 0xe0, 0x07,
0xc0, 0x1c, 0x70, 0x70, 0x1c, 0x00, 0x00, 0x09, 0x70, 0x07,
0x00, 0x1c, 0x1c, 0x00, 0x07, 0xf0, 0x00, 0x01, 0xc0, 0x00,
0x01, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x08, 0xff, 0xfc, 0x00,
0x70, 0x07, 0x00, 0x1c, 0x00, 0xaa, 0xac, 0x00, 0x00, 0x09,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
};
const int FONT6x6_INDEX[] = {
62, 1, 6,
0x0000, 0x0007, 0x000e, 0x0015, 0x001c, 0x0023, 0x002a, 0x0031, 0x0038, 0x003f,
0x0046, 0x004d, 0x0054, 0x005b, 0x0062, 0x0069, 0x0070, 0x0077, 0x007e, 0x0085,
0x008c, 0x0093, 0x009a, 0x00a1, 0x00a8, 0x00af, 0x00b6, 0x00bd, 0x00c4, 0x00cb,
0x00d2, 0x00d9, 0x00e0, 0x00e7, 0x00ee, 0x00f5, 0x00fc, 0x0103, 0x010a, 0x0111,
0x0118, 0x011f, 0x0126, 0x012d, 0x0134, 0x013b, 0x0142, 0x0149, 0x0150, 0x0157,
0x015e, 0x0165, 0x016c, 0x0173, 0x017a, 0x0181, 0x0188, 0x018f, 0x0196, 0x019d,
0x01a4, 0x01ab,
};
const byte FONT6x6_DATA[] = {
0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x30, 0x30,
0x30, 0x30, 0x00, 0x30, 0x06, 0xd8, 0xd8, 0x90, 0x00, 0x00,
0x00, 0x06, 0x50, 0xf8, 0x50, 0xf8, 0x50, 0x00, 0x06, 0x78,
0xa0, 0x70, 0x28, 0xf0, 0x20, 0x06, 0xc8, 0xd0, 0x20, 0x58,
0x98, 0x00, 0x06, 0x60, 0xd0, 0x60, 0xe8, 0xd0, 0x68, 0x06,
0x30, 0x30, 0x60, 0x00, 0x00, 0x00, 0x06, 0x30, 0x60, 0x60,
0x60, 0x30, 0x00, 0x07, 0x30, 0x18, 0x18, 0x18, 0x30, 0x00,
0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x20, 0x20,
0xf8, 0x20, 0x20, 0x00, 0x06, 0x00, 0x00, 0x00, 0x30, 0x30,
0x60, 0x06, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0x06, 0x00,
0x00, 0x00, 0x60, 0x60, 0x00, 0x06, 0x18, 0x30, 0x60, 0xc0,
0x80, 0x00, 0x06, 0x70, 0x98, 0xa8, 0xc8, 0x70, 0x00, 0x06,
0x10, 0x30, 0x10, 0x10, 0x10, 0x00, 0x06, 0xf0, 0x08, 0x70,
0x80, 0xf8, 0x00, 0x06, 0xf0, 0x08, 0x70, 0x08, 0xf0, 0x00,
0x06, 0x30, 0x50, 0x90, 0xf8, 0x10, 0x00, 0x06, 0xf0, 0x80,
0xf0, 0x08, 0xf0, 0x00, 0x06, 0x70, 0x80, 0xf0, 0x88, 0x70,
0x00, 0x06, 0xf8, 0x08, 0x10, 0x20, 0x20, 0x00, 0x06, 0x70,
0x88, 0x70, 0x88, 0x70, 0x00, 0x06, 0x70, 0x88, 0x78, 0x08,
0x70, 0x00, 0x06, 0x60, 0x60, 0x00, 0x60, 0x60, 0x00, 0x06,
0x60, 0x60, 0x00, 0x60, 0x20, 0x40, 0x06, 0x18, 0x30, 0x60,
0x30, 0x18, 0x00, 0x06, 0x00, 0x78, 0x00, 0x78, 0x00, 0x00,
0x06, 0x60, 0x30, 0x18, 0x30, 0x60, 0x00, 0x06, 0x70, 0x98,
0x30, 0x30, 0x00, 0x30, 0x06, 0x70, 0x88, 0xb8, 0xb0, 0x80,
0x78, 0x06, 0x70, 0x88, 0xf8, 0x88, 0x88, 0x00, 0x06, 0xf0,
0x88, 0xf0, 0x88, 0xf0, 0x00, 0x06, 0x78, 0x80, 0x80, 0x80,
0x78, 0x00, 0x06, 0xf0, 0x88, 0x88, 0x88, 0xf0, 0x00, 0x06,
0xf8, 0x80, 0xf0, 0x80, 0xf8, 0x00, 0x06, 0xf8, 0x80, 0xf0,
0x80, 0x80, 0x00, 0x06, 0x78, 0x80, 0x98, 0x88, 0x78, 0x00,
0x06, 0x88, 0x88, 0xf8, 0x88, 0x88, 0x00, 0x06, 0x70, 0x20,
0x20, 0x20, 0x70, 0x00, 0x06, 0x08, 0x08, 0x08, 0x88, 0x70,
0x00, 0x06, 0x90, 0xa0, 0xc0, 0xa0, 0x90, 0x00, 0x06, 0x80,
0x80, 0x80, 0x80, 0xf0, 0x00, 0x06, 0x88, 0xd8, 0xa8, 0x88,
0x88, 0x00, 0x06, 0x88, 0xc8, 0xa8, 0x98, 0x88, 0x00, 0x06,
0x70, 0x88, 0x88, 0x88, 0x70, 0x00, 0x06, 0xf0, 0x88, 0xf0,
0x80, 0x80, 0x00, 0x06, 0x70, 0x88, 0x88, 0x88, 0x70, 0x18,
0x06, 0xf0, 0x88, 0xf0, 0xa0, 0x98, 0x00, 0x06, 0x78, 0x80,
0x70, 0x08, 0xf0, 0x00, 0x06, 0xf8, 0x20, 0x20, 0x20, 0x20,
0x00, 0x06, 0x88, 0x88, 0x88, 0x88, 0x78, 0x00, 0x06, 0x88,
0x88, 0x88, 0x50, 0x20, 0x00, 0x06, 0x88, 0x88, 0xa8, 0xd8,
0x88, 0x00, 0x06, 0x88, 0x50, 0x20, 0x50, 0x88, 0x00, 0x06,
0x88, 0x88, 0x50, 0x20, 0x20, 0x00, 0x06, 0xf8, 0x10, 0x20,
0x40, 0xf8, 0x00, 0x06, 0x78, 0x60, 0x60, 0x60, 0x78, 0x00,
0x06, 0xc0, 0x60, 0x30, 0x18, 0x08, 0x00, 0x06, 0x78, 0x18,
0x18, 0x18, 0x78, 0x00, 0x00, 0x52, 0x41, 0x54, 0x00, 0x41,
0x4c, 0x43, 0x4f, 0x48, 0x4f, 0x4c, 0x00, 0x53, 0x41, 0x46,
0x45, 0x20, 0x43, 0x4f, 0x4d, 0x42, 0x49, 0x4e, 0x41, 0x54,
0x49, 0x4f, 0x4e, 0x00, 0x42, 0x45, 0x41, 0x4b, 0x45, 0x52,
0x00, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x4d,
0x00, 0x56, 0x41, 0x55, 0x4c, 0x54, 0x20, 0x4b, 0x45, 0x59,
0x00, 0x42, 0x4f, 0x4c, 0x54, 0x20, 0x43, 0x55, 0x54, 0x54,
0x45, 0x52, 0x53, 0x00, 0x42, 0x4c, 0x4f, 0x57, 0x47, 0x55,
0x4e, 0x00, 0x4c, 0x4f, 0x56, 0x45, 0x20, 0x50, 0x4f, 0x54,
0x49, 0x4f, 0x4e, 0x00, 0x4d, 0x4f, 0x4e, 0x45, 0x59, 0x00,
0x44, 0x41, 0x52, 0x54, 0x53, 0x00, 0x54, 0x41, 0x50, 0x45,
0x00, 0x4a, 0x55, 0x4e, 0x47, 0x4c, 0x45, 0x20, 0x50, 0x4f,
0x54, 0x49, 0x4f, 0x4e, 0x00, 0x4d, 0x4f, 0x56, 0x49,
};
const uint FONT2_INDEX_SIZE = sizeof(FONT2_INDEX) / 2;
const uint FONT2_DATA_SIZE = sizeof(FONT2_DATA);
const uint FONT6x6_INDEX_SIZE = sizeof(FONT6x6_INDEX) / 2;
const uint FONT6x6_DATA_SIZE = sizeof(FONT6x6_DATA);
const char *const ROOM_DESCR[64] = {
"Credits", nullptr, nullptr, nullptr, "Outside of Allister Center",
"Hall", "Jason's Lab", nullptr, "Allen's Lab", "Outside of the Vault",
"Inside the Vault", "Reader", "Jason's Apartment", "Jason's ransacked apartment", "Cutscene 1",
"TBD FLYSOUTH", "Cuzco Airport", "TBD INAIR", "Green Monkey Club", "In Plane",
"TBD PILFALL", "TBD COCKPIT", "TBD CRASH", "TBD SINKING", "Cutscene Jungle Walk",
"TBD TOWN", "TBD HOTEL", "TBD CANTINA", nullptr, "TBD MASSACRE",
"TBD TRADE", "TBD BRIDGE", "TBD DOCK", "TBD DRIVER", nullptr,
nullptr, "TBD SHORE", "TBD BOAT", "TBD CABIN", "TBD CAPTIVE",
nullptr, nullptr, "TBD VILLAGE", nullptr, "TBD TREE",
"TBD CANOE", "TBD INTREE", "TBD FALLS", nullptr, nullptr,
nullptr, nullptr, nullptr, nullptr, "TBD WATERFALL",
"TBD INWATER", nullptr, "Cave Bridge", nullptr, nullptr,
nullptr, "Pit with Ants", nullptr, nullptr
};
const byte DEATH_SCREENS_ENG[58] = {
0, 1, 0, 0, 0, 0, 0, 0, 2, 0,
0, 2, 4, 2, 1, 0, 0, 0, 0, 0,
0, 2, 7, 7, 4, 6, 7, 10, 4, 2,
0, 0, 0, 0, 5, 5, 3, 3, 3, 5,
8, 8, 11, 9, 8, 12, 0, 1, 9, 8,
8, 0, 5, 8, 0, 12, 12, 11
};
const byte DEATH_SCREENS_ENG_DEMO[34] = {
1, 2, 1, 1, 1, 1, 1, 1, 4, 1,
3, 4, 2, 4, 2, 1, 1, 1, 1, 1,
1, 4, 2, 4, 2, 4, 2, 4, 4, 4,
1, 1, 1, 1
};
const char *const DEATH_TEXT_ENG[58] = {
"SAM SALVADOR SPOTS YOU AND LETS YOU HAVE IT.",
"WHILE TAKING A MOONLIGHT SWIM YOU DISCOVER THAT PIRANHA REALLY CAN STRIP FLESH TO THE BONE.",
"THE GUARD FILLS YOU FULL OF HOLES BEFORE TOSSING YOU TO THE PIRANHA.",
"YOU'RE ONLY ABLE TO SWIM HALFWAY ACROSS THE RIVER BEFORE RUNNING OUT OF AIR. "
"YOU MAKE SO MUCH NOISE GASPING FOR BREATH THAT SAM EASILY FINDS YOU AND LEAVES "
"YOU IN THE RIVER PERMANENTLY.",
"SAM SALVADOR NOTICES SOMEONE HAS BEEN PLAYING WITH THE CARGO. "
"HE TRACKS YOU DOWN AND LETS YOU HAVE IT.",
"THE GUARD COMES AROUND THE CORNER. HE DECIDES THAT THREE LEAD SLUGS WILL "
"TEACH YOU TO BE MORE POLITE.",
"THE CAPTAIN IS WAITING OUTSIDE THE DOOR.",
"THE CAPTAIN'S RANDOM SHOOTING FINALLY FINDS ITS TARGET.",
"THE CRATE OUTSIDE THE WINDOW EXPLODES, DESTROYING THE SHIP. "
"UNFORTUNATELY, YOU'RE STILL ABOARD.",
"THE DOOR WAS NOT BARRED AND THE CAPTAIN WALKS RIGHT IN AND PARTS YOUR HAIR.",
"",
"YOU RUN OUT ON DECK, THEN REALIZE THAT MAYA IS STILL TIED UP. "
"AS YOU TURN TO GO BACK THE BOAT BLOWS UP.",
"AFTER YOU FAIL TO PROVE YOUR DIVINITY THE NATIVES EAT YOU FOR LUNCH.",
"THIS IS THE GENERIC DEATH SCENE",
"YOU ONLY MAKE IT HALFWAY ACROSS THE RIVER BEFORE THE PIRANHA STRIKE.",
"WITH NOTHING TO PROTECT HIM FROM THE HAIL OF BULLETS ALLEN IS QUICKLY GUNNED DOWN. "
"JASON AND MAYA SOON FOLLOW...",
"THE COMBINATION OF THE WIND AND GUNFIRE KNOCK THE CORRUGATED IRON OVER, "
"LEAVING YOU WITHOUT PROTECTION.",
"WITHOUT SUFFICIENT AMMUNITION, ALLEN IS UNABLE TO HOLD OFF THE ATTACKERS FOR LONG. "
"THIS RESULTS IN A SERIOUS CASE OF LEAD POISONING. ADDITIONAL AMMUNITION SHOULD "
"HAVE BEEN PURCHASED AT THE RIO BLANCO TRADING POST (CHAPTER 6).",
"ALLEN IS A MARVELOUS SHOT, BUT HIS AMMUNITION IS NOT UNLIMITED. "
"SOON IT IS ALL OVER.",
"THE PILOT FEELS YOU ARE TOO CLOSE AND PULLS THE TRIGGER.",
"THE PILOT SHOOTS YOU IN THE HEART, THEN TOSSES YOUR LIFELESS BODY OUT THE DOOR.",
"THE PLANE CRASHES INTO THE JUNGLE CANOPY AT 200 MPH.",
"THE CANOE HITS THE ROCKS AND CAPSIZES, AND THE PIRANHA MAKE YOU THEIR LUNCH GUESTS.",
"YOU TAKE THE WRONG BRANCH AND ACCIDENTALLY DISCOVER THE FOURTH TALLEST WATERFALL "
"IN SOUTH AMERICA.",
"YOU TAKE THE WRONG BRANCH AND DISCOVER A VERY HUNGRY TRIBE OF CANNIBALS.",
"YOU TAKE THE WRONG BRANCH AND BECOME LOST IN THE WINDING WATERWAYS. "
"YOU WANDER UNTIL YOU STARVE TO DEATH.",
"YOU TAKE THE WRONG BRANCH AND BECOME TRAPPED IN THE RAPIDS. "
"EVENTUALLY YOU AND MAYA ARE CRUSHED BETWEEN THE ROCKS.",
"YOU WAIT AROUND FOR SOME TIME, BUT HANS STROHEIM NEVER SPEAKS TO YOU AGAIN. "
"FINALLY YOU RETURN HOME KNOWING YOU HAVE FAILED.",
"DECIDING THAT YOU THREATEN HIM AND HIS WORK, HANS STROHEIM HAS THE NATIVES "
"IN THE VILLAGE KILL YOU.",
"YOU DO NOT GET FAR ENOUGH AWAY BEFORE THE DYNAMITE EXPLODES AND YOU ARE BLOWN "
"INTO A THOUSAND PIECES.",
"YOU ARE STANDING SO CLOSE TO THE ENTRANCE WHEN SANCEZ AND HIS MEN BREAK THROUGH "
"THE WALL THAT YOU ARE QUICKLY SPOTTED AND SHOT",
"THE AMAZON SENTINELS SPOT YOU AND FILL YOU FULL OF ARROWS.",
"SAM MAY BE UGLY, BUT HE'S NOT DEAF. HE HEARS ALL THE NOISE YOU ARE MAKING AND "
"CANCELS YOUR BOARDING PASS.",
"WITH THE BAR OFF THE DOOR THE CAPTAIN WALTZES IN AND BLOWS YOU AWAY",
"THE BEAR WANDERS OFF INTO THE WOODS AND DISTURBS THE TWO LOVEBIRDS. "
"WHEN THEY COME OUT THEY FIND YOU AND PUT YOU IN THE BIG HOUSE FOR TWENTY YEARS.",
"WHEN YOU DO NOT LEAVE THE SECURITY AREA QUICKLY ENOUGH YOU ARE ARRESTED AND CONVICTED "
"AS A COMMIE SPY. YOU EMBARK ON A NEW CAREER STAMPING OUT LICENSE PLATES.",
"THE HUNGRY BEAR SPOTS YOU AND DECIDES YOU WILL MAKE A NICE APPETIZER.",
"YOU DISTURB THE BEAR'S LUNCH AND HE EATS YOU FOR DESSERT.",
"AFTER FAILING TO FIND ANY LUNCH AT THE GARBAGE CAN THE BEAR EATS YOU INSTEAD.",
"THE SUSPICIOUS LIBRARIAN CALLS SECURITY AND YOU ARE SENT TO JAIL.",
"YOU PLUMMET 10,000 FEET TO YOUR DEATH.",
"EL LOCO FLIES INTO AN INSANE RAGE AND BEATS YOU TO A BLOODY PULP.",
"THE WOMAN WALKS OUT THE DOOR AND NEVER RETURNS. YOU SPEND THE REST OF YOUR LIFE "
"IN A FUTILE ATTEMPT TO LOCATE ALLEN.",
"YOU SLIP OFF THE PLATFORM AND FALL TO YOUR DEATH.",
"YOU SLIP OFF THE PLATFORM AND FALL TO YOUR DEATH.",
"YOU COME TOO CLOSE TO THE POWERFUL JAWS OF THE ANT AND HE SNIPS YOU IN TWO BEFORE "
"DEVOURING YOU.",
"B.O.B. HAS A FLAW IN HIS PROGRAMMING THAT DIRECTS HIM TO SHOOT FIRST AND ASK QUESTIONS LATER.",
"THE PLANE SINKS AND THE PIRHANA ATTACK BEFORE YOU EVEN GET OUT THE DOOR.",
"MAYA FALLS OFF THE END OF THE BROKEN BRIDGE.",
"YOUR WEIGHT IS JUST ENOUGH TO CAUSE THE REMAINING SUPPORT CABLE TO SNAP AND YOU "
"FALL TO THE BOTTOM OF THE GORGE.",
"EVEN WITH REPAIRS THE BRIDGE IS NOT STRONG ENOUGH TO HOLD TWO PEOPLE.",
"SANCHEZ AND HIS MEN FIND YOU AND HOLD FIRING SQUAD PRACTICE.",
"THE TWO GUARDS ARE DISTURBED IN THEIR LOVE NEST AND COME LOOKING FOR ANYONE ACTING SUSPICIOUS. "
"THEY FIND YOU AND SEND YOU UP THE RIVER.",
"THE PARACHUTE IS NOT LARGE ENOUGH TO SUPPORT YOU, AND YOU HIT THE TREES AT 140 M.P.H.",
"SANCHEZ AND HIS MEN FOLLOW YOU ACROSS THE BRIDGE AND CUT YOU DOWN IN A HAIL OF GUNFIRE",
"YOU TRIED TO STAB THE ANT BUT HIS SHELL IS TOO DIFFICULT TO PENETRATE. "
"YOU NOTICE A SLIGHT CUT IN THE SHELL UNDERNEATH BUT YOU CAN'T GET TO IT "
"AND HE SNIPS YOU INTO DELICIOUS MEATY CHUNKS.",
"AFTER THE ANT FINISHES SUCKING ALL OF THE SAP OUT OF THE VINE HE TURNS HIS ATTENTION BACK TO YOU "
"AND BITES YOUR HEAD OFF.",
"THE CANTINA OWNER NOTICES YOU ARE TRYING TO STEAL OBJECTS FROM THE TABLES. "
"TWENTY YEARS LATER YOU ARE RELEASED FROM A SOUTH AMERICAN PRISON."
};
const char *const DEATH_TEXT_ENG_DEMO[34] = {
"SAM SALVADOR SPOTS YOU AND LETS YOU HAVE IT.",
"WHILE TAKING A MOONLIGHT SWIM YOU DISCOVER THAT PIRANHA REALLY CAN STRIP FLESH TO THE BONE.",
"THE GUARD FILLS YOU FULL OF HOLES BEFORE TOSSING YOU TO THE PIRANHA.",
"YOU'RE ONLY ABLE TO SWIM HALFWAY ACROSS THE RIVER BEFORE RUNNING OUT OF AIR. YOU MAKE SO MUCH NOISE GASPING FOR BREATH THAT SAM EASILY FINDS YOU AND LEAVES YOU IN THE RIVER PERMANENTLY.",
"SAM SALVADOR NOTICES SOMEONE HAS BEEN PLAYING WITH THE CARGO. HE TRACKS YOU DOWN AND LETS YOU HAVE IT.",
"THE GUARD COMES AROUND THE CORNER. HE DECIDES THAT THREE LEAD SLUGS WILL TEACH YOU TO BE MORE POLITE.",
"THE CAPTAIN IS WAITING OUTSIDE THE DOOR.",
"THE CAPTAIN'S RANDOM SHOOTING FINALLY FINDS ITS TARGET.",
"THE CRATE OUTSIDE THE WINDOW EXPLODES, DESTROYING THE SHIP. UNFORTUNATELY, YOU'RE STILL ABOARD.",
"THE DOOR WAS NOT BARRED AND THE CAPTAIN WALKS RIGHT IN AND PARTS YOUR HAIR.",
"",
"YOU RUN OUT ON DECK, THEN REALIZE THAT MAYA IS STILL TIED UP. AS YOU TURN TO GO BACK THE BOAT BLOWS UP.",
"AFTER YOU FAIL TO PROVE YOUR DIVINITY THE NATIVES EAT YOU FOR LUNCH.",
"THIS IS THE GENERIC DEATH SCENE",
"YOU ONLY MAKE IT HALFWAY ACROSS THE RIVER BEFORE THE PIRANHA STRIKE.",
"WITH NOTHING TO PROTECT HIM FROM THE HAIL OF BULLETS ALLEN IS QUICKLY GUNNED DOWN. JASON AND MAYA SOON FOLLOW...",
"THE COMBINATION OF THE WIND AND GUNFIRE KNOCK THE CORRUGATED IRON OVER, LEAVING YOU WITHOUT PROTECTION.",
"WITHOUT SUFFICIENT AMMUNITION, ALLEN IS UNABLE TO HOLD OFF THE ATTACKERS FOR LONG. THIS RESULTS IN A SERIOUS CASE OF LEAD POISONING.",
"ALLEN IS A MARVELOUS SHOT, BUT HIS AMMUNITION IS NOT UNLIMITED. SOON IT IS ALL OVER.",
"THE PILOT FEELS YOU ARE TOO CLOSE AND PULLS THE TRIGGER.",
"THE PILOT SHOOTS YOU IN THE HEAD, THEN TOSSES YOUR LIFELESS",
"THE PLANE CRASHES INTO THE JUNGLE CANOPY AT 200 MPH.",
"THE CANOE HITS THE ROCKS AND CAPSIZES, AND THE PIRANHA MAKE YOU THEIR LUNCH GUESTS.",
"YOU ACCIDENTALLY DISCOVER THE FOURTH TALLEST WATERFALL IN SOUTH AMERICA.",
"YOU DISCOVER A VERY HUNGRY TRIBE OF CANNIBALS.",
"YOU BECOME LOST IN THE WINDING WATERWAYS AND WANDER UNTIL YOU STARVE TO DEATH.",
"YOU BECOME TRAPPED IN THE RAPIDS AND ARE CRUSHED BETWEEN THE ROCKS.",
"YOU WAIT AROUND FOR SOME TIME, BUT HANS STROHEIM NEVER SPEAKS TO YOU AGAIN. FINALLY YOU RETURN HOME KNOWING YOU HAVE FAILED.",
"DECIDING THAT YOU THREATEN HIM AND HIS WORK, HANS STROHEIM HAS THE NATIVES IN THE VILLAGE KILL YOU.",
"YOU DO NOT GET FAR ENOUGH AWAY BEFORE THE DYNAMITE EXPLODES AND YOU ARE BLOWN INTO A THOUSAND PIECES.",
"STANDING OUT IN THE OPEN YOU ARE EXPOSED TO THE HAIL OF BULLETS FROM SANCHEZ' MEN.",
"THE AMAZON SENTINELS SPOT YOU AND FILL YOU FULL OF ARROWS.",
"SAM MAY BE UGLY, BUT HE'S NOT DEAF. HE HEARS ALL THE NOISE YOU ARE MAKING AND CANCELS YOUR BOARDING PASS.",
"WITH THE BAR OFF THE DOOR THE CAPTAIN WALTZES IN AND BLOWS YOU AWAY"
};
const char *const INVENTORY_NAMES_ENG[85] = {
"RAT", "ALCOHOL", "SAFE COMBINATION", "BEAKER", "MICROFILM",
"VAULT KEY", "BOLT CUTTERS", "BLOWGUN", "LOVE POTION", "MONEY",
"DARTS", "TAPE", "JUNGLE POTION", "MOVIE", "CABINET KEY",
"DISPLAY CASE KEY", "FLITCH'S CAR KEYS", "COAT HANGER",
"CROWBAR", "COMPASS", "MAP", "LETTER OPENER", "LETTER",
"DECODER", "DIPPED DART", "LOADED BLOWGUN", "CARD", "JERRYCAN",
"CIGARETTES", "BIKE PUMP", "PARACHUTE", "PESO", "PEPPERS",
"MACHETE", "POISON ROOT", "AMMUNITION", "PADDLE", "FISHING NET",
"RAT TRAP", "CHEESE", "LOADED TRAP", "KNIFE", "CHOPPED PEPPERS",
"LIGHTER", "LADDER", "SMALL POLE", "JEEP KEY", "CHAIN", "ARROW",
"FILLED JERRY CAN", "EXPLOSIVES", "GEIGER COUNTER", "VINE",
"GOLD NUGGET", "HOLLOW REED", "AMAZON QUEEN KEYS", "FISHING POLE",
"HARPOON", "RAG", "BOTTLE OF RUM", "RAG IN BOTTLE", "MOLOTOV COCKTAIL",
"JUNGLE PLANT", "LADLE", "WORM", "FISH", "FIREWORKS", "BAITED POLE",
"FILLED LADLE", "EMERALD", "SMALL KEY", "SCROLL", "LIT EXPLOSIVES",
"LIGHTER", "BROKEN SPEAR", "SHOE LACES", "TORCH", "LACES AND SPEAR",
"KNIFE SPEAR", "GARBAGE CAN", "RAFT", "INFLATED RAFT",
"JASON'S CAR KEYS", "PESO BILLS", "PLANK"
};
const int COMBO_TABLE[85][4] = {
{ -1, -1, -1, -1 },
{ 12, 3, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ 24, 25, -1, -1 },
{ 10, 24, -1, -1 },
{ -1, -1, -1, -1 },
{ 8, 24, -1, -1 },
{ -1, -1, -1, -1 },
{ 1, 3, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ 7, 25, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ 80, 81, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ 41, 42, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ 39, 40, -1, -1 },
{ 38, 40, -1, -1 },
{ -1, -1, -1, -1 },
{ 32, 42, 77, 78 },
{ -1, -1, -1, -1 },
{ 60, 61, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ 73, 72, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ 64, 67, -1, -1 },
{ -1, -1, -1, -1 },
{ 59, 60, -1, -1 },
{ 58, 60, -1, -1 },
{ 43, 61, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ 56, 67, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ 50, 72, -1, -1 },
{ 75, 77, -1, -1 },
{ 74, 77, -1, -1 },
{ -1, -1, -1, -1 },
{ 41, 78, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ 29, 81, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 },
{ -1, -1, -1, -1 }
};
const char *const NO_HELP_MESSAGE_ENG =
"WE ARE UNABLE TO PROVIDE YOU WITH ANY MORE HINTS. YOUR IQ \
HAS DECREASED SO FAR THAT WE CAN NO LONGER PUT THE HINTS IN TERMS \
YOU CAN UNDERSTAND.";
const char *const NO_HINTS_MESSAGE_ENG = "THE HELP SYSTEM HAS BEEN TURNED OFF FOR THIS GAME.";
const char *const RIVER_HIT1_ENG = "YOU HIT THE ROCKS AND THE CANOE BEGINS TO LEAK.";
const char *const RIVER_HIT2_ENG = "YOU HIT THE ROCKS AND THE CANOE DEVELOPS SERIOUS LEAKS.";
const char *const BAR_MESSAGE_ENG = "YOU ARE TOO BUSY TRYING TO KEEP FROM SINKING TO DO THAT";
const char *const HELPLVLTXT_ENG[3] = { " LEVEL 1 ", " LEVEL 2 ", " LEVEL 3 " };
const char *const IQLABELS_ENG[9] = {
"VEGETABLE",
"NEANDERTHAL",
"LOBOTOMIZED",
"DENSE",
"AVERAGE",
"INTELLIGENT",
"MURPHYITE",
"BRILLIANT",
"GENIUS"
};
const char *const CANT_GET_THERE_ENG = "YOU CAN'T GET THERE FROM HERE.";
} // End of namespace Amazon

View File

@@ -0,0 +1,61 @@
/* 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 3 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, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __AMAZON_RESOURCES_H__
#define __AMAZON_RESOURCES_H__
#include "common/scummsys.h"
namespace Amazon {
#define AMAZON_NUM_CURSORS 10
extern const byte *const CURSORS[AMAZON_NUM_CURSORS];
extern const uint CURSOR_SIZES[AMAZON_NUM_CURSORS];
extern const int FONT2_INDEX[];
extern const byte FONT2_DATA[];
extern const int FONT6x6_INDEX[];
extern const byte FONT6x6_DATA[];
extern const uint FONT2_INDEX_SIZE;
extern const uint FONT2_DATA_SIZE;
extern const uint FONT6x6_INDEX_SIZE;
extern const uint FONT6x6_DATA_SIZE;
extern const char *const ROOM_DESCR[64];
extern const char *const DEATH_TEXT_ENG[58];
extern const char *const DEATH_TEXT_ENG_DEMO[34];
extern const byte DEATH_SCREENS_ENG[58];
extern const byte DEATH_SCREENS_ENG_DEMO[34];
extern const char *const INVENTORY_NAMES_ENG[85];
extern const int COMBO_TABLE[85][4];
extern const char *const NO_HELP_MESSAGE_ENG;
extern const char *const NO_HINTS_MESSAGE_ENG;
extern const char *const RIVER_HIT1_ENG;
extern const char *const RIVER_HIT2_ENG;
extern const char *const BAR_MESSAGE_ENG;
extern const char *const HELPLVLTXT_ENG[3];
extern const char *const IQLABELS_ENG[9];
extern const char *const CANT_GET_THERE_ENG;
} // End of namespace Amazon
#endif

View File

@@ -0,0 +1,507 @@
/* 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 3 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, see <http://www.gnu.org/licenses/>.
*
*/
// Disable symbol overrides so that we can use system headers.
#define FORBIDDEN_SYMBOL_ALLOW_ALL
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common/language.h"
#include "common/rect.h"
#include "create_access_dat.h"
#include "amazon_resources.h"
#include "martian_resources.h"
/**
* Format of the access.dat file that will be created:
* 4 Bytes - Magic string 'SVMA' to identify valid data file
* 2 bytes - Version number
* 2 Bytes - Number of different games data in the data file
* Series of index entries identifying each game:
* 1 byte - Game type: 1 = Amazon, 2 = Martian Memorandum, 3 = Noctropolis
* 1 byte - disc type: 0 = Floppy, 1 = CD, 2 = Common data shared across
* all variations of the given game
* 1 byte - Is Demo: 0 = Full game, 1 = Demo
* 1 byte - Language (Common::Language)
* 4 bytes - File offset for the data for the game
*/
File *outputFile;
void writeHeader(int numExecutables);
void writeAmazonCommonData();
void writeMartianCommonData(int argc, char *argv[]);
bool processExecutable(int idx, const char *name);
void NORETURN_PRE error(const char *s, ...) {
printf("%s\n", s);
exit(1);
}
int main(int argc, char *argv[]) {
const uint NUM_COMMON_ENTRIES = 2;
if (argc < 3) {
printf("Format: %s output_filename executable1 [executable2 ..]\n", argv[0]);
exit(0);
}
// Create the new data file for output
outputFile = new File;
outputFile->open(argv[1], kFileWriteMode);
writeHeader(argc - 2 + NUM_COMMON_ENTRIES);
// Write out entries containing common data for the games
writeAmazonCommonData();
writeMartianCommonData(argc, argv);
// Iterate through processing each specified executable
outputFile->seek(0, SEEK_END);
for (int idx = 2; idx < argc; ++idx) {
if (!processExecutable(idx - 2 + NUM_COMMON_ENTRIES, argv[idx]))
break;
}
// Close the output file
outputFile->close();
delete outputFile;
}
void writeHeader(int numExecutables) {
// Write out magic string
const char *MAGIC_STR = "SVMA";
outputFile->write(MAGIC_STR, 4);
// Write out version number
outputFile->writeWord(VERSION_NUMBER);
// Write out the number of entries the data file will contain
outputFile->writeWord(numExecutables);
// Write out padding for index entries that will be written
outputFile->writeByte(0, 8 * numExecutables);
}
void writeAmazonCommonData() {
// Write out the header entry
outputFile->seek(8);
outputFile->writeByte(1); // Amazon
outputFile->writeByte(2); // Common data
outputFile->writeByte(0);
outputFile->writeByte(0);
outputFile->writeLong(outputFile->size());
// Write out cursor list
outputFile->seek(0, SEEK_END);
outputFile->writeWord(AMAZON_NUM_CURSORS);
for (uint idx = 0; idx < AMAZON_NUM_CURSORS; ++idx) {
outputFile->writeWord(Amazon::CURSOR_SIZES[idx]);
outputFile->write(Amazon::CURSORS[idx], Amazon::CURSOR_SIZES[idx]);
}
// Write out font data
outputFile->writeWord(Amazon::FONT2_INDEX_SIZE);
for (uint idx = 0; idx < Amazon::FONT2_INDEX_SIZE; ++idx)
outputFile->writeWord(Amazon::FONT2_INDEX[idx]);
outputFile->writeWord(Amazon::FONT2_DATA_SIZE);
outputFile->write(Amazon::FONT2_DATA, Amazon::FONT2_DATA_SIZE);
outputFile->writeWord(Amazon::FONT6x6_INDEX_SIZE);
for (uint idx = 0; idx < Amazon::FONT6x6_INDEX_SIZE; ++idx)
outputFile->writeWord(Amazon::FONT6x6_INDEX[idx]);
outputFile->writeWord(Amazon::FONT6x6_DATA_SIZE);
outputFile->write(Amazon::FONT2_DATA, Amazon::FONT6x6_DATA_SIZE);
}
void writeMartianCommonData(int argc, char *argv[]) {
// Write out the header entry
outputFile->seek(16);
outputFile->writeByte(2); // Martian
outputFile->writeByte(2); // Common data
outputFile->writeByte(0);
outputFile->writeByte(0);
outputFile->writeLong(outputFile->size());
// Write out cursor list
outputFile->seek(0, SEEK_END);
outputFile->writeWord(MARTIAN_NUM_CURSORS);
for (uint idx = 0; idx < MARTIAN_NUM_CURSORS; ++idx) {
outputFile->writeWord(Martian::CURSOR_SIZES[idx]);
outputFile->write(Martian::CURSORS[idx], Martian::CURSOR_SIZES[idx]);
}
// Check for the presence of a Martian Memorandum executable
for (int idx = 2; idx < argc; ++idx) {
File exeFile;
if (!exeFile.open(argv[idx]))
continue;
// Total up the first 256 bytes of the executable as a simplified checksum
uint fileChecksum = 0;
for (int i = 0; i < 256; ++i)
fileChecksum += exeFile.readByte();
if (fileChecksum == 10454) {
// Write out font data
const int DATA_SEGMENT = 0x9600;
#define FONT_COUNT 119
const int FONT_WIDTHS[2] = { 0x47E6, 0x4C9C };
const int FONT_CHAR_OFFSETS[2] = { 0x46F8, 0x4BAE };
const uint FONT_DATA_SIZE[2] = { 849, 907 };
int dataOffset;
for (int fontNum = 0; fontNum < 2; ++fontNum) {
// Write out sizes
outputFile->writeWord(FONT_COUNT);
outputFile->writeWord(FONT_DATA_SIZE[fontNum]);
// Write out character widths
exeFile.seek(DATA_SEGMENT + FONT_WIDTHS[fontNum]);
outputFile->write(exeFile, FONT_COUNT);
// Write out character offsets
uint offsets[FONT_COUNT];
exeFile.seek(DATA_SEGMENT + FONT_CHAR_OFFSETS[fontNum]);
for (int i = 0; i < FONT_COUNT; ++i) {
offsets[i] = exeFile.readWord();
if (i == 0)
dataOffset = offsets[0];
offsets[i] -= dataOffset;
assert(offsets[i] < FONT_DATA_SIZE[fontNum]);
outputFile->writeWord(offsets[i]);
}
// Write out character data
exeFile.seek(DATA_SEGMENT + dataOffset);
outputFile->write(exeFile, FONT_DATA_SIZE[fontNum]);
}
exeFile.close();
return;
}
exeFile.close();
}
// No executable found, so store 0 size fonts
outputFile->writeWord(0);
outputFile->writeWord(0);
outputFile->writeWord(0);
outputFile->writeWord(0);
}
bool processExecutable(int exeIdx, const char *name) {
uint dataSegmentOffset;
uint filenamesOffset, numFilenames;
uint charsStart, charsEnd;
uint roomsStart, roomsEnd, numRooms;
uint travelPosOffset;
const char *const *roomDescs;
const byte *deathScreens;
const char *const *deathText;
uint numDeaths;
uint numItems;
const char *const *itemNames;
const int *comboTable;
byte gameId = 0, discType = 0, demoType = 0;
byte language = 5; //old Common::EN_ANY;
// Open up the file for access
File exeFile;
if (!exeFile.open(name)) {
printf("Could not open file - %s\n", name);
return false;
}
// Total up the first 256 bytes of the executable as a simplified
// means of identifying the different executables we support
uint fileChecksum = 0;
for (int idx = 0; idx < 256; ++idx)
fileChecksum += exeFile.readByte();
switch (fileChecksum) {
case 11899:
// Amazon English floppy
gameId = 1;
dataSegmentOffset = 0xC8C0;
filenamesOffset = dataSegmentOffset + 0x3628;
numFilenames = 100;
charsStart = dataSegmentOffset + 0x4234;
charsEnd = dataSegmentOffset + 0x49c6;
roomsStart = dataSegmentOffset + 0x35a8;
roomsEnd = dataSegmentOffset + 0x4234;
travelPosOffset = dataSegmentOffset + 0x5ff7;
numRooms = 64;
roomDescs = &Amazon::ROOM_DESCR[0];
deathScreens = Amazon::DEATH_SCREENS_ENG;
deathText = &Amazon::DEATH_TEXT_ENG[0];
numDeaths = sizeof(Amazon::DEATH_SCREENS_ENG);
numItems = 85;
itemNames = &Amazon::INVENTORY_NAMES_ENG[0];
comboTable = &Amazon::COMBO_TABLE[0][0];
break;
case 12012:
// Amazon Spanish floppy
language = 23; //old Common::ES_ESP;
gameId = 1;
dataSegmentOffset = 0xC8C0;
filenamesOffset = dataSegmentOffset + 0x3628 + 0x128;
numFilenames = 100;
charsStart = dataSegmentOffset + 0x4234 + 0x128;
charsEnd = dataSegmentOffset + 0x49c6 + 0x128;
roomsStart = dataSegmentOffset + 0x35a8 + 0x128;
roomsEnd = dataSegmentOffset + 0x4234 + 0x128;
travelPosOffset = dataSegmentOffset + 0x5ff7 + 0x128 + 0x2b;
numRooms = 64;
roomDescs = &Amazon::ROOM_DESCR[0];
deathScreens = Amazon::DEATH_SCREENS_ENG;
deathText = &Amazon::DEATH_TEXT_ENG[0];
numDeaths = sizeof(Amazon::DEATH_SCREENS_ENG);
numItems = 85;
itemNames = &Amazon::INVENTORY_NAMES_ENG[0];
comboTable = &Amazon::COMBO_TABLE[0][0];
break;
case 12360:
// Amazon CD English
gameId = 1;
discType = 1;
dataSegmentOffset = 0xd370;
filenamesOffset = dataSegmentOffset + 0x3EA0;
numFilenames = 116;
charsStart = dataSegmentOffset + 0x4BDC;
charsEnd = dataSegmentOffset + 0x5AF4;
roomsStart = dataSegmentOffset + 0x3E20;
roomsEnd = dataSegmentOffset + 0x4BDC;
travelPosOffset = dataSegmentOffset + 0x7125;
numRooms = 64;
roomDescs = &Amazon::ROOM_DESCR[0];
deathScreens = Amazon::DEATH_SCREENS_ENG;
deathText = &Amazon::DEATH_TEXT_ENG[0];
numDeaths = sizeof(Amazon::DEATH_SCREENS_ENG);
numItems = 85;
itemNames = &Amazon::INVENTORY_NAMES_ENG[0];
comboTable = &Amazon::COMBO_TABLE[0][0];
break;
case 11748:
// Amazon English Demo
gameId = 1;
discType = 0;
demoType = 1;
dataSegmentOffset = 0xa2a0;
filenamesOffset = dataSegmentOffset + 0x242C;
numFilenames = 100;
charsStart = dataSegmentOffset + 0x2F1A;
charsEnd = dataSegmentOffset + 0x34FB;
roomsStart = dataSegmentOffset + 0x23AC;
roomsEnd = dataSegmentOffset + 0x2F1A;
travelPosOffset = dataSegmentOffset + 0x494E;
numRooms = 64;
roomDescs = &Amazon::ROOM_DESCR[0];
deathScreens = Amazon::DEATH_SCREENS_ENG;
deathText = &Amazon::DEATH_TEXT_ENG[0];
numDeaths = sizeof(Amazon::DEATH_SCREENS_ENG);
numItems = 85;
itemNames = &Amazon::INVENTORY_NAMES_ENG[0];
comboTable = &Amazon::COMBO_TABLE[0][0];
break;
case 1224:
// Martian Memorandum English packed
printf("Martian Memorandum provided that's packed with EXEPACK.\n");
printf("It needs to be first unpacked before it can be used with this tool.\n");
exeFile.close();
return false;
case 10454:
// Martian Memorandum English decompressed
gameId = 2;
dataSegmentOffset = 0x9600;
filenamesOffset = dataSegmentOffset + 0x373A;
numFilenames = 80;
charsStart = dataSegmentOffset + 0x40F2;
charsEnd = dataSegmentOffset + 0x46F8;
roomsStart = dataSegmentOffset + 0x36DA;
roomsEnd = dataSegmentOffset + 0x40F2;
travelPosOffset = dataSegmentOffset + 0x58E9;
numRooms = 48;
roomDescs = &Martian::ROOM_DESCR[0];
deathScreens = Martian::DEATH_SCREENS_ENG;
deathText = &Martian::DEATH_TEXT_ENG[0];
numDeaths = sizeof(Martian::DEATH_SCREENS_ENG);
numItems = 55;
itemNames = &Martian::INVENTORY_NAMES_ENG[0];
comboTable = nullptr;
break;
default:
printf("Unknown game executable specified - %s\n", name);
exeFile.close();
return false;
}
// Write out header entry
uint outputOffset = outputFile->size();
outputFile->seek(8 + exeIdx * 8);
outputFile->writeByte(gameId);
outputFile->writeByte(discType);
outputFile->writeByte(demoType);
outputFile->writeByte(language);
outputFile->writeLong(outputOffset);
outputFile->seek(0, SEEK_END);
// Write out list of AP filenames
outputFile->writeWord(numFilenames);
for (uint idx = 0; idx < numFilenames; ++idx) {
exeFile.seek(filenamesOffset + idx * 2);
uint nameOffset = exeFile.readWord();
exeFile.seek(dataSegmentOffset + nameOffset);
outputFile->writeString(exeFile);
}
// Write out the character list
exeFile.seek(charsStart);
Common::Array<uint> charOffsets;
charOffsets.push_back(exeFile.readWord());
assert((dataSegmentOffset + charOffsets[0] - exeFile.pos()) < 512);
while (exeFile.pos() < (dataSegmentOffset + charOffsets[0]))
charOffsets.push_back(exeFile.readWord());
outputFile->writeWord(charOffsets.size());
charOffsets.push_back(charsEnd);
for (uint idx = 0; idx < charOffsets.size() - 1; ++idx) {
if (charOffsets[idx] == 0) {
outputFile->writeWord(0);
} else {
uint nextOffset = 0xffff;
for (uint idx2 = 0; idx2 < charOffsets.size(); ++idx2) {
if (charOffsets[idx2] && charOffsets[idx2] > charOffsets[idx] && charOffsets[idx2] < nextOffset)
nextOffset = charOffsets[idx2];
}
uint size = nextOffset - charOffsets[idx];
exeFile.seek(dataSegmentOffset + charOffsets[idx]);
outputFile->writeWord(size);
outputFile->write(exeFile, size);
}
}
// Write out the room data
Common::Array<uint> roomOffsets;
Common::Array<Common::Point> travelPos;
exeFile.seek(roomsStart);
for (uint idx = 0; idx < numRooms; ++idx)
roomOffsets.push_back(exeFile.readWord());
roomOffsets.push_back(roomsEnd);
exeFile.seek(travelPosOffset);
for (uint idx = 0; idx < numRooms; ++idx) {
int16 xp = (int16)exeFile.readWord();
int16 yp = (int16)exeFile.readWord();
travelPos.push_back(Common::Point(xp, yp));
}
outputFile->writeWord(numRooms);
for (uint idx = 0; idx < numRooms; ++idx) {
uint dataSize = 0;
if (roomOffsets[idx] == 0) {
dataSize = 0;
} else {
// Find the offset of the next higher entry that's non-zero
uint offset = 0;
for (uint idx2 = idx + 1; !offset; ++idx2)
offset = roomOffsets[idx2];
dataSize = offset - roomOffsets[idx];
exeFile.seek(dataSegmentOffset + roomOffsets[idx]);
}
// Write out the room description (used only by the debugger)
outputFile->writeString(roomDescs[idx]);
// Write out travel position
outputFile->writeWord((uint16)travelPos[idx].x);
outputFile->writeWord((uint16)travelPos[idx].y);
// Write out the data for the room
outputFile->writeWord(dataSize);
if (dataSize > 0)
outputFile->write(exeFile, dataSize);
}
// Write out the deaths list
outputFile->writeWord(numDeaths);
for (uint idx = 0; idx < numDeaths; ++idx) {
// Write out the screen number and text
outputFile->writeByte(deathScreens[idx]);
outputFile->writeString(deathText[idx]);
}
// Write out inventory data
outputFile->writeWord(numItems);
for (uint idx = 0; idx < numItems; ++idx) {
outputFile->writeString(itemNames[idx]);
if (comboTable == nullptr) {
for (uint cIdx = 0; cIdx < 4; ++cIdx)
outputFile->writeWord(0);
} else {
for (uint cIdx = 0; cIdx < 4; ++cIdx, ++comboTable)
outputFile->writeWord((uint16)*comboTable);
}
}
// Write out game specific strings and other data
if (gameId == 1) {
// Write out miscellaneous strings
outputFile->writeString(Amazon::NO_HELP_MESSAGE_ENG);
outputFile->writeString(Amazon::NO_HINTS_MESSAGE_ENG);
outputFile->writeString(Amazon::RIVER_HIT1_ENG);
outputFile->writeString(Amazon::RIVER_HIT2_ENG);
outputFile->writeString(Amazon::BAR_MESSAGE_ENG);
for (int idx = 0; idx < 3; ++idx)
outputFile->writeString(Amazon::HELPLVLTXT_ENG[idx]);
for (int idx = 0; idx < 9; ++idx)
outputFile->writeString(Amazon::IQLABELS_ENG[idx]);
outputFile->writeString(Amazon::CANT_GET_THERE_ENG);
}
// Do final padding to the next paragraph boundary
if ((outputFile->size() % 16) != 0)
outputFile->writeByte(0, 16 - (outputFile->size() % 16));
// Close the executable and signal that it was processed successfully
exeFile.close();
return true;
}

View File

@@ -0,0 +1,183 @@
/* 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 3 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, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __CREATE_ACCESS_DAT_H__
#define __CREATE_ACCESS_DAT_H__
#include <stdio.h>
#include <stdlib.h>
#include "common/scummsys.h"
#include "common/endian.h"
#include "common/array.h"
#define VERSION_NUMBER 2
enum AccessMode {
kFileReadMode = 1,
kFileWriteMode = 2
};
class File {
private:
FILE *_f;
const byte *_memPtr;
size_t _offset, _size;
public:
File() : _f(nullptr), _memPtr(nullptr), _offset(0), _size(0) {}
bool open(const char *filename, AccessMode mode = kFileReadMode) {
_memPtr = nullptr;
_f = fopen(filename, (mode == kFileReadMode) ? "rb" : "wb+");
return (_f != NULL);
}
bool open(const byte *data, uint size_) {
close();
_memPtr = data;
_size = size_;
return true;
}
void close() {
if (_f)
fclose(_f);
_f = nullptr;
_memPtr = nullptr;
}
int seek(int32 offset, int whence = SEEK_SET) {
if (_f)
return fseek(_f, offset, whence);
switch (whence) {
case SEEK_SET:
_offset = offset;
break;
case SEEK_CUR:
_offset += offset;
break;
case SEEK_END:
_offset = _size + offset;
break;
default:
break;
}
return _offset;
}
void skip(int32 offset) {
if (_f)
fseek(_f, offset, SEEK_CUR);
else
_offset += offset;
}
long read(void *buffer, size_t len) {
if (_f)
return fread(buffer, 1, len, _f);
uint bytesToRead = CLIP(len, (size_t)0, _size - _offset);
memcpy(buffer, &_memPtr[_offset], bytesToRead);
_offset += bytesToRead;
return bytesToRead;
}
void write(const void *buffer, size_t len) {
assert(_f);
fwrite(buffer, 1, len, _f);
}
void write(File &src, size_t len) {
for (size_t idx = 0; idx < len; ++idx)
writeByte(src.readByte());
}
byte readByte() {
byte v;
read(&v, sizeof(byte));
return v;
}
uint16 readWord() {
uint16 v;
read(&v, sizeof(uint16));
return FROM_LE_16(v);
}
uint32 readLong() {
uint32 v;
read(&v, sizeof(uint32));
return FROM_LE_32(v);
}
void writeByte(byte v) {
write(&v, sizeof(byte));
}
void writeByte(byte v, int len) {
byte *b = new byte[len];
memset(b, v, len);
write(b, len);
delete[] b;
}
void writeWord(uint16 v) {
uint16 vTemp = TO_LE_16(v);
write(&vTemp, sizeof(uint16));
}
void writeLong(uint32 v) {
uint32 vTemp = TO_LE_32(v);
write(&vTemp, sizeof(uint32));
}
void writeString(const char *msg) {
if (!msg) {
writeByte(0);
} else {
do {
writeByte(*msg);
} while (*msg++);
}
}
void writeString(File &src) {
char c;
do {
c = src.readByte();
writeByte(c);
} while (c);
}
uint32 pos() const {
if (_f)
return ftell(_f);
else
return _offset;
}
uint32 size() const {
if (_f) {
uint32 currentPos = pos();
fseek(_f, 0, SEEK_END);
uint32 result = pos();
fseek(_f, currentPos, SEEK_SET);
return result;
} else if (_memPtr) {
return _size;
} else {
return 0;
}
}
bool eof() const {
if (_f)
return feof(_f) != 0;
else if (_memPtr)
return _offset >= _size;
return false;
}
};
#endif

View File

@@ -0,0 +1,181 @@
/* 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 3 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, see <http://www.gnu.org/licenses/>.
*
*/
#include "martian_resources.h"
namespace Martian {
const byte MOUSE0[] = {
// hotspot x and y, uint16 LE
0, 0, 0, 0,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0, 2, 0xF7, 5,
0, 3, 0xF7, 0xF7, 5,
0, 3, 0xF7, 0xF7, 5,
0, 4, 0xF7, 0xF7, 0xF7, 5,
0, 4, 0xF7, 0xF7, 0xF7, 5,
0, 5, 0xF7, 0xF7, 0xF7, 0xF7, 5,
0, 5, 0xF7, 0xF7, 0xF7, 0xF7, 5,
0, 6, 0xF7, 0xF7, 0xF7, 0xF7, 0xF7, 5,
0, 6, 0xF7, 0xF7, 0xF7, 0xF7, 0xF7, 5,
0, 7, 0xF7, 0xF7, 0xF7, 0xF7, 0xF7, 0xF7, 5,
0, 6, 0xF7, 0xF7, 0xF7, 0xF7, 0xF7, 5,
0, 5, 0xF7, 0xF7, 0xF7, 0xF7, 5,
2, 3, 0xF7, 0xF7, 5,
3, 3, 0xF7, 0xF7, 5,
3, 3, 0xF7, 0xF7, 5,
4, 2, 0xF7, 5
};
const byte MOUSE1[] = {
// hotspot x and y, uint16 LE
7, 0, 7, 0,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
6, 1, 0xF7,
4, 5, 0xFF, 0xFF, 0, 0xFF, 0xFF,
3, 7, 0xFF, 0, 0, 0, 0, 0, 0xFF,
2, 9, 0xFF, 0, 0, 0, 0xF7, 0, 0, 0, 0xFF,
1, 11, 0xFF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF,
1, 11, 0xFF, 0, 0, 0, 0, 0xF7, 0, 0, 0, 0, 0xFF,
0, 13, 0xF7, 0, 0, 0xF7, 0, 0xF7, 0, 0xF7, 0, 0xF7, 0, 0, 0xF7,
1, 11, 0xFF, 0, 0, 0, 0, 0xF7, 0, 0, 0, 0, 0xFF,
1, 11, 0xFF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF,
2, 9, 0xFF, 0, 0, 0, 0xF7, 0, 0, 0, 0xFF,
3, 7, 0xFF, 0, 0, 0, 0, 0, 0xFF,
4, 5, 0xFF, 0xFF, 0, 0xFF, 0xFF,
6, 1, 0xF7,
0, 0,
0, 0,
0, 0
};
const byte MOUSE2[] = {
// hotspot x and y, uint16 LE
8, 0, 8, 0,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0, 0,
0, 0,
7, 2, 4, 5,
7, 2, 4, 5,
7, 2, 4, 5,
7, 2, 4, 5,
7, 2, 4, 5,
2, 12, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 5,
7, 2, 4, 5,
7, 2, 4, 5,
7, 2, 4, 5,
7, 2, 4, 5,
7, 2, 4, 5,
0, 0,
0, 0,
0, 0
};
const byte MOUSE3[] = {
// hotspot x and y, uint16 LE
0, 0, 0, 0,
// byte 1: number of skipped pixels
// byte 2: number of plotted pixels
// then, pixels
0, 11, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
0, 12, 6, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 5,
0, 12, 6, 7, 7, 7, 7, 7, 7, 7, 7, 6, 5, 5,
0, 12, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5,
0, 12, 6, 6, 6, 6, 6, 5, 6, 6, 6, 6, 6, 5,
0, 12, 6, 6, 6, 6, 5, 0, 0, 6, 6, 6, 6, 5,
0, 12, 6, 6, 6, 6, 6, 0, 6, 6, 6, 6, 6, 5,
0, 12, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5,
0, 12, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5,
0, 12, 6, 6, 6, 6, 6, 5, 6, 6, 6, 6, 6, 5,
0, 12, 6, 6, 6, 6, 6, 5, 6, 6, 6, 6, 6, 5,
0, 12, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5,
1, 11, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
0, 0,
0, 0,
0, 0
};
const byte *const CURSORS[MARTIAN_NUM_CURSORS] = {
MOUSE0, MOUSE1, MOUSE2, MOUSE3
};
const uint CURSOR_SIZES[MARTIAN_NUM_CURSORS] = {
sizeof(MOUSE0), sizeof(MOUSE1), sizeof(MOUSE2), sizeof(MOUSE3)
};
const char *const ROOM_DESCR[48] = {
nullptr, "TBD ROOM_TABLE1", "TBD ROOM_TABLE2", "TBD ROOM_TABLE3", "TBD ROOM_TABLE4",
"TBD ROOM_TABLE5", "TBD ROOM_TABLE6", "TBD ROOM_TABLE7", "TBD ROOM_TABLE8", "TBD ROOM_TABLE9",
nullptr, "TBD ROOM_TABLE11", nullptr, "TBD ROOM_TABLE13", "TBD ROOM_TABLE14",
"TBD ROOM_TABLE15", "TBD ROOM_TABLE16", "TBD ROOM_TABLE17", "TBD ROOM_TABLE18", nullptr,
nullptr, "TBD ROOM_TABLE21", "TBD ROOM_TABLE22", "TBD ROOM_TABLE23", "TBD ROOM_TABLE24",
"TBD ROOM_TABLE25", "TBD ROOM_TABLE26", "TBD ROOM_TABLE27", "TBD ROOM_TABLE28", "TBD ROOM_TABLE29",
"TBD ROOM_TABLE30", "TBD ROOM_TABLE31", "TBD ROOM_TABLE32", "TBD ROOM_TABLE33", nullptr,
"TBD ROOM_TABLE35", nullptr, "TBD ROOM_TABLE37", "TBD ROOM_TABLE38", "TBD ROOM_TABLE39",
nullptr, nullptr, nullptr, nullptr, nullptr,
nullptr, nullptr, "TBD ROOM_TABLE47"
};
const byte DEATH_SCREENS_ENG[20] = {
5, 5, 3, 3, 7, 4, 6, 2, 2, 2, 1, 5, 3, 5, 2, 8, 5, 3, 8, 5
};
const char *const DEATH_TEXT_ENG[20] = {
"A VICIOUS THUG PULLS OUT HIS GUN AND AIR CONDITIONS YOUR BRAIN.",
"BIG DICK COMES BACK AND ANNOUNCES YOUR TIME IS UP. ONE OF HIS BOYS PROCEEDS TO PART YOUR EYEBROWS.",
"ALTHOUGH HIS FIRST SHOT MISSED, THE PUNK FINDS YOU AND TURNS YOU INTO A DOUGHNUT.",
"THE CREEP SPOTS YOU. HE TURNS AND FIRES HIS WEAPON. IT BURNS A HOLE A BUZZARD CAN FLY THROUGH.",
"OBVIOUSLY RICK LOGAN HAS A FEW TRICK UP HIS SLEEVE. A TREMENDOUS WEIGHT HITS YOUR HEAD. YOU MUMBLE; WATCH OUT FOR THAT TREE...",
"SLOWLY SINKING IN THE SLIMY OOZE, YOU THINK OF SEVERAL JELLO WRESTLING MATCHES YOU'VE ATTENDED. BUT NO MORE...",
"THE PATH SUDDENLY GIVES WAY AND YOU FEEL MANY STAKES TEAR THROUGH YOUR FLESH. HOW DO YOU LIKE YOUR STAKE",
"THE SNAKE SINKS ITS FANGS INTO YOU LEG. THE POISON WORKS QUICKLY. THE SNAKE THEN SWALLOWS YOU WHOLE.",
"YOU FADE AWAY, GLOWING LIKE A LIGHTBULB.",
"YOU TOUCH THE BUBBLING RADIOACTIVE SELTZER. IT IMMEDIATELY CAUSES VITAL ORGANS TO ELONGATE AND EXPLODE. YOU DIE WITH AN ABSURD AND FOOLISH LOOK ON YOUR FACE.",
"THE DOGS PRETTY HUNGRY. IT WON'T TAKE HIM LONG TO FINISH SO SIT BACK AND ENJOY IT.",
"ROCKY DOESN'T LIKE BEING FOLLOWED. HE DECIDES TO BEAT YOU. WITHIN AND INCH OF YOUR LIFE. UNFORTUNATELY, HE MISJUDGED THE DISTANCE",
"YOU STUMBLE INTO DEADLY LASER FIRE.",
"THE OUTPOST AND YOUR BODY PARTS ARE BLOWN TO KINGDOM COME.",
"YOU REACH THE TOP, BUT YOUR AIR SOON RUNS OUT LEAVING YOU BREATHLESS.",
"YOU DIE IN THE FIERY EXPLOSION.",
"YOU FALL HUNDREDS OF FEET TO YOUR DEATH.",
"YOU WALK ONTO A PRESSURE SENSITIVE SECURITY PAD. A LASER ZEROS IN AND BLOWS A HOLE THE SIZE OF A SUBARU TIRE THROUGH YOU.",
"DANGERFIELD'S EXPERIMENT BACKFIRES. IT RELEASES A DEMON FROM HIS SUBCONSCIOUS WHICH DESTROYS THE ENTIRE PLANET.",
"ONCE DANGERFIELD GETS OUT OF HIS CHAMBER, HE PULLS OUT A WEAPON AND LETS YOU HAVE IT."
};
const char *const INVENTORY_NAMES_ENG[55] = {
"CAMERA", "LENS", "PHOTOS", "MAIL", "GUN",
"CASH", "COMLINK", "AMMO", "LOCKPICK KIT", "EARRING",
"RECIEPTS", "PAPER", "LADDER", "BOOTS", "DOCUMENTS",
"KNIFE", "DAGGER", "KEYS", "ROCK", "LOG",
"SHOVEL", "STONE", "REMOTE CONTROL", "FOOD AND WATER", "DOOR CARD KEY",
"FLASHLIGHT", "INTERLOCK KEY", "TOOLS", "REBREATHER", "JET PACK",
"ROD", "HCL2", "SAFE CARD KEY", "TUNING FORK", "STONE",
"ROSE", "KEY", "NOTE", "ALLEN WRENCH", "HOVER BOARD",
"BLUE PRINTS", "LETTER", "MEMORANDUM", "MARKERS", "FILM",
"ANDRETTI FILM", "GLASSES", "AMULET", "FACIAL KIT", "CAT FOOD",
"MONKEY WRENCH", "BIG DICK CARD", "BRA", "BOLT", nullptr
};
} // End of namespace Amazon

View File

@@ -0,0 +1,51 @@
/* 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 3 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, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __MARTIAN_RESOURCES_H__
#define __MARTIAN_RESOURCES_H__
#include "common/scummsys.h"
namespace Martian {
#define MARTIAN_NUM_CURSORS 4
extern const byte *const CURSORS[MARTIAN_NUM_CURSORS];
extern const uint CURSOR_SIZES[MARTIAN_NUM_CURSORS];
extern const char *const ROOM_DESCR[48];
extern const char *const DEATH_TEXT_ENG[20];
extern const byte DEATH_SCREENS_ENG[20];
extern const char *const INVENTORY_NAMES_ENG[55];
extern const int COMBO_TABLE[85][4];
extern const char *const NO_HELP_MESSAGE_ENG;
extern const char *const NO_HINTS_MESSAGE_ENG;
extern const char *const RIVER_HIT1_ENG;
extern const char *const RIVER_HIT2_ENG;
extern const char *const BAR_MESSAGE_ENG;
extern const char *const HELPLVLTXT_ENG[3];
extern const char *const IQLABELS_ENG[9];
extern const char *const CANT_GET_THERE_ENG;
} // End of namespace Amazon
#endif

View File

@@ -0,0 +1,13 @@
MODULE := devtools/create_access
MODULE_OBJS := \
create_access_dat.o \
amazon_resources.o \
martian_resources.o
# Set the name of the executable
TOOL_EXECUTABLE := create_access
# Include common rules
include $(srcdir)/rules.mk