aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorArnaud Boutonné2010-09-26 11:27:08 +0000
committerArnaud Boutonné2010-09-26 11:27:08 +0000
commit2ab77f2f52942dc57d38e342a4633f74630001aa (patch)
tree2c8da4eb1f83f2f26a97bde05974aacb6794afb5 /tools
parent4543855eca837219e3cb69148438db628f264a67 (diff)
downloadscummvm-rg350-2ab77f2f52942dc57d38e342a4633f74630001aa.tar.gz
scummvm-rg350-2ab77f2f52942dc57d38e342a4633f74630001aa.tar.bz2
scummvm-rg350-2ab77f2f52942dc57d38e342a4633f74630001aa.zip
TOOLS: Add H1 Dos intro ticks to hugo.dat
svn-id: r52901
Diffstat (limited to 'tools')
-rw-r--r--tools/create_hugo/create_hugo.cpp45
-rw-r--r--tools/create_hugo/staticintro.h35
2 files changed, 70 insertions, 10 deletions
diff --git a/tools/create_hugo/create_hugo.cpp b/tools/create_hugo/create_hugo.cpp
index 71df07468b..e0daf9ef8a 100644
--- a/tools/create_hugo/create_hugo.cpp
+++ b/tools/create_hugo/create_hugo.cpp
@@ -308,13 +308,48 @@ int main(int argc, char *argv[]) {
writeTextArray(outFile, textEngine, NUM_ENGINE_TEXT);
// Write textIntro
- writeTextArray(outFile, textIntro, NUM_INTRO_TEXT);
+ writeTextArray(outFile, textIntro_dummy, NUM_INTRO_TEXT_DUMMY);
+ writeTextArray(outFile, textIntro_dummy, NUM_INTRO_TEXT_DUMMY);
+ writeTextArray(outFile, textIntro_v3, NUM_INTRO_TEXT_V3);
+ writeTextArray(outFile, textIntro_dummy, NUM_INTRO_TEXT_DUMMY);
+ writeTextArray(outFile, textIntro_dummy, NUM_INTRO_TEXT_DUMMY);
+ writeTextArray(outFile, textIntro_v3, NUM_INTRO_TEXT_V3);
// Write x_intro and y_intro
- writeUint16BE(outFile, NUM_INTRO_TICK);
- for (i = 0; i < NUM_INTRO_TICK; i++) {
- writeByte(outFile, x_intro[i]);
- writeByte(outFile, y_intro[i]);
+ writeUint16BE(outFile, NUM_INTRO_TICK_DUMMY);
+ for (i = 0; i < NUM_INTRO_TICK_DUMMY; i++) {
+ writeByte(outFile, x_intro_dummy[i]);
+ writeByte(outFile, y_intro_dummy[i]);
+ }
+
+ writeUint16BE(outFile, NUM_INTRO_TICK_DUMMY);
+ for (i = 0; i < NUM_INTRO_TICK_DUMMY; i++) {
+ writeByte(outFile, x_intro_dummy[i]);
+ writeByte(outFile, y_intro_dummy[i]);
+ }
+
+ writeUint16BE(outFile, NUM_INTRO_TICK_V3);
+ for (i = 0; i < NUM_INTRO_TICK_V3; i++) {
+ writeByte(outFile, x_intro_v3[i]);
+ writeByte(outFile, y_intro_v3[i]);
+ }
+
+ writeUint16BE(outFile, NUM_INTRO_TICK_V1D);
+ for (i = 0; i < NUM_INTRO_TICK_V1D; i++) {
+ writeByte(outFile, x_intro_v1d[i]);
+ writeByte(outFile, y_intro_v1d[i]);
+ }
+
+ writeUint16BE(outFile, NUM_INTRO_TICK_DUMMY);
+ for (i = 0; i < NUM_INTRO_TICK_DUMMY; i++) {
+ writeByte(outFile, x_intro_dummy[i]);
+ writeByte(outFile, y_intro_dummy[i]);
+ }
+
+ writeUint16BE(outFile, NUM_INTRO_TICK_V3);
+ for (i = 0; i < NUM_INTRO_TICK_V3; i++) {
+ writeByte(outFile, x_intro_v3[i]);
+ writeByte(outFile, y_intro_v3[i]);
}
// Write textMouse
diff --git a/tools/create_hugo/staticintro.h b/tools/create_hugo/staticintro.h
index f9e59952e7..ed281a42fb 100644
--- a/tools/create_hugo/staticintro.h
+++ b/tools/create_hugo/staticintro.h
@@ -33,24 +33,49 @@
#ifndef STATICINTRO_H
#define STATICINTRO_H
-#define NUM_INTRO_TEXT 3
-#define NUM_INTRO_TICK 36
+#define NUM_INTRO_TEXT_DUMMY 1
+#define NUM_INTRO_TEXT_V3 3
+
+// Hugo1 DOS have 11 intro ticks, Hugo3 DOS and Hugo3 have 36
+#define NUM_INTRO_TICK_DUMMY 1
+#define NUM_INTRO_TICK_V1D 11
+#define NUM_INTRO_TICK_V3 36
+
// We use intro_tick as an index into the following coordinate list for the plane path.
-const byte x_intro[NUM_INTRO_TICK] = {
+// This is only used in v3.
+// v1 Dos uses TICKS too, for displaying the texts at a specific pace. x and y arrays
+// are dummy
+const byte x_intro_dummy[] = { 0 };
+
+const byte x_intro_v1d[NUM_INTRO_TICK_V1D] = {
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0
+};
+
+const byte x_intro_v3[NUM_INTRO_TICK_V3] = {
210, 204, 198, 192, 186, 180, 174, 168, 162, 156,
152, 149, 152, 158, 165, 171, 170, 165, 161, 157,
150, 144, 138, 134, 133, 134, 138, 144, 146, 142,
137, 132, 128, 124, 120, 115
};
-const byte y_intro[NUM_INTRO_TICK] = {
+const byte y_intro_dummy[] = { 0 };
+
+const byte y_intro_v1d[NUM_INTRO_TICK_V1D] = {
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0
+};
+
+const byte y_intro_v3[NUM_INTRO_TICK_V3] = {
61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
63, 66, 71, 74, 72, 75, 80, 82, 83, 84,
84, 84, 85, 89, 94, 99, 103, 104, 100, 98,
100, 103, 106, 109, 111, 112
};
-const char *textIntro[NUM_INTRO_TEXT] = {
+// Only Hugo 3 uses texts during intro
+const char *textIntro_dummy[NUM_INTRO_TEXT_DUMMY] = {""};
+const char *textIntro_v3[NUM_INTRO_TEXT_V3] = {
"Hugo and Penelope are returning\nhome from their vacation at the\ncottage of Great Uncle Horace.",
"Suddenly, a freak magnetic storm\ncauses the compass in their light\naircraft to spin wildly! Unable\nto navigate, Hugo loses all sense\nof direction...",
"Finally, hopelessly lost over a\nSouth American Jungle, the plane\nabout to run out of gas, Hugo\nspots a clearing just big enough\nto land it.\n\nWith fingers clenching the controls\nhe shouts: Hold on Penelope, we're\ngoing down...!"