aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_cryo
diff options
context:
space:
mode:
authorFilippos Karapetis2017-02-11 17:16:26 +0200
committerFilippos Karapetis2017-02-11 17:16:26 +0200
commit37c53cdf49209a582cc661b3c300c5b067ced8b8 (patch)
tree1455dc0b76eb098146d1bbfb50f5f30a0a3b9931 /devtools/create_cryo
parentfed7341481ee454a4b656788d91c511414a8ce09 (diff)
downloadscummvm-rg350-37c53cdf49209a582cc661b3c300c5b067ced8b8.tar.gz
scummvm-rg350-37c53cdf49209a582cc661b3c300c5b067ced8b8.tar.bz2
scummvm-rg350-37c53cdf49209a582cc661b3c300c5b067ced8b8.zip
CRYO: Move more static data to cryo.dat (1/2)
Diffstat (limited to 'devtools/create_cryo')
-rw-r--r--devtools/create_cryo/create_cryo_dat.cpp2
-rw-r--r--devtools/create_cryo/eden_static.h62
2 files changed, 64 insertions, 0 deletions
diff --git a/devtools/create_cryo/create_cryo_dat.cpp b/devtools/create_cryo/create_cryo_dat.cpp
index a3fefc28f5..875acad3f1 100644
--- a/devtools/create_cryo/create_cryo_dat.cpp
+++ b/devtools/create_cryo/create_cryo_dat.cpp
@@ -178,6 +178,8 @@ static void emitStatic(FILE *f) {
}
fwrite(kActionCursors, 1, kNumActionCursors, f);
+ fwrite(mapMode, 1, 12, f);
+ fwrite(cubeTextureCoords, 6 * 2 * 3 * 2, 3, f);
}
static int emitData(char *outputFilename) {
diff --git a/devtools/create_cryo/eden_static.h b/devtools/create_cryo/eden_static.h
index fe4ff20e3b..4bff896869 100644
--- a/devtools/create_cryo/eden_static.h
+++ b/devtools/create_cryo/eden_static.h
@@ -477,3 +477,65 @@ byte kActionCursors[299] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0
};
+
+byte mapMode[12] = { 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 2, 0 };
+
+// Cube faces to texture coords mapping
+// each entry is num_polys(6) * num_faces_per_poly(2) * vertex_per_face(3) * uv(2)
+byte cubeTextureCoords[3][6 * 2 * 3 * 2] = {
+ {
+ 32, 32, 0, 32, 0, 0,
+ 32, 32, 0, 0, 32, 0,
+
+ 0, 32, 0, 0, 32, 0,
+ 0, 32, 32, 0, 32, 32,
+
+ 32, 32, 0, 32, 0, 0,
+ 32, 32, 0, 0, 32, 0,
+
+ 32, 0, 32, 32, 0, 32,
+ 32, 0, 0, 32, 0, 0,
+
+ 0, 0, 32, 0, 32, 32,
+ 0, 0, 32, 32, 0, 32,
+
+ 0, 32, 0, 0, 32, 0,
+ 0, 32, 32, 0, 32, 32
+ }, {
+ 32, 32, 0, 32, 0, 0,
+ 32, 32, 0, 0, 32, 0,
+
+ 32, 0, 32, 32, 0, 32,
+ 32, 0, 0, 32, 0, 0,
+
+ 32, 0, 32, 32, 0, 32,
+ 32, 0, 0, 32, 0, 0,
+
+ 0, 32, 0, 0, 32, 0,
+ 0, 32, 32, 0, 32, 32,
+
+ 32, 0, 32, 32, 0, 32,
+ 32, 0, 0, 32, 0, 0,
+
+ 32, 0, 32, 32, 0, 32,
+ 32, 0, 0, 32, 0, 0
+ }, {
+ 30, 30, 2, 30, 2, 2,
+ 30, 30, 2, 2, 30, 2,
+
+ 2, 30, 2, 2, 30, 2,
+ 2, 30, 30, 2, 30, 30,
+
+ 30, 30, 2, 30, 2, 2,
+ 30, 30, 2, 2, 30, 2,
+
+ 30, 2, 30, 30, 2, 30,
+ 30, 2, 2, 30, 2, 2,
+
+ 2, 2, 30, 2, 30, 30,
+ 2, 2, 30, 30, 2, 30,
+
+ 2, 30, 2, 2, 30, 2,
+ 2, 30, 30, 2, 30, 30
+ }
+}; \ No newline at end of file