Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Temple Run: the game's own path, piece for piece

Mason3632de05f9a1fa7
diff --git a/README.md b/README.md
index 3aaa0a55..8bc6e02d 100644
--- a/README.md
+++ b/README.md
@@ -373,7 +373,7 @@ NumPlay is a fan project, made out of love for these games and for the NumWorks
- **[PolyTrack](https://www.kodub.com/apps/polytrack)** by Kodub inspired NumPlay's PolyTrack, which drives the game's 17 tracks with its own physics numbers, models, colours and logo, read from its web build. Its 3D engine grew out of **Boris-TH**'s PolyGT 3D. Not affiliated with Kodub.
- **[Universal Paperclips](https://www.decisionproblem.com/paperclips/)** by Frank Lantz (Everybody House Games), with combat programming by Bennett Foddy, inspired NumPlay's Universal Paperclips, which plays the whole game with its rules, numbers, projects and messages, read from its web build. Not affiliated with them.
- **[Bad Time Simulator](https://github.com/jcw87/c2-sans-fight)** by jcw87, Undertale's Sans fight remade, inspired NumPlay's Bad Time Simulator, which plays its 24 attack scripts with its sprites (Undertale's, by Toby Fox), words and numbers, read from its project, and the **Pixel Operator** font. Not affiliated with jcw87 or Toby Fox.
-- **Temple Run** by Imangi Studios inspired NumPlay's Temple Run, which follows the game's rules and numbers (its path and pacing, speeds, coins, power-ups, upgrades and objectives), read from its Android package (version 1.0.8), with plain models made for it and the **Lilita One** font (SIL Open Font License, [license](LICENSES/OFL-1.1-LilitaOne.txt)). Not affiliated with Imangi Studios.
+- **Temple Run** by Imangi Studios inspired NumPlay's Temple Run, which follows the game's rules and numbers (its path, piece for piece, and its pacing, speeds, coins, power-ups, upgrades and objectives), read from its Android package (version 1.0.8), with plain models made for it and the **Lilita One** font (SIL Open Font License, [license](LICENSES/OFL-1.1-LilitaOne.txt)). Not affiliated with Imangi Studios.
- **[Level Devil](https://store.steampowered.com/app/3242750/)** by Unept: NumPlay's Level Devil is written in C with no code from the game, but its 80 rooms (their tiles, traps and timing) are the game's own, taken from its web build by games/leveldevil/tools/fetch.py, and its runner is drawn from the game's sprites.
- **Pong** by Atari (1972) inspired NumPlay's 2 Players, with air hockey, tanks in a maze in the spirit of Tank Trouble and the light cycles of Tron. All four are written in C for NumPlay and drawn from shapes, with no code or art from them.
@@ -503,6 +503,6 @@ NumPlay is licensed under the [GNU General Public License v3.0](LICENSE). Copyri
<td align="center"><img src="docs/media/gallery/badtime.gif" alt="Bad Time Simulator: Sans slams the blue heart into bones, then Gaster Blasters fire across the box"><br><a href="games/badtime/README.md"><b>Bad Time Simulator</b></a></td>
</tr>
<tr>
- <td align="center"><img src="docs/media/gallery/templerun.gif" alt="Temple Run: from the title into a run, turning at two corners and jumping a root"><br><a href="games/templerun/README.md"><b>Temple Run</b></a></td>
+ <td align="center"><img src="docs/media/gallery/templerun.gif" alt="Temple Run: a run along the temple path, a corner, a gap jumped, coins"><br><a href="games/templerun/README.md"><b>Temple Run</b></a></td>
</tr>
</table>
diff --git a/docs/media/gallery/templerun.gif b/docs/media/gallery/templerun.gif
index f636316d..8f0f1d58 100644
Binary files a/docs/media/gallery/templerun.gif and b/docs/media/gallery/templerun.gif differ
diff --git a/docs/media/thumb_templerun.png b/docs/media/thumb_templerun.png
index 69e9ea6d..ea54b456 100644
Binary files a/docs/media/thumb_templerun.png and b/docs/media/thumb_templerun.png differ
diff --git a/docs/play.md b/docs/play.md
index a39ac7af..893b56d5 100644
--- a/docs/play.md
+++ b/docs/play.md
@@ -693,7 +693,7 @@ Sans attacks and you dodge. Keep your heart away from everything in the box: whi
| **1 / 3** | Head start, mega head start (at the start) |
| **Back** | Pause (with How to play and Quit game) |
-Temple Run comes as its own app, `TempleRun.nwa`. Run from the temple and don't stop: turn at every corner, jump gaps, roots, fallen trees and fire, slide under branches and lean along narrow paths. Trip once and your pursuers catch up; trip again soon and they get you. Coins buy upgrades for the four power-ups in the store, and each objective done raises your score multiplier.
+Temple Run comes as its own app, `TempleRun.nwa`. Run from the temple and don't stop: turn at every corner, jump gaps, roots and fallen trees, slide under branches, jump or slide past the fire, and lean along narrow paths. Jump up to the cliffs. Trip once and your pursuers catch up; trip again soon and they get you. Coins buy upgrades for the four power-ups in the store, and each objective done raises your score multiplier.
<br clear="right">
diff --git a/games/templerun/Makefile b/games/templerun/Makefile
index e5365081..94edaa41 100644
--- a/games/templerun/Makefile
+++ b/games/templerun/Makefile
@@ -4,6 +4,9 @@
# make host build/play: the game on a computer, for tests and screenshots
# make test the game played on a computer (tests/check.py, with the sanitizers)
# make models src/data.c and src/data.h again: the mesh table (tools/models.py: Python)
+# make floor DATA=DIR src/floor.c and src/floor.h again: each path piece's ground and obstacles, from the game's
+# Android package (DIR: its assets/bin/Data; tools/floor.py with tools/apk.py: UnityPy, NumPy;
+# the package is only read). Then make models (the pieces' stand-ins follow their ground).
Q ?= @
# the ARM toolchain on the PATH, or in TOOLCHAIN=<its bin folder>
TOOLCHAIN ?=
@@ -26,7 +29,7 @@ LDFLAGS = -Wl,--relocatable -nostartfiles --specs=nano.specs
LDFLAGS += -Wl,-e,main -Wl,-u,eadk_app_name -Wl,-u,eadk_app_icon -Wl,-u,eadk_api_level
LDFLAGS += -Wl,--gc-sections -flinker-output=nolto-rel
-.PHONY: build check clean host test models
+.PHONY: build check clean host test models floor
build: $(BUILD_DIR)/templerun.nwa
# apps get 133652 bytes of RAM on custom builds of Epsilon 25.2 (148928 or more on official ones)
@@ -63,5 +66,8 @@ test: build/play
models:
python3 tools/models.py src
+floor:
+ python3 -I tools/floor.py $(DATA) src
+
clean:
$(Q) rm -rf $(BUILD_DIR) build
diff --git a/games/templerun/README.md b/games/templerun/README.md
index 9912432b..8151015e 100644
--- a/games/templerun/README.md
+++ b/games/templerun/README.md
@@ -17,14 +17,14 @@
</p>
<p align="center">
- <img src="../../docs/media/gallery/templerun.gif" width="640" alt="From the title into a run: turning at two corners and jumping a root, the pursuers behind">
+ <img src="../../docs/media/gallery/templerun.gif" width="640" alt="A run along the temple path, the pursuers behind: a corner, a gap jumped, coins">
</p>
## Highlights
-* **The path, laid as the game lays it:** straight runs, corners and junctions, gaps, roots to jump, fallen trees, fire, branches to slide under and narrow paths to lean along, in the temple, on the plank bridges and along the cliffs, with steps between them. What comes, and how often, follows the game's own pacing as you go farther.
+* **The game's own path, piece for piece:** its straights, corners and junctions, gaps and long gaps, narrow paths to lean along, roots, trunks and branches, flame towers, in the temple, on the plank bridges and along the cliffs. Each piece is one of the game's, chosen and laid by its rules as you go farther, and where you have ground under you is where the game has it. Going down to the bridges you drop off the end of the temple's path; going up to the cliffs you jump.
* **The game's numbers:** a start at 100 and a top speed of 210, the speed-up easing off as you near it, jumps as high as your speed allows, slides of up to 0.75 seconds, a turn taken within 10 of the corner.
-* **Stumbles:** trip on a root or a step and they catch up. Trip again within 10 seconds, or in the first 3 seconds of a run, and they get you.
+* **Stumbles:** trip on a root, or land short on a ledge, and they catch up. Trip again within 10 seconds, or in the first 3 seconds of a run, and they get you. Jump too low at a higher ledge and you hit it.
* **Coins:** yellow, then red and blue ones farther on. Every 100 coins in a run is 500 points.
* **Power-ups:** the **Coin magnet**, **Invisibility**, the **Coin bonus** and the **Boost**, each with five upgrades in the store, as in the game.
* **Wings, head starts:** wings save one run (OK during a run), a head start runs you to 950 m and a mega head start to 2,350 m (1 or 3 at the start).
@@ -38,11 +38,11 @@
<td align="center" width="50%"><img src="docs/shot.png" width="100%" alt="Running along the temple path, jungle trees on both sides"></td>
</tr>
<tr>
- <td align="center"><img src="docs/magnet.png" width="100%" alt="The coin magnet pulling in a line of coins"></td>
- <td align="center"><img src="docs/fire.png" width="100%" alt="Fire across a plank bridge, about to be jumped"></td>
+ <td align="center"><img src="docs/boost.png" width="100%" alt="A boost along the temple path"></td>
+ <td align="center"><img src="docs/bridge.png" width="100%" alt="Jumping along a plank bridge"></td>
</tr>
<tr>
- <td align="center"><img src="docs/bridge.png" width="100%" alt="Running down the steps onto a plank bridge"></td>
+ <td align="center"><img src="docs/coins.png" width="100%" alt="Red coins along a plank bridge"></td>
<td align="center"><img src="docs/store.png" width="100%" alt="The store: the five upgrades, wings and head starts"></td>
</tr>
</table>
@@ -63,7 +63,7 @@
## Good to know
* **One app at a time:** Temple Run is too big to sit next to NumPlay or the other big games. Installing it from the NumWorks website swaps them out, and installing them again swaps it out. Your saves in each one are kept.
-* **Plain models for now:** the runner, the pursuers and the path are simple block models in the game's colours.
+* **Plain models for now:** the runner, the pursuers and the path's pieces are simple block models in the game's colours, each piece shaped like the ground the game gives it.
* **Left out:** the other characters and wallpapers, the permanent wings, the tutorial run, the online leaderboards, ads and purchases.
* **No music or sound:** the calculator has no speaker.
@@ -71,13 +71,13 @@
Temple Run is a game by Imangi Studios. This port is not affiliated with or endorsed by them.
-* The rules and numbers (the path and its pacing, speeds, jumps, slides, stumbles, turns, coins, power-ups, upgrades and their prices, objectives) are Imangi's, read from the game's Android package (version 1.0.8).
+* The rules and numbers (the path, its pieces and their ground and obstacles, its pacing, speeds, jumps, slides, stumbles, turns, coins, power-ups, upgrades and their prices, objectives) are Imangi's, read from the game's Android package (version 1.0.8).
* The models are plain stand-ins made for this port (`tools/models.py`).
* The lettering is **Lilita One** by Juan Montoreano (SIL Open Font License 1.1, [license](../../LICENSES/OFL-1.1-LilitaOne.txt)).
Made by Mason Chen as part of NumPlay.
-Build: `make` (needs `arm-none-eabi-gcc` and Node.js for nwlink); `make test` plays it on a computer. `make models` makes `src/data.c` again: every model is a mesh in one table there, by number, so the art can be made again without touching the game.
+Build: `make` (needs `arm-none-eabi-gcc` and Node.js for nwlink); `make test` plays it on a computer. `make models` makes `src/data.c` again: every model is a mesh in one table there, by number (the path's pieces named after the game's prefabs), so the art can be made again without touching the game. `make floor DATA=DIR` makes `src/floor.c` again, the ground and obstacles of each piece, from the game's package unzipped (`DIR` is its `assets/bin/Data`).
## License
diff --git a/games/templerun/docs/boost.png b/games/templerun/docs/boost.png
new file mode 100644
index 00000000..1d58223c
Binary files /dev/null and b/games/templerun/docs/boost.png differ
diff --git a/games/templerun/docs/bridge.png b/games/templerun/docs/bridge.png
index eba409f9..5a1d76b8 100644
Binary files a/games/templerun/docs/bridge.png and b/games/templerun/docs/bridge.png differ
diff --git a/games/templerun/docs/coins.png b/games/templerun/docs/coins.png
new file mode 100644
index 00000000..ddbc70b3
Binary files /dev/null and b/games/templerun/docs/coins.png differ
diff --git a/games/templerun/docs/fire.png b/games/templerun/docs/fire.png
deleted file mode 100644
index 73dcb0bd..00000000
Binary files a/games/templerun/docs/fire.png and /dev/null differ
diff --git a/games/templerun/docs/magnet.png b/games/templerun/docs/magnet.png
deleted file mode 100644
index 739d3b7c..00000000
Binary files a/games/templerun/docs/magnet.png and /dev/null differ
diff --git a/games/templerun/docs/shot.png b/games/templerun/docs/shot.png
index 6a87dfe5..bde0eb3a 100644
Binary files a/games/templerun/docs/shot.png and b/games/templerun/docs/shot.png differ
diff --git a/games/templerun/src/data.c b/games/templerun/src/data.c
index 4224692e..08a28fd4 100644
--- a/games/templerun/src/data.c
+++ b/games/templerun/src/data.c
@@ -3,6 +3,534 @@
const Texture *const r_tex[1] = {0};
+static const MVert v_templestraightvert[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17};
+static const MFace f_templestraightvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightvert2[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightvert2[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17};
+static const MFace f_templestraightvert2[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightvert3[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightvert3[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17};
+static const MFace f_templestraightvert3[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightvert4[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightvert4[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17};
+static const MFace f_templestraightvert4[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightvert5[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightvert5[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17};
+static const MFace f_templestraightvert5[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraighttowervert[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraighttowervert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17};
+static const MFace f_templestraighttowervert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraighthorz[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighthorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4};
+static const MFace f_templestraighthorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighthorz2[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighthorz2[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4};
+static const MFace f_templestraighthorz2[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighthorz3[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighthorz3[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4};
+static const MFace f_templestraighthorz3[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighthorz4[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighthorz4[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4};
+static const MFace f_templestraighthorz4[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighthorz5[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighthorz5[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4};
+static const MFace f_templestraighthorz5[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighttowerhorz[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighttowerhorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4};
+static const MFace f_templestraighttowerhorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templeturna[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-120,0,0}, {40,0,0}, {-120,0,-40}, {-120,0,40}, {40,0,40}, {-40,-160,-120}, {-40,-160,-40}, {-120,-160,-40}, {40,-160,40}, {40,-160,-120}, {-120,-160,40}};
+static const uint16_t i_templeturna[] = {0,1,2,3,4,5,1,0,6,7,5,8,9,10,7,6,11,12,4,3,8,4,12,13,2,10,14,15,16,14,10,9};
+static const MFace f_templeturna[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,-127,0,0,0,0,0x76684F}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templeturnb[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {120,0,0}, {120,0,-40}, {-40,0,40}, {120,0,40}, {-40,-160,-120}, {-40,-160,40}, {120,-160,-40}, {40,-160,-40}, {40,-160,-120}, {120,-160,40}};
+static const uint16_t i_templeturnb[] = {0,1,2,3,4,5,1,0,6,7,8,4,9,10,7,6,11,12,9,3,5,8,13,14,2,5,14,15,12,16,10,9};
+static const MFace f_templeturnb[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,-127,0,0,0,0,0x76684F}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templeturnc[] = {{-120,0,0}, {40,0,0}, {40,0,-40}, {-120,0,-40}, {-120,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,40}, {-40,0,120}, {40,0,120}, {-40,-160,40}, {-40,-160,120}, {40,-160,-40}, {-120,-160,-40}, {40,-160,120}, {-120,-160,40}};
+static const uint16_t i_templeturnc[] = {0,1,2,3,4,5,1,0,6,7,5,8,9,10,7,6,11,12,9,8,3,2,13,14,2,10,15,13,16,11,8,4};
+static const MFace f_templeturnc[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,-127,0,0,0,0,0x76684F}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templeturnd[] = {{-40,0,0}, {120,0,0}, {120,0,-40}, {-40,0,-40}, {-40,0,40}, {120,0,40}, {-40,0,80}, {40,0,80}, {40,0,40}, {-40,0,120}, {40,0,120}, {-40,-160,-40}, {-40,-160,120}, {120,-160,-40}, {40,-160,120}, {40,-160,40}, {120,-160,40}};
+static const uint16_t i_templeturnd[] = {0,1,2,3,4,5,1,0,6,7,8,4,9,10,7,6,11,12,9,3,3,2,13,11,8,10,14,15,15,16,5,8};
+static const MFace f_templeturnd[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,-127,0,0,0,0,0x76684F}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templetleft[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-120,0,0}, {40,0,0}, {-120,0,-40}, {-120,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,40}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,-40}, {-40,-160,40}, {-40,-160,120}, {-120,-160,-40}, {40,-160,120}, {40,-160,-120}, {-120,-160,40}};
+static const uint16_t i_templetleft[] = {0,1,2,3,4,5,1,0,6,7,5,8,9,10,7,6,11,12,10,13,14,15,12,11,16,17,4,3,18,19,14,13,8,4,17,20,2,15,21,22,23,18,13,9};
+static const MFace f_templetleft[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,-127,0,0,0,0,0x76684F}, {32,4,0,0,-127,0,0,0x76684F}, {36,4,127,0,0,0,0,0x76684F}, {40,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templetright[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {120,0,0}, {120,0,-40}, {-40,0,40}, {120,0,40}, {-40,0,80}, {40,0,80}, {40,0,40}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {120,-160,-40}, {40,-160,-40}, {40,-160,-120}, {40,-160,120}, {40,-160,40}, {120,-160,40}};
+static const uint16_t i_templetright[] = {0,1,2,3,4,5,1,0,6,7,8,4,9,10,7,6,11,12,13,9,14,15,12,11,16,17,14,3,5,8,18,19,2,5,19,20,13,15,21,22,22,23,10,13};
+static const MFace f_templetright[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,0,0,-127,0,0,0x76684F}, {32,4,127,0,0,0,0,0x76684F}, {36,4,127,0,0,0,0,0x76684F}, {40,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templetup[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {-40,0,80}, {40,0,80}, {40,0,40}, {-40,0,40}, {-40,0,120}, {40,0,120}, {-40,-160,40}, {-40,-160,120}, {120,-160,-40}, {-120,-160,-40}, {40,-160,120}, {40,-160,40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templetup[] = {0,1,2,3,4,5,1,0,6,7,8,9,10,11,7,6,12,13,10,9,3,2,14,15,8,11,16,17,18,12,9,4,17,19,5,8};
+static const MFace f_templetup[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,-127,0,0,0,0,0x76684F}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}, {32,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templetdown[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {-40,-160,-120}, {-40,-160,-40}, {-120,-160,-40}, {120,-160,-40}, {40,-160,-40}, {40,-160,-120}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templetdown[] = {0,1,2,3,4,5,1,0,6,7,8,9,10,11,7,6,12,13,4,3,9,4,13,14,5,8,15,16,2,5,16,17,18,19,11,10};
+static const MFace f_templetdown[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,-127,0,0,0,0,0x76684F}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,0,0,-127,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightholevert[] = {{-40,0,-96}, {40,0,-96}, {40,0,-120}, {-40,0,-120}, {-40,0,120}, {40,0,120}, {40,0,96}, {-40,0,96}, {-40,-160,-96}, {40,-160,-96}, {-40,-160,-120}, {-40,-160,96}, {-40,-160,120}, {40,-160,-120}, {40,-160,120}, {40,-160,96}};
+static const uint16_t i_templestraightholevert[] = {0,1,2,3,4,5,6,7,8,9,1,0,10,8,0,3,11,12,4,7,2,1,9,13,6,5,14,15,7,6,15,11};
+static const MFace f_templestraightholevert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,127,0,0,0x76684F}, {12,4,-127,0,0,0,0,0x76684F}, {16,4,-127,0,0,0,0,0x76684F}, {20,4,127,0,0,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightholelongavert[] = {{-40,0,-96}, {40,0,-96}, {40,0,-120}, {-40,0,-120}, {-40,-160,-96}, {40,-160,-96}, {-40,-160,-120}, {40,-160,-120}};
+static const uint16_t i_templestraightholelongavert[] = {0,1,2,3,4,5,1,0,6,4,0,3,2,1,5,7};
+static const MFace f_templestraightholelongavert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,127,0,0,0x76684F}, {8,4,-127,0,0,0,0,0x76684F}, {12,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightholelongbvert[] = {{-40,0,120}, {40,0,120}, {40,0,96}, {-40,0,96}, {-40,-160,96}, {-40,-160,120}, {40,-160,120}, {40,-160,96}};
+static const uint16_t i_templestraightholelongbvert[] = {0,1,2,3,4,5,0,3,2,1,6,7,3,2,7,4};
+static const MFace f_templestraightholelongbvert[] = {{0,4,0,127,0,0,0,0x9C8B6F}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}, {12,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightholehorz[] = {{96,0,0}, {120,0,0}, {120,0,-40}, {96,0,-40}, {-120,0,0}, {-96,0,0}, {-96,0,-40}, {-120,0,-40}, {96,0,40}, {120,0,40}, {-120,0,40}, {-96,0,40}, {-96,-160,40}, {-96,-160,-40}, {-120,-160,-40}, {120,-160,-40}, {96,-160,-40}, {-120,-160,40}, {96,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightholehorz[] = {0,1,2,3,4,5,6,7,8,9,1,0,10,11,5,4,6,11,12,13,7,6,13,14,3,2,15,16,17,12,11,10,18,19,9,8,16,18,8,3};
+static const MFace f_templestraightholehorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0x9C8B6F}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,127,0,0,0,0,0x76684F}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,0,0,-127,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}, {32,4,0,0,127,0,0,0x76684F}, {36,4,-127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightholelongahorz[] = {{-120,0,0}, {-96,0,0}, {-96,0,-40}, {-120,0,-40}, {-120,0,40}, {-96,0,40}, {-96,-160,40}, {-96,-160,-40}, {-120,-160,-40}, {-120,-160,40}};
+static const uint16_t i_templestraightholelongahorz[] = {0,1,2,3,4,5,1,0,2,5,6,7,3,2,7,8,9,6,5,4};
+static const MFace f_templestraightholelongahorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,127,0,0,0,0,0x76684F}, {12,4,0,0,-127,0,0,0x76684F}, {16,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightholelongbhorz[] = {{96,0,0}, {120,0,0}, {120,0,-40}, {96,0,-40}, {96,0,40}, {120,0,40}, {120,-160,-40}, {96,-160,-40}, {96,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightholelongbhorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4,7,8,4,3};
+static const MFace f_templestraightholelongbhorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}, {16,4,-127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowsmallleftvert[] = {{-40,0,-112}, {40,0,-112}, {40,0,-120}, {-40,0,-120}, {-40,0,-104}, {32,0,-104}, {32,0,-112}, {-40,0,-80}, {8,0,-80}, {8,0,-104}, {-40,0,-40}, {0,0,-40}, {0,0,-80}, {-40,0,0}, {0,0,0}, {-40,0,40}, {0,0,40}, {-40,0,80}, {0,0,80}, {-40,0,104}, {8,0,104}, {8,0,80}, {-40,0,112}, {32,0,112}, {32,0,104}, {-40,0,120}, {40,0,120}, {40,0,112}, {32,-160,-112}, {40,-160,-112}, {8,-160,-104}, {32,-160,-104}, {0,-160,-80}, {8,-160,-80}, {-40,-160,-120}, {-40,-160,120}, {0,-160,80}, {8,-160,104}, {8,-160,80}, {32,-160,112}, {32,-160,104}, {40,-160,-120}, {40,-160,120}, {40,-160,112}};
+static const uint16_t i_templestraightnarrowsmallleftvert[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,12,7,13,14,11,10,15,16,14,13,17,18,16,15,19,20,21,17,22,23,24,19,25,26,27,22,28,29,1,6,30,31,5,9,32,33,8,12,34,35,25,3,12,18,36,32,9,8,33,30,21,20,37,38,6,5,31,28,24,23,39,40,2,1,29,41,27,26,42,43,18,21,38,36,20,24,40,37,23,27,43,39};
+static const MFace f_templestraightnarrowsmallleftvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,0,127,0,0,0,0xA8977A}, {28,4,0,127,0,0,0,0x9C8B6F}, {32,4,0,127,0,0,0,0x9C8B6F}, {36,4,0,127,0,0,0,0x9C8B6F}, {40,4,0,0,127,0,0,0x76684F}, {44,4,0,0,127,0,0,0x76684F}, {48,4,0,0,127,0,0,0x76684F}, {52,4,-127,0,0,0,0,0x76684F}, {56,4,127,0,0,0,0,0x76684F}, {60,4,127,0,0,0,0,0x76684F}, {64,4,127,0,0,0,0,0x76684F}, {68,4,127,0,0,0,0,0x76684F}, {72,4,127,0,0,0,0,0x76684F}, {76,4,127,0,0,0,0,0x76684F}, {80,4,127,0,0,0,0,0x76684F}, {84,4,0,0,-127,0,0,0x76684F}, {88,4,0,0,-127,0,0,0x76684F}, {92,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowsmallrightvert[] = {{-40,0,-112}, {40,0,-112}, {40,0,-120}, {-40,0,-120}, {-32,0,-104}, {40,0,-104}, {-32,0,-112}, {-8,0,-80}, {40,0,-80}, {-8,0,-104}, {0,0,-40}, {40,0,-40}, {0,0,-80}, {0,0,0}, {40,0,0}, {0,0,40}, {40,0,40}, {0,0,80}, {40,0,80}, {-8,0,104}, {40,0,104}, {-8,0,80}, {-32,0,112}, {40,0,112}, {-32,0,104}, {-40,0,120}, {40,0,120}, {-40,0,112}, {-40,-160,-112}, {-32,-160,-112}, {-32,-160,-104}, {-8,-160,-104}, {-8,-160,-80}, {0,-160,-80}, {-40,-160,-120}, {-40,-160,112}, {-40,-160,120}, {-32,-160,104}, {-32,-160,112}, {-8,-160,80}, {-8,-160,104}, {0,-160,80}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightnarrowsmallrightvert[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,8,12,13,14,11,10,15,16,14,13,17,18,16,15,19,20,18,21,22,23,20,24,25,26,23,27,28,29,6,0,30,31,9,4,32,33,12,7,34,28,0,3,35,36,25,27,29,30,4,6,37,38,22,24,31,32,7,9,39,40,19,21,33,41,17,12,2,26,42,43,21,17,41,39,24,19,40,37,27,22,38,35};
+static const MFace f_templestraightnarrowsmallrightvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,0,127,0,0,0,0xA8977A}, {28,4,0,127,0,0,0,0x9C8B6F}, {32,4,0,127,0,0,0,0x9C8B6F}, {36,4,0,127,0,0,0,0x9C8B6F}, {40,4,0,0,127,0,0,0x76684F}, {44,4,0,0,127,0,0,0x76684F}, {48,4,0,0,127,0,0,0x76684F}, {52,4,-127,0,0,0,0,0x76684F}, {56,4,-127,0,0,0,0,0x76684F}, {60,4,-127,0,0,0,0,0x76684F}, {64,4,-127,0,0,0,0,0x76684F}, {68,4,-127,0,0,0,0,0x76684F}, {72,4,-127,0,0,0,0,0x76684F}, {76,4,-127,0,0,0,0,0x76684F}, {80,4,127,0,0,0,0,0x76684F}, {84,4,0,0,-127,0,0,0x76684F}, {88,4,0,0,-127,0,0,0x76684F}, {92,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowsmalldownhorz[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {80,0,8}, {120,0,8}, {80,0,0}, {-120,0,8}, {-80,0,8}, {-80,0,0}, {-120,0,32}, {-104,0,32}, {-104,0,8}, {104,0,32}, {120,0,32}, {104,0,8}, {-120,0,40}, {-112,0,40}, {-112,0,32}, {112,0,40}, {120,0,40}, {112,0,32}, {-112,-160,40}, {-112,-160,32}, {-104,-160,32}, {-104,-160,8}, {-80,-160,8}, {-80,-160,0}, {120,-160,-40}, {-120,-160,-40}, {80,-160,0}, {80,-160,8}, {104,-160,8}, {104,-160,32}, {112,-160,32}, {-120,-160,40}, {112,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightnarrowsmalldownhorz[] = {0,1,2,3,4,5,1,6,7,8,9,0,10,11,12,7,13,14,5,15,16,17,18,10,19,20,14,21,18,17,22,23,12,11,24,25,9,8,26,27,3,2,28,29,27,30,6,9,25,26,8,12,31,32,15,4,23,24,11,18,33,34,21,13,35,22,17,16,36,37,20,19,30,31,4,6,32,33,13,15,34,36,19,21};
+static const MFace f_templestraightnarrowsmalldownhorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0x9C8B6F}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0x9C8B6F}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,0,127,0,0,0,0x9C8B6F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,127,0,0,0,0,0x76684F}, {36,4,127,0,0,0,0,0x76684F}, {40,4,0,0,-127,0,0,0x76684F}, {44,4,0,0,127,0,0,0x76684F}, {48,4,0,0,127,0,0,0x76684F}, {52,4,0,0,127,0,0,0x76684F}, {56,4,0,0,127,0,0,0x76684F}, {60,4,0,0,127,0,0,0x76684F}, {64,4,0,0,127,0,0,0x76684F}, {68,4,0,0,127,0,0,0x76684F}, {72,4,-127,0,0,0,0,0x76684F}, {76,4,-127,0,0,0,0,0x76684F}, {80,4,-127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongleftvert[] = {{-40,0,-80}, {-8,0,-80}, {-8,0,-120}, {-40,0,-120}, {-40,0,-40}, {-8,0,-40}, {-40,0,0}, {-8,0,0}, {-40,0,40}, {-8,0,40}, {-40,0,80}, {-8,0,80}, {-40,0,120}, {-8,0,120}, {-40,-160,-120}, {-40,-160,120}, {-8,-160,120}, {-8,-160,-120}};
+static const uint16_t i_templestraightnarrowlongleftvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17};
+static const MFace f_templestraightnarrowlongleftvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongleftavert[] = {{-40,0,-112}, {40,0,-112}, {40,0,-120}, {-40,0,-120}, {-40,0,-104}, {32,0,-104}, {32,0,-112}, {-40,0,-96}, {8,0,-96}, {8,0,-104}, {-40,0,-80}, {0,0,-80}, {0,0,-96}, {-40,0,-56}, {0,0,-56}, {-40,0,-40}, {-8,0,-40}, {-8,0,-56}, {-40,0,0}, {-8,0,0}, {-40,0,40}, {-8,0,40}, {-40,0,80}, {-8,0,80}, {-40,0,120}, {-8,0,120}, {32,-160,-112}, {40,-160,-112}, {8,-160,-104}, {32,-160,-104}, {0,-160,-96}, {8,-160,-96}, {-8,-160,-56}, {0,-160,-56}, {-40,-160,-120}, {-40,-160,120}, {-8,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightnarrowlongleftavert[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,12,7,13,14,11,10,15,16,17,13,18,19,16,15,20,21,19,18,22,23,21,20,24,25,23,22,26,27,1,6,28,29,5,9,30,31,8,12,32,33,14,17,34,35,24,3,17,25,36,32,12,14,33,30,9,8,31,28,6,5,29,26,2,1,27,37};
+static const MFace f_templestraightnarrowlongleftavert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0x9C8B6F}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,0,127,0,0,0,0xA8977A}, {28,4,0,127,0,0,0,0x9C8B6F}, {32,4,0,127,0,0,0,0xA8977A}, {36,4,0,127,0,0,0,0x9C8B6F}, {40,4,0,0,127,0,0,0x76684F}, {44,4,0,0,127,0,0,0x76684F}, {48,4,0,0,127,0,0,0x76684F}, {52,4,0,0,127,0,0,0x76684F}, {56,4,-127,0,0,0,0,0x76684F}, {60,4,127,0,0,0,0,0x76684F}, {64,4,127,0,0,0,0,0x76684F}, {68,4,127,0,0,0,0,0x76684F}, {72,4,127,0,0,0,0,0x76684F}, {76,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongleftbvert[] = {{-40,0,-80}, {-8,0,-80}, {-8,0,-120}, {-40,0,-120}, {-40,0,-40}, {-8,0,-40}, {-40,0,0}, {-8,0,0}, {-40,0,40}, {-8,0,40}, {-40,0,56}, {-8,0,56}, {-40,0,80}, {0,0,80}, {0,0,56}, {-40,0,96}, {0,0,96}, {-40,0,104}, {8,0,104}, {8,0,96}, {-40,0,112}, {32,0,112}, {32,0,104}, {-40,0,120}, {40,0,120}, {40,0,112}, {-40,-160,-120}, {-40,-160,120}, {-8,-160,56}, {-8,-160,-120}, {0,-160,96}, {0,-160,56}, {8,-160,104}, {8,-160,96}, {32,-160,112}, {32,-160,104}, {40,-160,120}, {40,-160,112}};
+static const uint16_t i_templestraightnarrowlongleftbvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,14,10,15,16,13,12,17,18,19,15,20,21,22,17,23,24,25,20,26,27,23,3,2,11,28,29,14,16,30,31,19,18,32,33,22,21,34,35,25,24,36,37,11,14,31,28,16,19,33,30,18,22,35,32,21,25,37,34};
+static const MFace f_templestraightnarrowlongleftbvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0xA8977A}, {24,4,0,127,0,0,0,0x9C8B6F}, {28,4,0,127,0,0,0,0x9C8B6F}, {32,4,0,127,0,0,0,0x9C8B6F}, {36,4,0,127,0,0,0,0x9C8B6F}, {40,4,-127,0,0,0,0,0x76684F}, {44,4,127,0,0,0,0,0x76684F}, {48,4,127,0,0,0,0,0x76684F}, {52,4,127,0,0,0,0,0x76684F}, {56,4,127,0,0,0,0,0x76684F}, {60,4,127,0,0,0,0,0x76684F}, {64,4,0,0,-127,0,0,0x76684F}, {68,4,0,0,-127,0,0,0x76684F}, {72,4,0,0,-127,0,0,0x76684F}, {76,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongrightvert[] = {{8,0,-80}, {40,0,-80}, {40,0,-120}, {8,0,-120}, {8,0,-40}, {40,0,-40}, {8,0,0}, {40,0,0}, {8,0,40}, {40,0,40}, {8,0,80}, {40,0,80}, {8,0,120}, {40,0,120}, {8,-160,-120}, {8,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightnarrowlongrightvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17};
+static const MFace f_templestraightnarrowlongrightvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongrightavert[] = {{-40,0,-112}, {40,0,-112}, {40,0,-120}, {-40,0,-120}, {-32,0,-104}, {40,0,-104}, {-32,0,-112}, {-8,0,-88}, {40,0,-88}, {-8,0,-104}, {0,0,-80}, {40,0,-80}, {0,0,-88}, {0,0,-48}, {40,0,-48}, {8,0,-40}, {40,0,-40}, {8,0,-48}, {8,0,0}, {40,0,0}, {8,0,40}, {40,0,40}, {8,0,80}, {40,0,80}, {8,0,120}, {40,0,120}, {-40,-160,-112}, {-32,-160,-112}, {-32,-160,-104}, {-8,-160,-104}, {-8,-160,-88}, {0,-160,-88}, {0,-160,-48}, {8,-160,-48}, {-40,-160,-120}, {8,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightnarrowlongrightavert[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,8,12,13,14,11,10,15,16,14,17,18,19,16,15,20,21,19,18,22,23,21,20,24,25,23,22,26,27,6,0,28,29,9,4,30,31,12,7,32,33,17,13,34,26,0,3,27,28,4,6,29,30,7,9,31,32,13,12,33,35,24,17,2,25,36,37};
+static const MFace f_templestraightnarrowlongrightavert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0x9C8B6F}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,0,127,0,0,0,0xA8977A}, {28,4,0,127,0,0,0,0x9C8B6F}, {32,4,0,127,0,0,0,0xA8977A}, {36,4,0,127,0,0,0,0x9C8B6F}, {40,4,0,0,127,0,0,0x76684F}, {44,4,0,0,127,0,0,0x76684F}, {48,4,0,0,127,0,0,0x76684F}, {52,4,0,0,127,0,0,0x76684F}, {56,4,-127,0,0,0,0,0x76684F}, {60,4,-127,0,0,0,0,0x76684F}, {64,4,-127,0,0,0,0,0x76684F}, {68,4,-127,0,0,0,0,0x76684F}, {72,4,-127,0,0,0,0,0x76684F}, {76,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongrightbvert[] = {{8,0,-80}, {40,0,-80}, {40,0,-120}, {8,0,-120}, {8,0,-40}, {40,0,-40}, {8,0,0}, {40,0,0}, {8,0,40}, {40,0,40}, {8,0,48}, {40,0,48}, {0,0,80}, {40,0,80}, {0,0,48}, {0,0,88}, {40,0,88}, {-8,0,104}, {40,0,104}, {-8,0,88}, {-32,0,112}, {40,0,112}, {-32,0,104}, {-40,0,120}, {40,0,120}, {-40,0,112}, {-40,-160,112}, {-40,-160,120}, {-32,-160,104}, {-32,-160,112}, {-8,-160,88}, {-8,-160,104}, {0,-160,48}, {0,-160,88}, {8,-160,-120}, {8,-160,48}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightnarrowlongrightbvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,14,15,16,13,12,17,18,16,19,20,21,18,22,23,24,21,25,26,27,23,25,28,29,20,22,30,31,17,19,32,33,15,14,34,35,10,3,2,24,36,37,14,10,35,32,19,15,33,30,22,17,31,28,25,20,29,26};
+static const MFace f_templestraightnarrowlongrightbvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0xA8977A}, {24,4,0,127,0,0,0,0x9C8B6F}, {28,4,0,127,0,0,0,0x9C8B6F}, {32,4,0,127,0,0,0,0x9C8B6F}, {36,4,0,127,0,0,0,0x9C8B6F}, {40,4,-127,0,0,0,0,0x76684F}, {44,4,-127,0,0,0,0,0x76684F}, {48,4,-127,0,0,0,0,0x76684F}, {52,4,-127,0,0,0,0,0x76684F}, {56,4,-127,0,0,0,0,0x76684F}, {60,4,127,0,0,0,0,0x76684F}, {64,4,0,0,-127,0,0,0x76684F}, {68,4,0,0,-127,0,0,0x76684F}, {72,4,0,0,-127,0,0,0x76684F}, {76,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlonguphorz[] = {{-120,0,40}, {120,0,40}, {120,0,8}, {-120,0,8}, {120,-160,8}, {-120,-160,8}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightnarrowlonguphorz[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraightnarrowlonguphorz[] = {{0,4,0,127,0,0,0,0x9C8B6F}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongupahorz[] = {{-120,0,-32}, {-112,0,-32}, {-112,0,-40}, {-120,0,-40}, {-120,0,-8}, {-104,0,-8}, {-104,0,-32}, {-120,0,0}, {-96,0,0}, {-96,0,-8}, {-120,0,8}, {-56,0,8}, {-56,0,0}, {-120,0,40}, {120,0,40}, {120,0,8}, {-112,-160,-32}, {-112,-160,-40}, {-104,-160,-8}, {-104,-160,-32}, {-96,-160,0}, {-96,-160,-8}, {-56,-160,8}, {-56,-160,0}, {-120,-160,-40}, {120,-160,8}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightnarrowlongupahorz[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,12,7,13,14,15,10,2,1,16,17,6,5,18,19,9,8,20,21,12,11,22,23,3,2,17,24,1,6,19,16,5,9,21,18,8,12,23,20,11,15,25,22,26,27,14,13};
+static const MFace f_templestraightnarrowlongupahorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0x9C8B6F}, {20,4,127,0,0,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,127,0,0,0,0,0x76684F}, {36,4,0,0,-127,0,0,0x76684F}, {40,4,0,0,-127,0,0,0x76684F}, {44,4,0,0,-127,0,0,0x76684F}, {48,4,0,0,-127,0,0,0x76684F}, {52,4,0,0,-127,0,0,0x76684F}, {56,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongupbhorz[] = {{112,0,-32}, {120,0,-32}, {120,0,-40}, {112,0,-40}, {104,0,-8}, {120,0,-8}, {104,0,-32}, {88,0,0}, {120,0,0}, {88,0,-8}, {48,0,8}, {120,0,8}, {48,0,0}, {-120,0,40}, {120,0,40}, {-120,0,8}, {120,-160,-40}, {112,-160,-40}, {112,-160,-32}, {104,-160,-32}, {104,-160,-8}, {88,-160,-8}, {88,-160,0}, {48,-160,0}, {48,-160,8}, {-120,-160,8}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightnarrowlongupbhorz[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,8,12,13,14,11,15,3,2,16,17,6,0,18,19,9,4,20,21,12,7,22,23,15,10,24,25,26,27,14,13,23,24,10,12,21,22,7,9,19,20,4,6,17,18,0,3};
+static const MFace f_templestraightnarrowlongupbhorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0x9C8B6F}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,0,0,-127,0,0,0x76684F}, {28,4,0,0,-127,0,0,0x76684F}, {32,4,0,0,-127,0,0,0x76684F}, {36,4,0,0,-127,0,0,0x76684F}, {40,4,0,0,127,0,0,0x76684F}, {44,4,-127,0,0,0,0,0x76684F}, {48,4,-127,0,0,0,0,0x76684F}, {52,4,-127,0,0,0,0,0x76684F}, {56,4,-127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongdownhorz[] = {{-120,0,-8}, {120,0,-8}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,-8}, {120,-160,-8}};
+static const uint16_t i_templestraightnarrowlongdownhorz[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraightnarrowlongdownhorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongdownahorz[] = {{-120,0,-8}, {120,0,-8}, {120,0,-40}, {-120,0,-40}, {-120,0,0}, {-56,0,0}, {-56,0,-8}, {-120,0,8}, {-96,0,8}, {-96,0,0}, {-120,0,32}, {-104,0,32}, {-104,0,8}, {-120,0,40}, {-112,0,40}, {-112,0,32}, {-112,-160,40}, {-112,-160,32}, {-104,-160,32}, {-104,-160,8}, {-96,-160,8}, {-96,-160,0}, {-56,-160,0}, {-56,-160,-8}, {120,-160,-40}, {-120,-160,-40}, {120,-160,-8}, {-120,-160,40}};
+static const uint16_t i_templestraightnarrowlongdownahorz[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,12,7,13,14,15,10,15,14,16,17,12,11,18,19,9,8,20,21,6,5,22,23,3,2,24,25,23,26,1,6,21,22,5,9,19,20,8,12,17,18,11,15,27,16,14,13};
+static const MFace f_templestraightnarrowlongdownahorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0x9C8B6F}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0x9C8B6F}, {20,4,127,0,0,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,127,0,0,0,0,0x76684F}, {36,4,0,0,-127,0,0,0x76684F}, {40,4,0,0,127,0,0,0x76684F}, {44,4,0,0,127,0,0,0x76684F}, {48,4,0,0,127,0,0,0x76684F}, {52,4,0,0,127,0,0,0x76684F}, {56,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongdownbhorz[] = {{-120,0,-8}, {120,0,-8}, {120,0,-40}, {-120,0,-40}, {48,0,0}, {120,0,0}, {48,0,-8}, {88,0,8}, {120,0,8}, {88,0,0}, {104,0,32}, {120,0,32}, {104,0,8}, {112,0,40}, {120,0,40}, {112,0,32}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,-8}, {48,-160,-8}, {48,-160,0}, {88,-160,0}, {88,-160,8}, {104,-160,8}, {104,-160,32}, {112,-160,32}, {112,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightnarrowlongdownbhorz[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,8,12,13,14,11,15,3,2,16,17,18,19,6,0,20,21,9,4,22,23,12,7,24,25,15,10,26,27,14,13,19,20,4,6,21,22,7,9,23,24,10,12,25,26,13,15};
+static const MFace f_templestraightnarrowlongdownbhorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0x9C8B6F}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0x9C8B6F}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,0,0,127,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}, {32,4,0,0,127,0,0,0x76684F}, {36,4,0,0,127,0,0,0x76684F}, {40,4,0,0,127,0,0,0x76684F}, {44,4,-127,0,0,0,0,0x76684F}, {48,4,-127,0,0,0,0,0x76684F}, {52,4,-127,0,0,0,0,0x76684F}, {56,4,-127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightflametowerhighvert[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}, {-40,0,-10}, {-40,0,10}, {-40,36,10}, {-40,36,-10}, {-34,0,-10}, {-34,36,-10}, {-34,36,10}, {-34,0,10}, {34,0,-10}, {34,0,10}, {34,36,10}, {34,36,-10}, {40,0,-10}, {40,36,-10}, {40,36,10}, {40,0,10}};
+static const uint16_t i_templestraightflametowerhighvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17,18,19,20,21,22,23,24,25,18,21,23,22,19,25,24,20,18,22,25,19,21,20,24,23,26,27,28,29,30,31,32,33,26,29,31,30,27,33,32,28,26,30,33,27,29,28,32,31};
+static const MFace f_templestraightflametowerhighvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,-127,0,0,0,0,0x4E463C}, {36,4,127,0,0,0,0,0x4E463C}, {40,4,0,0,-127,0,0,0x4E463C}, {44,4,0,0,127,0,0,0x4E463C}, {48,4,0,-127,0,0,0,0x4E463C}, {52,4,0,127,0,0,0,0x4E463C}, {56,4,-127,0,0,0,0,0x4E463C}, {60,4,127,0,0,0,0,0x4E463C}, {64,4,0,0,-127,0,0,0x4E463C}, {68,4,0,0,127,0,0,0x4E463C}, {72,4,0,-127,0,0,0,0x4E463C}, {76,4,0,127,0,0,0,0x4E463C}};
+static const MVert v_templestraightflametowerhighhorz[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}, {-10,0,-40}, {-10,0,40}, {-10,36,40}, {-10,36,-40}, {-4,0,-40}, {-4,36,-40}, {-4,36,40}, {-4,0,40}, {4,0,-40}, {4,0,40}, {4,36,40}, {4,36,-40}, {10,0,-40}, {10,36,-40}, {10,36,40}, {10,0,40}};
+static const uint16_t i_templestraightflametowerhighhorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4,10,11,12,13,14,15,16,17,10,13,15,14,11,17,16,12,10,14,17,11,13,12,16,15,18,19,20,21,22,23,24,25,18,21,23,22,19,25,24,20,18,22,25,19,21,20,24,23};
+static const MFace f_templestraightflametowerhighhorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}, {16,4,-127,0,0,0,0,0x4E463C}, {20,4,127,0,0,0,0,0x4E463C}, {24,4,0,0,-127,0,0,0x4E463C}, {28,4,0,0,127,0,0,0x4E463C}, {32,4,0,-127,0,0,0,0x4E463C}, {36,4,0,127,0,0,0,0x4E463C}, {40,4,-127,0,0,0,0,0x4E463C}, {44,4,127,0,0,0,0,0x4E463C}, {48,4,0,0,-127,0,0,0x4E463C}, {52,4,0,0,127,0,0,0x4E463C}, {56,4,0,-127,0,0,0,0x4E463C}, {60,4,0,127,0,0,0,0x4E463C}};
+static const MVert v_templetoplankcapavert[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,-160,-120}, {-40,-160,0}, {40,-160,0}, {40,-160,-120}};
+static const uint16_t i_templetoplankcapavert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,6,3,9,10,7,6,2,7,10,11};
+static const MFace f_templetoplankcapavert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,-127,0,0,0,0,0x76684F}, {16,4,0,0,127,0,0,0x76684F}, {20,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templetoplankcapahorz[] = {{-120,0,0}, {0,0,0}, {0,0,-40}, {-120,0,-40}, {-120,0,40}, {0,0,40}, {0,-160,-40}, {-120,-160,-40}, {0,-160,40}, {-120,-160,40}};
+static const uint16_t i_templetoplankcapahorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,2,5,8,6,9,8,5,4};
+static const MFace f_templetoplankcapahorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,127,0,0,0,0,0x76684F}, {16,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templetoplankcapbvert[] = {{-40,0,40}, {40,0,40}, {40,0,0}, {-40,0,0}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,0}, {-40,-160,120}, {40,-160,0}, {40,-160,120}};
+static const uint16_t i_templetoplankcapbvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,6,3,3,2,10,8,2,7,11,10};
+static const MFace f_templetoplankcapbvert[] = {{0,4,0,127,0,0,0,0x9C8B6F}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0x9C8B6F}, {12,4,-127,0,0,0,0,0x76684F}, {16,4,0,0,-127,0,0,0x76684F}, {20,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templetoplankcapbhorz[] = {{0,0,0}, {120,0,0}, {120,0,-40}, {0,0,-40}, {0,0,40}, {120,0,40}, {120,-160,-40}, {0,-160,-40}, {0,-160,40}, {120,-160,40}};
+static const uint16_t i_templetoplankcapbhorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,7,8,4,3,8,9,5,4};
+static const MFace f_templetoplankcapbhorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,-127,0,0,0,0,0x76684F}, {16,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighttreetripleftvert[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}, {-40,0,-4}, {-40,0,4}, {-40,6,4}, {-40,6,-4}, {20,0,-4}, {20,6,-4}, {20,6,4}, {20,0,4}};
+static const uint16_t i_templestraighttreetripleftvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23};
+static const MFace f_templestraighttreetripleftvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,-127,0,0,0,0,0x5B3F24}, {36,4,127,0,0,0,0,0x5B3F24}, {40,4,0,0,127,0,0,0x6E4E2E}, {44,4,0,-127,0,0,0,0x5B3F24}, {48,4,0,127,0,0,0,0x5B3F24}};
+static const MVert v_templestraighttreetriprightvert[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}, {-20,0,-4}, {-20,0,4}, {-20,6,4}, {-20,6,-4}, {40,0,-4}, {40,6,-4}, {40,6,4}, {40,0,4}};
+static const uint16_t i_templestraighttreetriprightvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23};
+static const MFace f_templestraighttreetriprightvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,-127,0,0,0,0,0x5B3F24}, {36,4,127,0,0,0,0,0x5B3F24}, {40,4,0,0,127,0,0,0x6E4E2E}, {44,4,0,-127,0,0,0,0x5B3F24}, {48,4,0,127,0,0,0,0x5B3F24}};
+static const MVert v_templestraighttreetripuphorz[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}, {-4,0,-20}, {-4,0,40}, {-4,6,40}, {-4,6,-20}, {4,0,-20}, {4,6,-20}, {4,6,40}, {4,0,40}};
+static const uint16_t i_templestraighttreetripuphorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4,10,11,12,13,14,15,16,17,11,17,16,12,10,14,17,11,13,12,16,15};
+static const MFace f_templestraighttreetripuphorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}, {16,4,-127,0,0,0,0,0x5B3F24}, {20,4,127,0,0,0,0,0x5B3F24}, {24,4,0,0,127,0,0,0x6E4E2E}, {28,4,0,-127,0,0,0,0x5B3F24}, {32,4,0,127,0,0,0,0x5B3F24}};
+static const MVert v_templestraighttreetripdownhorz[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}, {-4,0,-40}, {-4,0,20}, {-4,6,20}, {-4,6,-40}, {4,0,-40}, {4,6,-40}, {4,6,20}, {4,0,20}};
+static const uint16_t i_templestraighttreetripdownhorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4,10,11,12,13,14,15,16,17,11,17,16,12,10,14,17,11,13,12,16,15};
+static const MFace f_templestraighttreetripdownhorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}, {16,4,-127,0,0,0,0,0x5B3F24}, {20,4,127,0,0,0,0,0x5B3F24}, {24,4,0,0,127,0,0,0x6E4E2E}, {28,4,0,-127,0,0,0,0x5B3F24}, {32,4,0,127,0,0,0,0x5B3F24}};
+static const MVert v_templestraighttreejumpleftvert[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}, {-40,0,12}, {-40,0,28}, {-40,24,28}, {-40,24,12}, {40,0,12}, {40,24,12}, {40,24,28}, {40,0,28}};
+static const uint16_t i_templestraighttreejumpleftvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23};
+static const MFace f_templestraighttreejumpleftvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,-127,0,0,0,0,0x6A4A2D}, {36,4,127,0,0,0,0,0x6A4A2D}, {40,4,0,0,127,0,0,0x7B5A38}, {44,4,0,-127,0,0,0,0x6A4A2D}, {48,4,0,127,0,0,0,0x6A4A2D}};
+static const MVert v_templestraighttreejumprightvert[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}, {-40,0,12}, {-40,0,28}, {-40,24,28}, {-40,24,12}, {40,0,12}, {40,24,12}, {40,24,28}, {40,0,28}};
+static const uint16_t i_templestraighttreejumprightvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23};
+static const MFace f_templestraighttreejumprightvert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,-127,0,0,0,0,0x6A4A2D}, {36,4,127,0,0,0,0,0x6A4A2D}, {40,4,0,0,127,0,0,0x7B5A38}, {44,4,0,-127,0,0,0,0x6A4A2D}, {48,4,0,127,0,0,0,0x6A4A2D}};
+static const MVert v_templestraighttreejumpuphorz[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}, {-28,0,-40}, {-28,0,40}, {-28,24,40}, {-28,24,-40}, {-12,0,-40}, {-12,24,-40}, {-12,24,40}, {-12,0,40}};
+static const uint16_t i_templestraighttreejumpuphorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4,10,11,12,13,14,15,16,17,11,17,16,12,10,14,17,11,13,12,16,15};
+static const MFace f_templestraighttreejumpuphorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}, {16,4,-127,0,0,0,0,0x6A4A2D}, {20,4,127,0,0,0,0,0x6A4A2D}, {24,4,0,0,127,0,0,0x7B5A38}, {28,4,0,-127,0,0,0,0x6A4A2D}, {32,4,0,127,0,0,0,0x6A4A2D}};
+static const MVert v_templestraighttreejumpdownhorz[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}, {-28,0,-40}, {-28,0,40}, {-28,24,40}, {-28,24,-40}, {-12,0,-40}, {-12,24,-40}, {-12,24,40}, {-12,0,40}};
+static const uint16_t i_templestraighttreejumpdownhorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4,10,11,12,13,14,15,16,17,11,17,16,12,10,14,17,11,13,12,16,15};
+static const MFace f_templestraighttreejumpdownhorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}, {16,4,-127,0,0,0,0,0x6A4A2D}, {20,4,127,0,0,0,0,0x6A4A2D}, {24,4,0,0,127,0,0,0x7B5A38}, {28,4,0,-127,0,0,0,0x6A4A2D}, {32,4,0,127,0,0,0,0x6A4A2D}};
+static const MVert v_templestraighttreeslidevert[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}, {-40,21,-12}, {-40,21,12}, {-40,30,12}, {-40,30,-12}, {40,21,-12}, {40,30,-12}, {40,30,12}, {40,21,12}, {-40,39,12}, {-40,39,-12}, {40,39,-12}, {40,39,12}};
+static const uint16_t i_templestraighttreeslidevert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17,18,19,20,21,22,23,24,25,18,21,23,22,19,25,24,20,18,22,25,19,21,20,24,23,21,20,26,27,23,28,29,24,20,24,29,26,21,23,24,20,27,26,29,28};
+static const MFace f_templestraighttreeslidevert[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,-127,0,0,0,0,0x6A4A2D}, {36,4,127,0,0,0,0,0x6A4A2D}, {40,4,0,0,-127,0,0,0x6A4A2D}, {44,4,0,0,127,0,0,0x7B5A38}, {48,4,0,-127,0,0,0,0x6A4A2D}, {52,4,0,127,0,0,0,0x6A4A2D}, {56,4,-127,0,0,0,0,0x3A6B2C}, {60,4,127,0,0,0,0,0x3A6B2C}, {64,4,0,0,127,0,0,0x2F5A26}, {68,4,0,-127,0,0,0,0x3A6B2C}, {72,4,0,127,0,0,0,0x3A6B2C}};
+static const MVert v_templestraighttreeslidehorz[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {-120,0,40}, {120,0,40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}, {-12,21,-40}, {-12,21,40}, {-12,30,40}, {-12,30,-40}, {12,21,-40}, {12,30,-40}, {12,30,40}, {12,21,40}, {-12,39,40}, {-12,39,-40}, {12,39,-40}, {12,39,40}};
+static const uint16_t i_templestraighttreeslidehorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4,10,11,12,13,14,15,16,17,10,13,15,14,11,17,16,12,10,14,17,11,13,12,16,15,13,12,18,19,15,20,21,16,12,16,21,18,13,15,16,12,19,18,21,20};
+static const MFace f_templestraighttreeslidehorz[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}, {16,4,-127,0,0,0,0,0x6A4A2D}, {20,4,127,0,0,0,0,0x6A4A2D}, {24,4,0,0,-127,0,0,0x6A4A2D}, {28,4,0,0,127,0,0,0x7B5A38}, {32,4,0,-127,0,0,0,0x6A4A2D}, {36,4,0,127,0,0,0,0x6A4A2D}, {40,4,-127,0,0,0,0,0x3A6B2C}, {44,4,127,0,0,0,0,0x3A6B2C}, {48,4,0,0,127,0,0,0x2F5A26}, {52,4,0,-127,0,0,0,0x3A6B2C}, {56,4,0,127,0,0,0,0x3A6B2C}};
+static const MVert v_temple[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}, {-136,-160,-200}, {-136,-160,-120}, {-136,184,-120}, {-136,184,-200}, {136,-160,-200}, {136,184,-200}, {136,184,-120}, {136,-160,-120}, {-36,0,-120}, {36,0,-120}, {36,80,-120}, {-36,80,-120}, {-104,184,-184}, {-104,184,-136}, {-104,232,-136}, {-104,232,-184}, {104,184,-184}, {104,232,-184}, {104,232,-136}, {104,184,-136}};
+static const uint16_t i_temple[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23,26,27,28,29,30,31,32,33,34,35,36,37,31,37,36,32,30,34,37,31,33,32,36,35};
+static const MFace f_temple[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,-127,0,0,0,0,0x8A7A5E}, {36,4,127,0,0,0,0,0x8A7A5E}, {40,4,0,0,127,0,0,0x6F7F4A}, {44,4,0,-127,0,0,0,0x8A7A5E}, {48,4,0,127,0,0,0,0x8A7A5E}, {52,4,0,0,127,0,0,0x221C16}, {56,4,-127,0,0,0,0,0x7C6C52}, {60,4,127,0,0,0,0,0x7C6C52}, {64,4,0,0,127,0,0,0x7C6C52}, {68,4,0,-127,0,0,0,0x7C6C52}, {72,4,0,127,0,0,0,0x7C6C52}};
+static const MVert v_plankstraightvert[] = {{-40,-60,-80}, {40,-60,-80}, {40,-60,-120}, {-40,-60,-120}, {-40,-60,-40}, {40,-60,-40}, {-40,-60,0}, {40,-60,0}, {-40,-60,40}, {40,-60,40}, {-40,-60,80}, {40,-60,80}, {-40,-60,120}, {40,-60,120}, {-40,-220,-120}, {-40,-220,120}, {40,-220,120}, {40,-220,-120}};
+static const uint16_t i_plankstraightvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17};
+static const MFace f_plankstraightvert[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,0,127,0,0,0,0x8D5E35}, {20,4,0,127,0,0,0,0x7B5030}, {24,4,-127,0,0,0,0,0x5A3B20}, {28,4,127,0,0,0,0,0x5A3B20}};
+static const MVert v_plankstraighthorz[] = {{-120,-60,0}, {120,-60,0}, {120,-60,-40}, {-120,-60,-40}, {-120,-60,40}, {120,-60,40}, {120,-220,-40}, {-120,-220,-40}, {-120,-220,40}, {120,-220,40}};
+static const uint16_t i_plankstraighthorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4};
+static const MFace f_plankstraighthorz[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,0,-127,0,0,0x5A3B20}, {12,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_plankturna[] = {{-40,-60,-80}, {40,-60,-80}, {40,-60,-120}, {-40,-60,-120}, {-40,-60,-40}, {40,-60,-40}, {-120,-60,0}, {40,-60,0}, {-120,-60,-40}, {-120,-60,40}, {40,-60,40}, {-40,-220,-120}, {-40,-220,-40}, {-120,-220,-40}, {40,-220,40}, {40,-220,-120}, {-120,-220,40}};
+static const uint16_t i_plankturna[] = {0,1,2,3,4,5,1,0,6,7,5,8,9,10,7,6,11,12,4,3,8,4,12,13,2,10,14,15,16,14,10,9};
+static const MFace f_plankturna[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,-127,0,0,0,0,0x5A3B20}, {20,4,0,0,-127,0,0,0x5A3B20}, {24,4,127,0,0,0,0,0x5A3B20}, {28,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_plankturnb[] = {{-40,-60,-80}, {40,-60,-80}, {40,-60,-120}, {-40,-60,-120}, {-40,-60,-40}, {40,-60,-40}, {-40,-60,0}, {120,-60,0}, {120,-60,-40}, {-40,-60,40}, {120,-60,40}, {-40,-220,-120}, {-40,-220,40}, {120,-220,-40}, {40,-220,-40}, {40,-220,-120}, {120,-220,40}};
+static const uint16_t i_plankturnb[] = {0,1,2,3,4,5,1,0,6,7,8,4,9,10,7,6,11,12,9,3,5,8,13,14,2,5,14,15,12,16,10,9};
+static const MFace f_plankturnb[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,-127,0,0,0,0,0x5A3B20}, {20,4,0,0,-127,0,0,0x5A3B20}, {24,4,127,0,0,0,0,0x5A3B20}, {28,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_plankturnc[] = {{-120,-60,0}, {40,-60,0}, {40,-60,-40}, {-120,-60,-40}, {-120,-60,40}, {40,-60,40}, {-40,-60,80}, {40,-60,80}, {-40,-60,40}, {-40,-60,120}, {40,-60,120}, {-40,-220,40}, {-40,-220,120}, {40,-220,-40}, {-120,-220,-40}, {40,-220,120}, {-120,-220,40}};
+static const uint16_t i_plankturnc[] = {0,1,2,3,4,5,1,0,6,7,5,8,9,10,7,6,11,12,9,8,3,2,13,14,2,10,15,13,16,11,8,4};
+static const MFace f_plankturnc[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,-127,0,0,0,0,0x5A3B20}, {20,4,0,0,-127,0,0,0x5A3B20}, {24,4,127,0,0,0,0,0x5A3B20}, {28,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_plankturnd[] = {{-40,-60,0}, {120,-60,0}, {120,-60,-40}, {-40,-60,-40}, {-40,-60,40}, {120,-60,40}, {-40,-60,80}, {40,-60,80}, {40,-60,40}, {-40,-60,120}, {40,-60,120}, {-40,-220,-40}, {-40,-220,120}, {120,-220,-40}, {40,-220,120}, {40,-220,40}, {120,-220,40}};
+static const uint16_t i_plankturnd[] = {0,1,2,3,4,5,1,0,6,7,8,4,9,10,7,6,11,12,9,3,3,2,13,11,8,10,14,15,15,16,5,8};
+static const MFace f_plankturnd[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,-127,0,0,0,0,0x5A3B20}, {20,4,0,0,-127,0,0,0x5A3B20}, {24,4,127,0,0,0,0,0x5A3B20}, {28,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_planktleft[] = {{-40,-60,-80}, {40,-60,-80}, {40,-60,-120}, {-40,-60,-120}, {-40,-60,-40}, {40,-60,-40}, {-120,-60,0}, {40,-60,0}, {-120,-60,-40}, {-120,-60,40}, {40,-60,40}, {-40,-60,80}, {40,-60,80}, {-40,-60,40}, {-40,-60,120}, {40,-60,120}, {-40,-220,-120}, {-40,-220,-40}, {-40,-220,40}, {-40,-220,120}, {-120,-220,-40}, {40,-220,120}, {40,-220,-120}, {-120,-220,40}};
+static const uint16_t i_planktleft[] = {0,1,2,3,4,5,1,0,6,7,5,8,9,10,7,6,11,12,10,13,14,15,12,11,16,17,4,3,18,19,14,13,8,4,17,20,2,15,21,22,23,18,13,9};
+static const MFace f_planktleft[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,0,127,0,0,0,0x8D5E35}, {20,4,0,127,0,0,0,0x7B5030}, {24,4,-127,0,0,0,0,0x5A3B20}, {28,4,-127,0,0,0,0,0x5A3B20}, {32,4,0,0,-127,0,0,0x5A3B20}, {36,4,127,0,0,0,0,0x5A3B20}, {40,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_planktright[] = {{-40,-60,-80}, {40,-60,-80}, {40,-60,-120}, {-40,-60,-120}, {-40,-60,-40}, {40,-60,-40}, {-40,-60,0}, {120,-60,0}, {120,-60,-40}, {-40,-60,40}, {120,-60,40}, {-40,-60,80}, {40,-60,80}, {40,-60,40}, {-40,-60,120}, {40,-60,120}, {-40,-220,-120}, {-40,-220,120}, {120,-220,-40}, {40,-220,-40}, {40,-220,-120}, {40,-220,120}, {40,-220,40}, {120,-220,40}};
+static const uint16_t i_planktright[] = {0,1,2,3,4,5,1,0,6,7,8,4,9,10,7,6,11,12,13,9,14,15,12,11,16,17,14,3,5,8,18,19,2,5,19,20,13,15,21,22,22,23,10,13};
+static const MFace f_planktright[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,0,127,0,0,0,0x8D5E35}, {20,4,0,127,0,0,0,0x7B5030}, {24,4,-127,0,0,0,0,0x5A3B20}, {28,4,0,0,-127,0,0,0x5A3B20}, {32,4,127,0,0,0,0,0x5A3B20}, {36,4,127,0,0,0,0,0x5A3B20}, {40,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_planktup[] = {{-120,-60,0}, {120,-60,0}, {120,-60,-40}, {-120,-60,-40}, {-120,-60,40}, {120,-60,40}, {-40,-60,80}, {40,-60,80}, {40,-60,40}, {-40,-60,40}, {-40,-60,120}, {40,-60,120}, {-40,-220,40}, {-40,-220,120}, {120,-220,-40}, {-120,-220,-40}, {40,-220,120}, {40,-220,40}, {-120,-220,40}, {120,-220,40}};
+static const uint16_t i_planktup[] = {0,1,2,3,4,5,1,0,6,7,8,9,10,11,7,6,12,13,10,9,3,2,14,15,8,11,16,17,18,12,9,4,17,19,5,8};
+static const MFace f_planktup[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,-127,0,0,0,0,0x5A3B20}, {20,4,0,0,-127,0,0,0x5A3B20}, {24,4,127,0,0,0,0,0x5A3B20}, {28,4,0,0,127,0,0,0x5A3B20}, {32,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_planktdown[] = {{-40,-60,-80}, {40,-60,-80}, {40,-60,-120}, {-40,-60,-120}, {-40,-60,-40}, {40,-60,-40}, {-120,-60,0}, {120,-60,0}, {120,-60,-40}, {-120,-60,-40}, {-120,-60,40}, {120,-60,40}, {-40,-220,-120}, {-40,-220,-40}, {-120,-220,-40}, {120,-220,-40}, {40,-220,-40}, {40,-220,-120}, {-120,-220,40}, {120,-220,40}};
+static const uint16_t i_planktdown[] = {0,1,2,3,4,5,1,0,6,7,8,9,10,11,7,6,12,13,4,3,9,4,13,14,5,8,15,16,2,5,16,17,18,19,11,10};
+static const MFace f_planktdown[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,-127,0,0,0,0,0x5A3B20}, {20,4,0,0,-127,0,0,0x5A3B20}, {24,4,0,0,-127,0,0,0x5A3B20}, {28,4,127,0,0,0,0,0x5A3B20}, {32,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_plankstraightholevert[] = {};
+static const uint16_t i_plankstraightholevert[] = {};
+static const MFace f_plankstraightholevert[] = {};
+static const MVert v_plankstraightholehorz[] = {};
+static const uint16_t i_plankstraightholehorz[] = {};
+static const MFace f_plankstraightholehorz[] = {};
+static const MVert v_plankstraighttowervert[] = {{-40,-60,-80}, {40,-60,-80}, {40,-60,-120}, {-40,-60,-120}, {-40,-60,-40}, {40,-60,-40}, {-40,-60,0}, {40,-60,0}, {-40,-60,40}, {40,-60,40}, {-40,-60,80}, {40,-60,80}, {-40,-60,120}, {40,-60,120}, {-40,-220,-120}, {-40,-220,120}, {40,-220,120}, {40,-220,-120}, {-40,-60,-10}, {-40,-60,10}, {-40,-24,10}, {-40,-24,-10}, {-34,-60,-10}, {-34,-24,-10}, {-34,-24,10}, {-34,-60,10}, {34,-60,-10}, {34,-60,10}, {34,-24,10}, {34,-24,-10}, {40,-60,-10}, {40,-24,-10}, {40,-24,10}, {40,-60,10}};
+static const uint16_t i_plankstraighttowervert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17,18,19,20,21,22,23,24,25,18,21,23,22,19,25,24,20,18,22,25,19,21,20,24,23,26,27,28,29,30,31,32,33,26,29,31,30,27,33,32,28,26,30,33,27,29,28,32,31};
+static const MFace f_plankstraighttowervert[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,0,127,0,0,0,0x8D5E35}, {20,4,0,127,0,0,0,0x7B5030}, {24,4,-127,0,0,0,0,0x5A3B20}, {28,4,127,0,0,0,0,0x5A3B20}, {32,4,-127,0,0,0,0,0x4E463C}, {36,4,127,0,0,0,0,0x4E463C}, {40,4,0,0,-127,0,0,0x4E463C}, {44,4,0,0,127,0,0,0x4E463C}, {48,4,0,-127,0,0,0,0x4E463C}, {52,4,0,127,0,0,0,0x4E463C}, {56,4,-127,0,0,0,0,0x4E463C}, {60,4,127,0,0,0,0,0x4E463C}, {64,4,0,0,-127,0,0,0x4E463C}, {68,4,0,0,127,0,0,0x4E463C}, {72,4,0,-127,0,0,0,0x4E463C}, {76,4,0,127,0,0,0,0x4E463C}};
+static const MVert v_plankstraighttowerhorz[] = {{-120,-60,0}, {120,-60,0}, {120,-60,-40}, {-120,-60,-40}, {-120,-60,40}, {120,-60,40}, {120,-220,-40}, {-120,-220,-40}, {-120,-220,40}, {120,-220,40}, {-10,-60,-40}, {-10,-60,40}, {-10,-24,40}, {-10,-24,-40}, {-4,-60,-40}, {-4,-24,-40}, {-4,-24,40}, {-4,-60,40}, {4,-60,-40}, {4,-60,40}, {4,-24,40}, {4,-24,-40}, {10,-60,-40}, {10,-24,-40}, {10,-24,40}, {10,-60,40}};
+static const uint16_t i_plankstraighttowerhorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4,10,11,12,13,14,15,16,17,10,13,15,14,11,17,16,12,10,14,17,11,13,12,16,15,18,19,20,21,22,23,24,25,18,21,23,22,19,25,24,20,18,22,25,19,21,20,24,23};
+static const MFace f_plankstraighttowerhorz[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,0,-127,0,0,0x5A3B20}, {12,4,0,0,127,0,0,0x5A3B20}, {16,4,-127,0,0,0,0,0x4E463C}, {20,4,127,0,0,0,0,0x4E463C}, {24,4,0,0,-127,0,0,0x4E463C}, {28,4,0,0,127,0,0,0x4E463C}, {32,4,0,-127,0,0,0,0x4E463C}, {36,4,0,127,0,0,0,0x4E463C}, {40,4,-127,0,0,0,0,0x4E463C}, {44,4,127,0,0,0,0,0x4E463C}, {48,4,0,0,-127,0,0,0x4E463C}, {52,4,0,0,127,0,0,0x4E463C}, {56,4,0,-127,0,0,0,0x4E463C}, {60,4,0,127,0,0,0,0x4E463C}};
+static const MVert v_cliffstraightvert[] = {{-32,60,-80}, {24,60,-80}, {24,60,-120}, {-32,60,-120}, {-32,60,-40}, {24,60,-40}, {-32,60,0}, {24,60,0}, {-32,60,40}, {24,60,40}, {-32,60,80}, {24,60,80}, {-32,60,120}, {24,60,120}, {-32,-160,-120}, {-32,-160,120}, {24,-160,120}, {24,-160,-120}};
+static const uint16_t i_cliffstraightvert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,14,15,12,3,2,13,16,17};
+static const MFace f_cliffstraightvert[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x857D70}, {16,4,0,127,0,0,0,0x928A7C}, {20,4,0,127,0,0,0,0x857D70}, {24,4,-127,0,0,0,0,0x6C655A}, {28,4,127,0,0,0,0,0x6C655A}};
+static const MVert v_cliffstraighthorz[] = {{-120,60,0}, {120,60,0}, {120,60,-32}, {-120,60,-32}, {-120,60,24}, {120,60,24}, {120,-160,-32}, {-120,-160,-32}, {-120,-160,24}, {120,-160,24}};
+static const uint16_t i_cliffstraighthorz[] = {0,1,2,3,4,5,1,0,3,2,6,7,8,9,5,4};
+static const MFace f_cliffstraighthorz[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,0,-127,0,0,0x6C655A}, {12,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_cliffturna[] = {{-32,60,-80}, {24,60,-80}, {24,60,-120}, {-32,60,-120}, {-32,60,-40}, {24,60,-40}, {-32,60,-32}, {24,60,-32}, {-120,60,0}, {24,60,0}, {-120,60,-32}, {-120,60,24}, {24,60,24}, {-32,-160,-120}, {-32,-160,-32}, {-120,-160,-32}, {24,-160,24}, {24,-160,-120}, {-120,-160,24}};
+static const uint16_t i_cliffturna[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,10,11,12,9,8,13,14,6,3,10,6,14,15,2,12,16,17,18,16,12,11};
+static const MFace f_cliffturna[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x928A7C}, {16,4,0,127,0,0,0,0x857D70}, {20,4,-127,0,0,0,0,0x6C655A}, {24,4,0,0,-127,0,0,0x6C655A}, {28,4,127,0,0,0,0,0x6C655A}, {32,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_cliffturnb[] = {{-32,60,-80}, {24,60,-80}, {24,60,-120}, {-32,60,-120}, {-32,60,-40}, {24,60,-40}, {-32,60,-32}, {24,60,-32}, {-32,60,0}, {120,60,0}, {120,60,-32}, {-32,60,24}, {120,60,24}, {-32,-160,-120}, {-32,-160,24}, {120,-160,-32}, {24,-160,-32}, {24,-160,-120}, {120,-160,24}};
+static const uint16_t i_cliffturnb[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,10,6,11,12,9,8,13,14,11,3,7,10,15,16,2,7,16,17,14,18,12,11};
+static const MFace f_cliffturnb[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x928A7C}, {16,4,0,127,0,0,0,0x857D70}, {20,4,-127,0,0,0,0,0x6C655A}, {24,4,0,0,-127,0,0,0x6C655A}, {28,4,127,0,0,0,0,0x6C655A}, {32,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_cliffturnc[] = {{-120,60,0}, {24,60,0}, {24,60,-32}, {-120,60,-32}, {-120,60,24}, {24,60,24}, {-32,60,40}, {24,60,40}, {-32,60,24}, {-32,60,80}, {24,60,80}, {-32,60,120}, {24,60,120}, {-32,-160,24}, {-32,-160,120}, {24,-160,-32}, {-120,-160,-32}, {24,-160,120}, {-120,-160,24}};
+static const uint16_t i_cliffturnc[] = {0,1,2,3,4,5,1,0,6,7,5,8,9,10,7,6,11,12,10,9,13,14,11,8,3,2,15,16,2,12,17,15,18,13,8,4};
+static const MFace f_cliffturnc[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x857D70}, {12,4,0,127,0,0,0,0x928A7C}, {16,4,0,127,0,0,0,0x857D70}, {20,4,-127,0,0,0,0,0x6C655A}, {24,4,0,0,-127,0,0,0x6C655A}, {28,4,127,0,0,0,0,0x6C655A}, {32,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_cliffturnd[] = {{-24,60,-24}, {120,60,-24}, {120,60,-32}, {-24,60,-32}, {-32,60,0}, {120,60,0}, {-32,60,-24}, {-32,60,24}, {120,60,24}, {-32,60,40}, {24,60,40}, {24,60,24}, {-32,60,80}, {24,60,80}, {-32,60,120}, {24,60,120}, {-32,-160,-24}, {-32,-160,120}, {120,-160,-32}, {-24,-160,-32}, {-24,-160,-24}, {24,-160,120}, {24,-160,24}, {120,-160,24}};
+static const uint16_t i_cliffturnd[] = {0,1,2,3,4,5,1,6,7,8,5,4,9,10,11,7,12,13,10,9,14,15,13,12,16,17,14,6,3,2,18,19,19,20,0,3,6,0,20,16,11,15,21,22,22,23,8,11};
+static const MFace f_cliffturnd[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,0,127,0,0,0,0x857D70}, {12,4,0,127,0,0,0,0x857D70}, {16,4,0,127,0,0,0,0x928A7C}, {20,4,0,127,0,0,0,0x857D70}, {24,4,-127,0,0,0,0,0x6C655A}, {28,4,0,0,-127,0,0,0x6C655A}, {32,4,-127,0,0,0,0,0x6C655A}, {36,4,0,0,-127,0,0,0x6C655A}, {40,4,127,0,0,0,0,0x6C655A}, {44,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftleft[] = {{-32,60,-80}, {24,60,-80}, {24,60,-120}, {-32,60,-120}, {-32,60,-40}, {24,60,-40}, {-32,60,-32}, {24,60,-32}, {-120,60,0}, {24,60,0}, {-120,60,-32}, {-120,60,24}, {24,60,24}, {-32,60,40}, {24,60,40}, {-32,60,24}, {-32,60,80}, {24,60,80}, {-32,60,120}, {24,60,120}, {-32,-160,-120}, {-32,-160,-32}, {-32,-160,24}, {-32,-160,120}, {-120,-160,-32}, {24,-160,120}, {24,-160,-120}, {-120,-160,24}};
+static const uint16_t i_clifftleft[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,10,11,12,9,8,13,14,12,15,16,17,14,13,18,19,17,16,20,21,6,3,22,23,18,15,10,6,21,24,2,19,25,26,27,22,15,11};
+static const MFace f_clifftleft[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x928A7C}, {16,4,0,127,0,0,0,0x857D70}, {20,4,0,127,0,0,0,0x857D70}, {24,4,0,127,0,0,0,0x928A7C}, {28,4,0,127,0,0,0,0x857D70}, {32,4,-127,0,0,0,0,0x6C655A}, {36,4,-127,0,0,0,0,0x6C655A}, {40,4,0,0,-127,0,0,0x6C655A}, {44,4,127,0,0,0,0,0x6C655A}, {48,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftright[] = {{-32,60,-80}, {24,60,-80}, {24,60,-120}, {-32,60,-120}, {-32,60,-40}, {24,60,-40}, {-32,60,-32}, {24,60,-32}, {-32,60,0}, {120,60,0}, {120,60,-32}, {-32,60,24}, {120,60,24}, {-32,60,40}, {24,60,40}, {24,60,24}, {-32,60,80}, {24,60,80}, {-32,60,120}, {24,60,120}, {-32,-160,-120}, {-32,-160,120}, {120,-160,-32}, {24,-160,-32}, {24,-160,-120}, {24,-160,120}, {24,-160,24}, {120,-160,24}};
+static const uint16_t i_clifftright[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,10,6,11,12,9,8,13,14,15,11,16,17,14,13,18,19,17,16,20,21,18,3,7,10,22,23,2,7,23,24,15,19,25,26,26,27,12,15};
+static const MFace f_clifftright[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x928A7C}, {16,4,0,127,0,0,0,0x857D70}, {20,4,0,127,0,0,0,0x857D70}, {24,4,0,127,0,0,0,0x928A7C}, {28,4,0,127,0,0,0,0x857D70}, {32,4,-127,0,0,0,0,0x6C655A}, {36,4,0,0,-127,0,0,0x6C655A}, {40,4,127,0,0,0,0,0x6C655A}, {44,4,127,0,0,0,0,0x6C655A}, {48,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftup[] = {{-120,60,0}, {120,60,0}, {120,60,-32}, {-120,60,-32}, {-120,60,24}, {120,60,24}, {-32,60,40}, {24,60,40}, {24,60,24}, {-32,60,24}, {-32,60,80}, {24,60,80}, {-32,60,120}, {24,60,120}, {-32,-160,24}, {-32,-160,120}, {120,-160,-32}, {-120,-160,-32}, {24,-160,120}, {24,-160,24}, {-120,-160,24}, {120,-160,24}};
+static const uint16_t i_clifftup[] = {0,1,2,3,4,5,1,0,6,7,8,9,10,11,7,6,12,13,11,10,14,15,12,9,3,2,16,17,8,13,18,19,20,14,9,4,19,21,5,8};
+static const MFace f_clifftup[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x857D70}, {12,4,0,127,0,0,0,0x928A7C}, {16,4,0,127,0,0,0,0x857D70}, {20,4,-127,0,0,0,0,0x6C655A}, {24,4,0,0,-127,0,0,0x6C655A}, {28,4,127,0,0,0,0,0x6C655A}, {32,4,0,0,127,0,0,0x6C655A}, {36,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftdown[] = {{-32,60,-80}, {24,60,-80}, {24,60,-120}, {-32,60,-120}, {-32,60,-40}, {24,60,-40}, {-32,60,-32}, {24,60,-32}, {-120,60,0}, {120,60,0}, {120,60,-32}, {-120,60,-32}, {-120,60,24}, {120,60,24}, {-32,-160,-120}, {-32,-160,-32}, {-120,-160,-32}, {120,-160,-32}, {24,-160,-32}, {24,-160,-120}, {-120,-160,24}, {120,-160,24}};
+static const uint16_t i_clifftdown[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,10,11,12,13,9,8,14,15,6,3,11,6,15,16,7,10,17,18,2,7,18,19,20,21,13,12};
+static const MFace f_clifftdown[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x928A7C}, {16,4,0,127,0,0,0,0x857D70}, {20,4,-127,0,0,0,0,0x6C655A}, {24,4,0,0,-127,0,0,0x6C655A}, {28,4,0,0,-127,0,0,0x6C655A}, {32,4,127,0,0,0,0,0x6C655A}, {36,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftotemplecapavert[] = {{-32,60,-80}, {24,60,-80}, {24,60,-120}, {-32,60,-120}, {-32,60,-40}, {24,60,-40}, {-32,60,-24}, {24,60,-24}, {-24,60,-16}, {24,60,-16}, {-24,60,-24}, {-32,-160,-120}, {-32,-160,-24}, {-24,-160,-24}, {-24,-160,-16}, {24,-160,-16}, {24,-160,-120}};
+static const uint16_t i_clifftotemplecapavert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,10,11,12,6,3,12,13,10,6,13,14,8,10,14,15,9,8,2,9,15,16};
+static const MFace f_clifftotemplecapavert[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x928A7C}, {16,4,-127,0,0,0,0,0x6C655A}, {20,4,0,0,127,0,0,0x6C655A}, {24,4,-127,0,0,0,0,0x6C655A}, {28,4,0,0,127,0,0,0x6C655A}, {32,4,127,0,0,0,0,0x6C655A}};
+static const MVert v_clifftotemplecapahorz[] = {{-120,60,-24}, {-24,60,-24}, {-24,60,-32}, {-120,60,-32}, {-120,60,0}, {-16,60,0}, {-16,60,-24}, {-120,60,24}, {-16,60,24}, {-24,-160,-32}, {-120,-160,-32}, {-24,-160,-24}, {-16,-160,-24}, {-16,-160,24}, {-120,-160,24}};
+static const uint16_t i_clifftotemplecapahorz[] = {0,1,2,3,4,5,6,0,7,8,5,4,3,2,9,10,2,1,11,9,1,6,12,11,6,8,13,12,14,13,8,7};
+static const MFace f_clifftotemplecapahorz[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,0,127,0,0,0,0x857D70}, {12,4,0,0,-127,0,0,0x6C655A}, {16,4,127,0,0,0,0,0x6C655A}, {20,4,0,0,-127,0,0,0x6C655A}, {24,4,127,0,0,0,0,0x6C655A}, {28,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftotemplecapbvert[] = {{-24,60,24}, {24,60,24}, {24,60,16}, {-24,60,16}, {-32,60,40}, {24,60,40}, {-32,60,24}, {-32,60,80}, {24,60,80}, {-32,60,120}, {24,60,120}, {-32,-160,24}, {-32,-160,120}, {-24,-160,16}, {-24,-160,24}, {24,-160,16}, {24,-160,120}};
+static const uint16_t i_clifftotemplecapbvert[] = {0,1,2,3,4,5,1,6,7,8,5,4,9,10,8,7,11,12,9,6,13,14,0,3,3,2,15,13,2,10,16,15,6,0,14,11};
+static const MFace f_clifftotemplecapbvert[] = {{0,4,0,127,0,0,0,0x857D70}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x857D70}, {16,4,-127,0,0,0,0,0x6C655A}, {20,4,-127,0,0,0,0,0x6C655A}, {24,4,0,0,-127,0,0,0x6C655A}, {28,4,127,0,0,0,0,0x6C655A}, {32,4,0,0,-127,0,0,0x6C655A}};
+static const MVert v_clifftotemplecapbhorz[] = {{24,60,-24}, {120,60,-24}, {120,60,-32}, {24,60,-32}, {16,60,0}, {120,60,0}, {16,60,-24}, {16,60,24}, {120,60,24}, {120,-160,-32}, {24,-160,-32}, {24,-160,-24}, {16,-160,-24}, {16,-160,24}, {120,-160,24}};
+static const uint16_t i_clifftotemplecapbhorz[] = {0,1,2,3,4,5,1,6,7,8,5,4,3,2,9,10,6,0,11,12,12,13,7,6,13,14,8,7,10,11,0,3};
+static const MFace f_clifftotemplecapbhorz[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,0,127,0,0,0,0x857D70}, {12,4,0,0,-127,0,0,0x6C655A}, {16,4,0,0,-127,0,0,0x6C655A}, {20,4,-127,0,0,0,0,0x6C655A}, {24,4,0,0,127,0,0,0x6C655A}, {28,4,-127,0,0,0,0,0x6C655A}};
+static const MVert v_cliffstraighttreevert[] = {{-32,60,-80}, {24,60,-80}, {24,60,-120}, {-32,60,-120}, {-32,60,-40}, {24,60,-40}, {-32,60,-16}, {24,60,-16}, {-40,60,0}, {40,60,0}, {40,60,-16}, {-40,60,-16}, {-40,60,16}, {40,60,16}, {-32,60,40}, {24,60,40}, {24,60,16}, {-32,60,16}, {-32,60,80}, {24,60,80}, {-32,60,120}, {24,60,120}, {-40,-160,-16}, {-40,-160,16}, {-32,-160,-120}, {-32,-160,-16}, {-32,-160,16}, {-32,-160,120}, {40,-160,-16}, {24,-160,-16}, {24,-160,16}, {40,-160,16}, {24,-160,-120}, {24,-160,120}, {-40,81,-12}, {-40,81,12}, {-40,90,12}, {-40,90,-12}, {40,81,-12}, {40,90,-12}, {40,90,12}, {40,81,12}, {-40,99,12}, {-40,99,-12}, {40,99,-12}, {40,99,12}};
+static const uint16_t i_cliffstraighttreevert[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,10,11,12,13,9,8,14,15,16,17,18,19,15,14,20,21,19,18,22,23,12,11,24,25,6,3,26,27,20,17,11,6,25,22,7,10,28,29,23,26,17,12,30,31,13,16,2,7,29,32,16,21,33,30,10,13,31,28,34,35,36,37,38,39,40,41,34,37,39,38,35,41,40,36,34,38,41,35,37,36,40,39,37,36,42,43,39,44,45,40,36,40,45,42,37,39,40,36,43,42,45,44};
+static const MFace f_cliffstraighttreevert[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x928A7C}, {16,4,0,127,0,0,0,0x857D70}, {20,4,0,127,0,0,0,0x857D70}, {24,4,0,127,0,0,0,0x928A7C}, {28,4,0,127,0,0,0,0x857D70}, {32,4,-127,0,0,0,0,0x6C655A}, {36,4,-127,0,0,0,0,0x6C655A}, {40,4,-127,0,0,0,0,0x6C655A}, {44,4,0,0,-127,0,0,0x6C655A}, {48,4,0,0,-127,0,0,0x6C655A}, {52,4,0,0,127,0,0,0x6C655A}, {56,4,0,0,127,0,0,0x6C655A}, {60,4,127,0,0,0,0,0x6C655A}, {64,4,127,0,0,0,0,0x6C655A}, {68,4,127,0,0,0,0,0x6C655A}, {72,4,-127,0,0,0,0,0x6A4A2D}, {76,4,127,0,0,0,0,0x6A4A2D}, {80,4,0,0,-127,0,0,0x6A4A2D}, {84,4,0,0,127,0,0,0x7B5A38}, {88,4,0,-127,0,0,0,0x6A4A2D}, {92,4,0,127,0,0,0,0x6A4A2D}, {96,4,-127,0,0,0,0,0x3A6B2C}, {100,4,127,0,0,0,0,0x3A6B2C}, {104,4,0,0,127,0,0,0x2F5A26}, {108,4,0,-127,0,0,0,0x3A6B2C}, {112,4,0,127,0,0,0,0x3A6B2C}};
+static const MVert v_cliffstraighttreehorz[] = {{-16,60,-32}, {16,60,-32}, {16,60,-40}, {-16,60,-40}, {-120,60,0}, {120,60,0}, {120,60,-32}, {-120,60,-32}, {-120,60,24}, {120,60,24}, {-16,60,40}, {16,60,40}, {16,60,24}, {-16,60,24}, {16,-160,-40}, {-16,-160,-40}, {-16,-160,-32}, {-120,-160,-32}, {120,-160,-32}, {16,-160,-32}, {-16,-160,24}, {-16,-160,40}, {16,-160,40}, {16,-160,24}, {-120,-160,24}, {120,-160,24}, {-12,81,-40}, {-12,81,40}, {-12,90,40}, {-12,90,-40}, {12,81,-40}, {12,90,-40}, {12,90,40}, {12,81,40}, {-12,99,40}, {-12,99,-40}, {12,99,-40}, {12,99,40}};
+static const uint16_t i_cliffstraighttreehorz[] = {0,1,2,3,4,5,6,7,8,9,5,4,10,11,12,13,3,2,14,15,7,0,16,17,1,6,18,19,15,16,0,3,20,21,10,13,2,1,19,14,12,11,22,23,24,20,13,8,23,25,9,12,21,22,11,10,26,27,28,29,30,31,32,33,26,29,31,30,27,33,32,28,26,30,33,27,29,28,32,31,29,28,34,35,31,36,37,32,28,32,37,34,29,31,32,28,35,34,37,36};
+static const MFace f_cliffstraighttreehorz[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,0,127,0,0,0,0x857D70}, {12,4,0,127,0,0,0,0x857D70}, {16,4,0,0,-127,0,0,0x6C655A}, {20,4,0,0,-127,0,0,0x6C655A}, {24,4,0,0,-127,0,0,0x6C655A}, {28,4,-127,0,0,0,0,0x6C655A}, {32,4,-127,0,0,0,0,0x6C655A}, {36,4,127,0,0,0,0,0x6C655A}, {40,4,127,0,0,0,0,0x6C655A}, {44,4,0,0,127,0,0,0x6C655A}, {48,4,0,0,127,0,0,0x6C655A}, {52,4,0,0,127,0,0,0x6C655A}, {56,4,-127,0,0,0,0,0x6A4A2D}, {60,4,127,0,0,0,0,0x6A4A2D}, {64,4,0,0,-127,0,0,0x6A4A2D}, {68,4,0,0,127,0,0,0x7B5A38}, {72,4,0,-127,0,0,0,0x6A4A2D}, {76,4,0,127,0,0,0,0x6A4A2D}, {80,4,-127,0,0,0,0,0x3A6B2C}, {84,4,127,0,0,0,0,0x3A6B2C}, {88,4,0,0,127,0,0,0x2F5A26}, {92,4,0,-127,0,0,0,0x3A6B2C}, {96,4,0,127,0,0,0,0x3A6B2C}};
+static const MVert v_templestraightvert_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightvert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraightvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightvert2_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightvert2_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraightvert2_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightvert3_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightvert3_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraightvert3_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightvert4_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightvert4_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraightvert4_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightvert5_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightvert5_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraightvert5_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraighttowervert_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraighttowervert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraighttowervert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraighthorz_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighthorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraighthorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighthorz2_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighthorz2_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraighthorz2_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighthorz3_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighthorz3_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraighthorz3_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighthorz4_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighthorz4_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraighthorz4_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighthorz5_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighthorz5_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraighthorz5_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighttowerhorz_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighttowerhorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraighttowerhorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templeturna_far[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-120,0,40}, {40,0,40}, {-120,0,-40}, {-40,-160,-120}, {-40,-160,-40}, {-120,-160,-40}, {40,-160,40}, {40,-160,-120}, {-120,-160,40}};
+static const uint16_t i_templeturna_far[] = {0,1,2,3,4,5,1,6,7,8,0,3,6,0,8,9,2,5,10,11,12,10,5,4};
+static const MFace f_templeturna_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,-127,0,0,0,0,0x76684F}, {12,4,0,0,-127,0,0,0x76684F}, {16,4,127,0,0,0,0,0x76684F}, {20,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templeturnb_far[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-40,0,40}, {120,0,40}, {120,0,-40}, {-40,-160,-120}, {-40,-160,40}, {120,-160,-40}, {40,-160,-40}, {40,-160,-120}, {120,-160,40}};
+static const uint16_t i_templeturnb_far[] = {0,1,2,3,4,5,6,0,7,8,4,3,1,6,9,10,2,1,10,11,8,12,5,4};
+static const MFace f_templeturnb_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,-127,0,0,0,0,0x76684F}, {12,4,0,0,-127,0,0,0x76684F}, {16,4,127,0,0,0,0,0x76684F}, {20,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templeturnc_far[] = {{-120,0,40}, {40,0,40}, {40,0,-40}, {-120,0,-40}, {-40,0,120}, {40,0,120}, {-40,0,40}, {-40,-160,40}, {-40,-160,120}, {40,-160,-40}, {-120,-160,-40}, {40,-160,120}, {-120,-160,40}};
+static const uint16_t i_templeturnc_far[] = {0,1,2,3,4,5,1,6,7,8,4,6,3,2,9,10,2,5,11,9,12,7,6,0};
+static const MFace f_templeturnc_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,-127,0,0,0,0,0x76684F}, {12,4,0,0,-127,0,0,0x76684F}, {16,4,127,0,0,0,0,0x76684F}, {20,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templeturnd_far[] = {{-40,0,40}, {120,0,40}, {120,0,-40}, {-40,0,-40}, {-40,0,120}, {40,0,120}, {40,0,40}, {-40,-160,-40}, {-40,-160,120}, {120,-160,-40}, {40,-160,120}, {40,-160,40}, {120,-160,40}};
+static const uint16_t i_templeturnd_far[] = {0,1,2,3,4,5,6,0,7,8,4,3,3,2,9,7,6,5,10,11,11,12,1,6};
+static const MFace f_templeturnd_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,-127,0,0,0,0,0x76684F}, {12,4,0,0,-127,0,0,0x76684F}, {16,4,127,0,0,0,0,0x76684F}, {20,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templetleft_far[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-120,0,40}, {40,0,40}, {-120,0,-40}, {-40,0,120}, {40,0,120}, {-40,0,40}, {-40,-160,-120}, {-40,-160,-40}, {-40,-160,40}, {-40,-160,120}, {-120,-160,-40}, {40,-160,120}, {40,-160,-120}, {-120,-160,40}};
+static const uint16_t i_templetleft_far[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,0,3,12,13,7,9,6,0,11,14,2,8,15,16,17,12,9,4};
+static const MFace f_templetleft_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,-127,0,0,0,0,0x76684F}, {16,4,-127,0,0,0,0,0x76684F}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templetright_far[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-40,0,40}, {120,0,40}, {120,0,-40}, {-40,0,120}, {40,0,120}, {40,0,40}, {-40,-160,-120}, {-40,-160,120}, {120,-160,-40}, {40,-160,-40}, {40,-160,-120}, {40,-160,120}, {40,-160,40}, {120,-160,40}};
+static const uint16_t i_templetright_far[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,7,3,1,6,12,13,2,1,13,14,9,8,15,16,16,17,5,9};
+static const MFace f_templetright_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,-127,0,0,0,0,0x76684F}, {16,4,0,0,-127,0,0,0x76684F}, {20,4,127,0,0,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templetup_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {-40,0,120}, {40,0,120}, {40,0,40}, {-40,0,40}, {-40,-160,40}, {-40,-160,120}, {120,-160,-40}, {-120,-160,-40}, {40,-160,120}, {40,-160,40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templetup_far[] = {0,1,2,3,4,5,6,7,8,9,4,7,3,2,10,11,6,5,12,13,14,8,7,0,13,15,1,6};
+static const MFace f_templetup_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,-127,0,0,0,0,0x76684F}, {12,4,0,0,-127,0,0,0x76684F}, {16,4,127,0,0,0,0,0x76684F}, {20,4,0,0,127,0,0,0x76684F}, {24,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templetdown_far[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {-40,-160,-120}, {-40,-160,-40}, {-120,-160,-40}, {120,-160,-40}, {40,-160,-40}, {40,-160,-120}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templetdown_far[] = {0,1,2,3,4,5,6,7,8,9,0,3,7,0,9,10,1,6,11,12,2,1,12,13,14,15,5,4};
+static const MFace f_templetdown_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,-127,0,0,0,0,0x76684F}, {12,4,0,0,-127,0,0,0x76684F}, {16,4,0,0,-127,0,0,0x76684F}, {20,4,127,0,0,0,0,0x76684F}, {24,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightholevert_far[] = {{-40,0,-96}, {40,0,-96}, {40,0,-120}, {-40,0,-120}, {-40,0,120}, {40,0,120}, {40,0,96}, {-40,0,96}, {-40,-160,-96}, {40,-160,-96}, {-40,-160,-120}, {-40,-160,96}, {-40,-160,120}, {40,-160,-120}, {40,-160,120}, {40,-160,96}};
+static const uint16_t i_templestraightholevert_far[] = {0,1,2,3,4,5,6,7,8,9,1,0,10,8,0,3,11,12,4,7,2,1,9,13,6,5,14,15,7,6,15,11};
+static const MFace f_templestraightholevert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,0,127,0,0,0x76684F}, {12,4,-127,0,0,0,0,0x76684F}, {16,4,-127,0,0,0,0,0x76684F}, {20,4,127,0,0,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightholelongavert_far[] = {{-40,0,-96}, {40,0,-96}, {40,0,-120}, {-40,0,-120}, {-40,-160,-96}, {40,-160,-96}, {-40,-160,-120}, {40,-160,-120}};
+static const uint16_t i_templestraightholelongavert_far[] = {0,1,2,3,4,5,1,0,6,4,0,3,2,1,5,7};
+static const MFace f_templestraightholelongavert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,127,0,0,0x76684F}, {8,4,-127,0,0,0,0,0x76684F}, {12,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightholelongbvert_far[] = {{-40,0,120}, {40,0,120}, {40,0,96}, {-40,0,96}, {-40,-160,96}, {-40,-160,120}, {40,-160,120}, {40,-160,96}};
+static const uint16_t i_templestraightholelongbvert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7,3,2,7,4};
+static const MFace f_templestraightholelongbvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}, {12,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightholehorz_far[] = {{96,0,40}, {120,0,40}, {120,0,-40}, {96,0,-40}, {-120,0,40}, {-96,0,40}, {-96,0,-40}, {-120,0,-40}, {-96,-160,40}, {-96,-160,-40}, {-120,-160,-40}, {120,-160,-40}, {96,-160,-40}, {-120,-160,40}, {96,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightholehorz_far[] = {0,1,2,3,4,5,6,7,6,5,8,9,7,6,9,10,3,2,11,12,13,8,5,4,14,15,1,0,12,14,0,3};
+static const MFace f_templestraightholehorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,127,0,0,0,0,0x76684F}, {12,4,0,0,-127,0,0,0x76684F}, {16,4,0,0,-127,0,0,0x76684F}, {20,4,0,0,127,0,0,0x76684F}, {24,4,0,0,127,0,0,0x76684F}, {28,4,-127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightholelongahorz_far[] = {{-120,0,40}, {-96,0,40}, {-96,0,-40}, {-120,0,-40}, {-96,-160,40}, {-96,-160,-40}, {-120,-160,-40}, {-120,-160,40}};
+static const uint16_t i_templestraightholelongahorz_far[] = {0,1,2,3,2,1,4,5,3,2,5,6,7,4,1,0};
+static const MFace f_templestraightholelongahorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,127,0,0,0,0,0x76684F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightholelongbhorz_far[] = {{96,0,40}, {120,0,40}, {120,0,-40}, {96,0,-40}, {120,-160,-40}, {96,-160,-40}, {96,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightholelongbhorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0,5,6,0,3};
+static const MFace f_templestraightholelongbhorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}, {12,4,-127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowsmallleftvert_far[] = {{-40,0,-112}, {40,0,-112}, {40,0,-120}, {-40,0,-120}, {-40,0,-104}, {32,0,-104}, {32,0,-112}, {-40,0,-80}, {8,0,-80}, {8,0,-104}, {-40,0,80}, {0,0,80}, {0,0,-80}, {-40,0,104}, {8,0,104}, {8,0,80}, {-40,0,112}, {32,0,112}, {32,0,104}, {-40,0,120}, {40,0,120}, {40,0,112}, {32,-160,-112}, {40,-160,-112}, {8,-160,-104}, {32,-160,-104}, {0,-160,-80}, {8,-160,-80}, {-40,-160,-120}, {-40,-160,120}, {0,-160,80}, {8,-160,104}, {8,-160,80}, {32,-160,112}, {32,-160,104}, {40,-160,-120}, {40,-160,120}, {40,-160,112}};
+static const uint16_t i_templestraightnarrowsmallleftvert_far[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,12,7,13,14,15,10,16,17,18,13,19,20,21,16,22,23,1,6,24,25,5,9,26,27,8,12,28,29,19,3,12,11,30,26,9,8,27,24,15,14,31,32,6,5,25,22,18,17,33,34,2,1,23,35,21,20,36,37,11,15,32,30,14,18,34,31,17,21,37,33};
+static const MFace f_templestraightnarrowsmallleftvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0xA8977A}, {24,4,0,127,0,0,0,0xA8977A}, {28,4,0,0,127,0,0,0x76684F}, {32,4,0,0,127,0,0,0x76684F}, {36,4,0,0,127,0,0,0x76684F}, {40,4,-127,0,0,0,0,0x76684F}, {44,4,127,0,0,0,0,0x76684F}, {48,4,127,0,0,0,0,0x76684F}, {52,4,127,0,0,0,0,0x76684F}, {56,4,127,0,0,0,0,0x76684F}, {60,4,127,0,0,0,0,0x76684F}, {64,4,127,0,0,0,0,0x76684F}, {68,4,127,0,0,0,0,0x76684F}, {72,4,0,0,-127,0,0,0x76684F}, {76,4,0,0,-127,0,0,0x76684F}, {80,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowsmallrightvert_far[] = {{-40,0,-112}, {40,0,-112}, {40,0,-120}, {-40,0,-120}, {-32,0,-104}, {40,0,-104}, {-32,0,-112}, {-8,0,-80}, {40,0,-80}, {-8,0,-104}, {0,0,80}, {40,0,80}, {0,0,-80}, {-8,0,104}, {40,0,104}, {-8,0,80}, {-32,0,112}, {40,0,112}, {-32,0,104}, {-40,0,120}, {40,0,120}, {-40,0,112}, {-40,-160,-112}, {-32,-160,-112}, {-32,-160,-104}, {-8,-160,-104}, {-8,-160,-80}, {0,-160,-80}, {-40,-160,-120}, {-40,-160,112}, {-40,-160,120}, {-32,-160,104}, {-32,-160,112}, {-8,-160,80}, {-8,-160,104}, {0,-160,80}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightnarrowsmallrightvert_far[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,8,12,13,14,11,15,16,17,14,18,19,20,17,21,22,23,6,0,24,25,9,4,26,27,12,7,28,22,0,3,29,30,19,21,23,24,4,6,31,32,16,18,25,26,7,9,33,34,13,15,27,35,10,12,2,20,36,37,15,10,35,33,18,13,34,31,21,16,32,29};
+static const MFace f_templestraightnarrowsmallrightvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0xA8977A}, {24,4,0,127,0,0,0,0xA8977A}, {28,4,0,0,127,0,0,0x76684F}, {32,4,0,0,127,0,0,0x76684F}, {36,4,0,0,127,0,0,0x76684F}, {40,4,-127,0,0,0,0,0x76684F}, {44,4,-127,0,0,0,0,0x76684F}, {48,4,-127,0,0,0,0,0x76684F}, {52,4,-127,0,0,0,0,0x76684F}, {56,4,-127,0,0,0,0,0x76684F}, {60,4,-127,0,0,0,0,0x76684F}, {64,4,-127,0,0,0,0,0x76684F}, {68,4,127,0,0,0,0,0x76684F}, {72,4,0,0,-127,0,0,0x76684F}, {76,4,0,0,-127,0,0,0x76684F}, {80,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowsmalldownhorz_far[] = {{-120,0,0}, {120,0,0}, {120,0,-40}, {-120,0,-40}, {80,0,8}, {120,0,8}, {80,0,0}, {-120,0,8}, {-80,0,8}, {-80,0,0}, {-120,0,32}, {-104,0,32}, {-104,0,8}, {104,0,32}, {120,0,32}, {104,0,8}, {-120,0,40}, {-112,0,40}, {-112,0,32}, {112,0,40}, {120,0,40}, {112,0,32}, {-112,-160,40}, {-112,-160,32}, {-104,-160,32}, {-104,-160,8}, {-80,-160,8}, {-80,-160,0}, {120,-160,-40}, {-120,-160,-40}, {80,-160,0}, {80,-160,8}, {104,-160,8}, {104,-160,32}, {112,-160,32}, {-120,-160,40}, {112,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightnarrowsmalldownhorz_far[] = {0,1,2,3,4,5,1,6,7,8,9,0,10,11,12,7,13,14,5,15,16,17,18,10,19,20,14,21,18,17,22,23,12,11,24,25,9,8,26,27,3,2,28,29,27,30,6,9,25,26,8,12,31,32,15,4,23,24,11,18,33,34,21,13,35,22,17,16,36,37,20,19,30,31,4,6,32,33,13,15,34,36,19,21};
+static const MFace f_templestraightnarrowsmalldownhorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0xA8977A}, {24,4,0,127,0,0,0,0xA8977A}, {28,4,127,0,0,0,0,0x76684F}, {32,4,127,0,0,0,0,0x76684F}, {36,4,127,0,0,0,0,0x76684F}, {40,4,0,0,-127,0,0,0x76684F}, {44,4,0,0,127,0,0,0x76684F}, {48,4,0,0,127,0,0,0x76684F}, {52,4,0,0,127,0,0,0x76684F}, {56,4,0,0,127,0,0,0x76684F}, {60,4,0,0,127,0,0,0x76684F}, {64,4,0,0,127,0,0,0x76684F}, {68,4,0,0,127,0,0,0x76684F}, {72,4,-127,0,0,0,0,0x76684F}, {76,4,-127,0,0,0,0,0x76684F}, {80,4,-127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongleftvert_far[] = {{-40,0,120}, {-8,0,120}, {-8,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {-8,-160,120}, {-8,-160,-120}};
+static const uint16_t i_templestraightnarrowlongleftvert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraightnarrowlongleftvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongleftavert_far[] = {{-40,0,-112}, {40,0,-112}, {40,0,-120}, {-40,0,-120}, {-40,0,-104}, {32,0,-104}, {32,0,-112}, {-40,0,-96}, {8,0,-96}, {8,0,-104}, {-40,0,-56}, {0,0,-56}, {0,0,-96}, {-40,0,120}, {-8,0,120}, {-8,0,-56}, {32,-160,-112}, {40,-160,-112}, {8,-160,-104}, {32,-160,-104}, {0,-160,-96}, {8,-160,-96}, {-8,-160,-56}, {0,-160,-56}, {-40,-160,-120}, {-40,-160,120}, {-8,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightnarrowlongleftavert_far[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,12,7,13,14,15,10,16,17,1,6,18,19,5,9,20,21,8,12,22,23,11,15,24,25,13,3,15,14,26,22,12,11,23,20,9,8,21,18,6,5,19,16,2,1,17,27};
+static const MFace f_templestraightnarrowlongleftavert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,0,127,0,0,0x76684F}, {24,4,0,0,127,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}, {32,4,0,0,127,0,0,0x76684F}, {36,4,-127,0,0,0,0,0x76684F}, {40,4,127,0,0,0,0,0x76684F}, {44,4,127,0,0,0,0,0x76684F}, {48,4,127,0,0,0,0,0x76684F}, {52,4,127,0,0,0,0,0x76684F}, {56,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongleftbvert_far[] = {{-40,0,56}, {-8,0,56}, {-8,0,-120}, {-40,0,-120}, {-40,0,96}, {0,0,96}, {0,0,56}, {-40,0,104}, {8,0,104}, {8,0,96}, {-40,0,112}, {32,0,112}, {32,0,104}, {-40,0,120}, {40,0,120}, {40,0,112}, {-40,-160,-120}, {-40,-160,120}, {-8,-160,56}, {-8,-160,-120}, {0,-160,96}, {0,-160,56}, {8,-160,104}, {8,-160,96}, {32,-160,112}, {32,-160,104}, {40,-160,120}, {40,-160,112}};
+static const uint16_t i_templestraightnarrowlongleftbvert_far[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,12,7,13,14,15,10,16,17,13,3,2,1,18,19,6,5,20,21,9,8,22,23,12,11,24,25,15,14,26,27,1,6,21,18,5,9,23,20,8,12,25,22,11,15,27,24};
+static const MFace f_templestraightnarrowlongleftbvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,-127,0,0,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,127,0,0,0,0,0x76684F}, {36,4,127,0,0,0,0,0x76684F}, {40,4,127,0,0,0,0,0x76684F}, {44,4,0,0,-127,0,0,0x76684F}, {48,4,0,0,-127,0,0,0x76684F}, {52,4,0,0,-127,0,0,0x76684F}, {56,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongrightvert_far[] = {{8,0,120}, {40,0,120}, {40,0,-120}, {8,0,-120}, {8,-160,-120}, {8,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightnarrowlongrightvert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraightnarrowlongrightvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongrightavert_far[] = {{-40,0,-112}, {40,0,-112}, {40,0,-120}, {-40,0,-120}, {-32,0,-104}, {40,0,-104}, {-32,0,-112}, {-8,0,-88}, {40,0,-88}, {-8,0,-104}, {0,0,-48}, {40,0,-48}, {0,0,-88}, {8,0,120}, {40,0,120}, {8,0,-48}, {-40,-160,-112}, {-32,-160,-112}, {-32,-160,-104}, {-8,-160,-104}, {-8,-160,-88}, {0,-160,-88}, {0,-160,-48}, {8,-160,-48}, {-40,-160,-120}, {8,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightnarrowlongrightavert_far[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,8,12,13,14,11,15,16,17,6,0,18,19,9,4,20,21,12,7,22,23,15,10,24,16,0,3,17,18,4,6,19,20,7,9,21,22,10,12,23,25,13,15,2,14,26,27};
+static const MFace f_templestraightnarrowlongrightavert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,0,127,0,0,0x76684F}, {24,4,0,0,127,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}, {32,4,0,0,127,0,0,0x76684F}, {36,4,-127,0,0,0,0,0x76684F}, {40,4,-127,0,0,0,0,0x76684F}, {44,4,-127,0,0,0,0,0x76684F}, {48,4,-127,0,0,0,0,0x76684F}, {52,4,-127,0,0,0,0,0x76684F}, {56,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongrightbvert_far[] = {{8,0,48}, {40,0,48}, {40,0,-120}, {8,0,-120}, {0,0,88}, {40,0,88}, {0,0,48}, {-8,0,104}, {40,0,104}, {-8,0,88}, {-32,0,112}, {40,0,112}, {-32,0,104}, {-40,0,120}, {40,0,120}, {-40,0,112}, {-40,-160,112}, {-40,-160,120}, {-32,-160,104}, {-32,-160,112}, {-8,-160,88}, {-8,-160,104}, {0,-160,48}, {0,-160,88}, {8,-160,-120}, {8,-160,48}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightnarrowlongrightbvert_far[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,8,12,13,14,11,15,16,17,13,15,18,19,10,12,20,21,7,9,22,23,4,6,24,25,0,3,2,14,26,27,6,0,25,22,9,4,23,20,12,7,21,18,15,10,19,16};
+static const MFace f_templestraightnarrowlongrightbvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,-127,0,0,0,0,0x76684F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,-127,0,0,0,0,0x76684F}, {32,4,-127,0,0,0,0,0x76684F}, {36,4,-127,0,0,0,0,0x76684F}, {40,4,127,0,0,0,0,0x76684F}, {44,4,0,0,-127,0,0,0x76684F}, {48,4,0,0,-127,0,0,0x76684F}, {52,4,0,0,-127,0,0,0x76684F}, {56,4,0,0,-127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlonguphorz_far[] = {{-120,0,40}, {120,0,40}, {120,0,8}, {-120,0,8}, {120,-160,8}, {-120,-160,8}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightnarrowlonguphorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraightnarrowlonguphorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongupahorz_far[] = {{-120,0,-32}, {-112,0,-32}, {-112,0,-40}, {-120,0,-40}, {-120,0,-8}, {-104,0,-8}, {-104,0,-32}, {-120,0,0}, {-96,0,0}, {-96,0,-8}, {-120,0,8}, {-56,0,8}, {-56,0,0}, {-120,0,40}, {120,0,40}, {120,0,8}, {-112,-160,-32}, {-112,-160,-40}, {-104,-160,-8}, {-104,-160,-32}, {-96,-160,0}, {-96,-160,-8}, {-56,-160,8}, {-56,-160,0}, {-120,-160,-40}, {120,-160,8}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightnarrowlongupahorz_far[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,12,7,13,14,15,10,2,1,16,17,6,5,18,19,9,8,20,21,12,11,22,23,3,2,17,24,1,6,19,16,5,9,21,18,8,12,23,20,11,15,25,22,26,27,14,13};
+static const MFace f_templestraightnarrowlongupahorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,127,0,0,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,127,0,0,0,0,0x76684F}, {36,4,0,0,-127,0,0,0x76684F}, {40,4,0,0,-127,0,0,0x76684F}, {44,4,0,0,-127,0,0,0x76684F}, {48,4,0,0,-127,0,0,0x76684F}, {52,4,0,0,-127,0,0,0x76684F}, {56,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongupbhorz_far[] = {{112,0,-32}, {120,0,-32}, {120,0,-40}, {112,0,-40}, {104,0,-8}, {120,0,-8}, {104,0,-32}, {88,0,0}, {120,0,0}, {88,0,-8}, {48,0,8}, {120,0,8}, {48,0,0}, {-120,0,40}, {120,0,40}, {-120,0,8}, {120,-160,-40}, {112,-160,-40}, {112,-160,-32}, {104,-160,-32}, {104,-160,-8}, {88,-160,-8}, {88,-160,0}, {48,-160,0}, {48,-160,8}, {-120,-160,8}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightnarrowlongupbhorz_far[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,8,12,13,14,11,15,3,2,16,17,6,0,18,19,9,4,20,21,12,7,22,23,15,10,24,25,26,27,14,13,23,24,10,12,21,22,7,9,19,20,4,6,17,18,0,3};
+static const MFace f_templestraightnarrowlongupbhorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,0,0,-127,0,0,0x76684F}, {28,4,0,0,-127,0,0,0x76684F}, {32,4,0,0,-127,0,0,0x76684F}, {36,4,0,0,-127,0,0,0x76684F}, {40,4,0,0,127,0,0,0x76684F}, {44,4,-127,0,0,0,0,0x76684F}, {48,4,-127,0,0,0,0,0x76684F}, {52,4,-127,0,0,0,0,0x76684F}, {56,4,-127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongdownhorz_far[] = {{-120,0,-8}, {120,0,-8}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,-8}, {120,-160,-8}};
+static const uint16_t i_templestraightnarrowlongdownhorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraightnarrowlongdownhorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongdownahorz_far[] = {{-120,0,-8}, {120,0,-8}, {120,0,-40}, {-120,0,-40}, {-120,0,0}, {-56,0,0}, {-56,0,-8}, {-120,0,8}, {-96,0,8}, {-96,0,0}, {-120,0,32}, {-104,0,32}, {-104,0,8}, {-120,0,40}, {-112,0,40}, {-112,0,32}, {-112,-160,40}, {-112,-160,32}, {-104,-160,32}, {-104,-160,8}, {-96,-160,8}, {-96,-160,0}, {-56,-160,0}, {-56,-160,-8}, {120,-160,-40}, {-120,-160,-40}, {120,-160,-8}, {-120,-160,40}};
+static const uint16_t i_templestraightnarrowlongdownahorz_far[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,12,7,13,14,15,10,15,14,16,17,12,11,18,19,9,8,20,21,6,5,22,23,3,2,24,25,23,26,1,6,21,22,5,9,19,20,8,12,17,18,11,15,27,16,14,13};
+static const MFace f_templestraightnarrowlongdownahorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,127,0,0,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,127,0,0,0,0,0x76684F}, {36,4,0,0,-127,0,0,0x76684F}, {40,4,0,0,127,0,0,0x76684F}, {44,4,0,0,127,0,0,0x76684F}, {48,4,0,0,127,0,0,0x76684F}, {52,4,0,0,127,0,0,0x76684F}, {56,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraightnarrowlongdownbhorz_far[] = {{-120,0,-8}, {120,0,-8}, {120,0,-40}, {-120,0,-40}, {48,0,0}, {120,0,0}, {48,0,-8}, {88,0,8}, {120,0,8}, {88,0,0}, {104,0,32}, {120,0,32}, {104,0,8}, {112,0,40}, {120,0,40}, {112,0,32}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,-8}, {48,-160,-8}, {48,-160,0}, {88,-160,0}, {88,-160,8}, {104,-160,8}, {104,-160,32}, {112,-160,32}, {112,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightnarrowlongdownbhorz_far[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,8,12,13,14,11,15,3,2,16,17,18,19,6,0,20,21,9,4,22,23,12,7,24,25,15,10,26,27,14,13,19,20,4,6,21,22,7,9,23,24,10,12,25,26,13,15};
+static const MFace f_templestraightnarrowlongdownbhorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0xA8977A}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,0,-127,0,0,0x76684F}, {24,4,0,0,127,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}, {32,4,0,0,127,0,0,0x76684F}, {36,4,0,0,127,0,0,0x76684F}, {40,4,0,0,127,0,0,0x76684F}, {44,4,-127,0,0,0,0,0x76684F}, {48,4,-127,0,0,0,0,0x76684F}, {52,4,-127,0,0,0,0,0x76684F}, {56,4,-127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightflametowerhighvert_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraightflametowerhighvert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraightflametowerhighvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraightflametowerhighhorz_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraightflametowerhighhorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraightflametowerhighhorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templetoplankcapavert_far[] = {{-40,0,0}, {40,0,0}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,0}, {40,-160,0}, {40,-160,-120}};
+static const uint16_t i_templetoplankcapavert_far[] = {0,1,2,3,4,5,0,3,5,6,1,0,2,1,6,7};
+static const MFace f_templetoplankcapavert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}, {12,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templetoplankcapahorz_far[] = {{-120,0,40}, {0,0,40}, {0,0,-40}, {-120,0,-40}, {0,-160,-40}, {-120,-160,-40}, {0,-160,40}, {-120,-160,40}};
+static const uint16_t i_templetoplankcapahorz_far[] = {0,1,2,3,3,2,4,5,2,1,6,4,7,6,1,0};
+static const MFace f_templetoplankcapahorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templetoplankcapbvert_far[] = {{-40,0,120}, {40,0,120}, {40,0,0}, {-40,0,0}, {-40,-160,0}, {-40,-160,120}, {40,-160,0}, {40,-160,120}};
+static const uint16_t i_templetoplankcapbvert_far[] = {0,1,2,3,4,5,0,3,3,2,6,4,2,1,7,6};
+static const MFace f_templetoplankcapbvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,0,0,-127,0,0,0x76684F}, {12,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templetoplankcapbhorz_far[] = {{0,0,40}, {120,0,40}, {120,0,-40}, {0,0,-40}, {120,-160,-40}, {0,-160,-40}, {0,-160,40}, {120,-160,40}};
+static const uint16_t i_templetoplankcapbhorz_far[] = {0,1,2,3,3,2,4,5,5,6,0,3,6,7,1,0};
+static const MFace f_templetoplankcapbhorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,-127,0,0,0,0,0x76684F}, {12,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighttreetripleftvert_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraighttreetripleftvert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraighttreetripleftvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraighttreetriprightvert_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraighttreetriprightvert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraighttreetriprightvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraighttreetripuphorz_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighttreetripuphorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraighttreetripuphorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighttreetripdownhorz_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighttreetripdownhorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraighttreetripdownhorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighttreejumpleftvert_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraighttreejumpleftvert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraighttreejumpleftvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraighttreejumprightvert_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraighttreejumprightvert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraighttreejumprightvert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraighttreejumpuphorz_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighttreejumpuphorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraighttreejumpuphorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighttreejumpdownhorz_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighttreejumpdownhorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraighttreejumpdownhorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_templestraighttreeslidevert_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_templestraighttreeslidevert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_templestraighttreeslidevert_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_templestraighttreeslidehorz_far[] = {{-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}, {120,-160,-40}, {-120,-160,-40}, {-120,-160,40}, {120,-160,40}};
+static const uint16_t i_templestraighttreeslidehorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_templestraighttreeslidehorz_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,0,-127,0,0,0x76684F}, {8,4,0,0,127,0,0,0x76684F}};
+static const MVert v_temple_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-160,-120}, {-40,-160,120}, {40,-160,120}, {40,-160,-120}};
+static const uint16_t i_temple_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_temple_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
+static const MVert v_plankstraightvert_far[] = {{-40,-60,120}, {40,-60,120}, {40,-60,-120}, {-40,-60,-120}, {-40,-220,-120}, {-40,-220,120}, {40,-220,120}, {40,-220,-120}};
+static const uint16_t i_plankstraightvert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_plankstraightvert_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,-127,0,0,0,0,0x5A3B20}, {8,4,127,0,0,0,0,0x5A3B20}};
+static const MVert v_plankstraighthorz_far[] = {{-120,-60,40}, {120,-60,40}, {120,-60,-40}, {-120,-60,-40}, {120,-220,-40}, {-120,-220,-40}, {-120,-220,40}, {120,-220,40}};
+static const uint16_t i_plankstraighthorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_plankstraighthorz_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,0,-127,0,0,0x5A3B20}, {8,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_plankturna_far[] = {{-40,-60,-40}, {40,-60,-40}, {40,-60,-120}, {-40,-60,-120}, {-120,-60,40}, {40,-60,40}, {-120,-60,-40}, {-40,-220,-120}, {-40,-220,-40}, {-120,-220,-40}, {40,-220,40}, {40,-220,-120}, {-120,-220,40}};
+static const uint16_t i_plankturna_far[] = {0,1,2,3,4,5,1,6,7,8,0,3,6,0,8,9,2,5,10,11,12,10,5,4};
+static const MFace f_plankturna_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}, {8,4,-127,0,0,0,0,0x5A3B20}, {12,4,0,0,-127,0,0,0x5A3B20}, {16,4,127,0,0,0,0,0x5A3B20}, {20,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_plankturnb_far[] = {{-40,-60,-40}, {40,-60,-40}, {40,-60,-120}, {-40,-60,-120}, {-40,-60,40}, {120,-60,40}, {120,-60,-40}, {-40,-220,-120}, {-40,-220,40}, {120,-220,-40}, {40,-220,-40}, {40,-220,-120}, {120,-220,40}};
+static const uint16_t i_plankturnb_far[] = {0,1,2,3,4,5,6,0,7,8,4,3,1,6,9,10,2,1,10,11,8,12,5,4};
+static const MFace f_plankturnb_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}, {8,4,-127,0,0,0,0,0x5A3B20}, {12,4,0,0,-127,0,0,0x5A3B20}, {16,4,127,0,0,0,0,0x5A3B20}, {20,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_plankturnc_far[] = {{-120,-60,40}, {40,-60,40}, {40,-60,-40}, {-120,-60,-40}, {-40,-60,120}, {40,-60,120}, {-40,-60,40}, {-40,-220,40}, {-40,-220,120}, {40,-220,-40}, {-120,-220,-40}, {40,-220,120}, {-120,-220,40}};
+static const uint16_t i_plankturnc_far[] = {0,1,2,3,4,5,1,6,7,8,4,6,3,2,9,10,2,5,11,9,12,7,6,0};
+static const MFace f_plankturnc_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}, {8,4,-127,0,0,0,0,0x5A3B20}, {12,4,0,0,-127,0,0,0x5A3B20}, {16,4,127,0,0,0,0,0x5A3B20}, {20,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_plankturnd_far[] = {{-40,-60,40}, {120,-60,40}, {120,-60,-40}, {-40,-60,-40}, {-40,-60,120}, {40,-60,120}, {40,-60,40}, {-40,-220,-40}, {-40,-220,120}, {120,-220,-40}, {40,-220,120}, {40,-220,40}, {120,-220,40}};
+static const uint16_t i_plankturnd_far[] = {0,1,2,3,4,5,6,0,7,8,4,3,3,2,9,7,6,5,10,11,11,12,1,6};
+static const MFace f_plankturnd_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}, {8,4,-127,0,0,0,0,0x5A3B20}, {12,4,0,0,-127,0,0,0x5A3B20}, {16,4,127,0,0,0,0,0x5A3B20}, {20,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_planktleft_far[] = {{-40,-60,-40}, {40,-60,-40}, {40,-60,-120}, {-40,-60,-120}, {-120,-60,40}, {40,-60,40}, {-120,-60,-40}, {-40,-60,120}, {40,-60,120}, {-40,-60,40}, {-40,-220,-120}, {-40,-220,-40}, {-40,-220,40}, {-40,-220,120}, {-120,-220,-40}, {40,-220,120}, {40,-220,-120}, {-120,-220,40}};
+static const uint16_t i_planktleft_far[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,0,3,12,13,7,9,6,0,11,14,2,8,15,16,17,12,9,4};
+static const MFace f_planktleft_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,-127,0,0,0,0,0x5A3B20}, {16,4,-127,0,0,0,0,0x5A3B20}, {20,4,0,0,-127,0,0,0x5A3B20}, {24,4,127,0,0,0,0,0x5A3B20}, {28,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_planktright_far[] = {{-40,-60,-40}, {40,-60,-40}, {40,-60,-120}, {-40,-60,-120}, {-40,-60,40}, {120,-60,40}, {120,-60,-40}, {-40,-60,120}, {40,-60,120}, {40,-60,40}, {-40,-220,-120}, {-40,-220,120}, {120,-220,-40}, {40,-220,-40}, {40,-220,-120}, {40,-220,120}, {40,-220,40}, {120,-220,40}};
+static const uint16_t i_planktright_far[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,7,3,1,6,12,13,2,1,13,14,9,8,15,16,16,17,5,9};
+static const MFace f_planktright_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,-127,0,0,0,0,0x5A3B20}, {16,4,0,0,-127,0,0,0x5A3B20}, {20,4,127,0,0,0,0,0x5A3B20}, {24,4,127,0,0,0,0,0x5A3B20}, {28,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_planktup_far[] = {{-120,-60,40}, {120,-60,40}, {120,-60,-40}, {-120,-60,-40}, {-40,-60,120}, {40,-60,120}, {40,-60,40}, {-40,-60,40}, {-40,-220,40}, {-40,-220,120}, {120,-220,-40}, {-120,-220,-40}, {40,-220,120}, {40,-220,40}, {-120,-220,40}, {120,-220,40}};
+static const uint16_t i_planktup_far[] = {0,1,2,3,4,5,6,7,8,9,4,7,3,2,10,11,6,5,12,13,14,8,7,0,13,15,1,6};
+static const MFace f_planktup_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}, {8,4,-127,0,0,0,0,0x5A3B20}, {12,4,0,0,-127,0,0,0x5A3B20}, {16,4,127,0,0,0,0,0x5A3B20}, {20,4,0,0,127,0,0,0x5A3B20}, {24,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_planktdown_far[] = {{-40,-60,-40}, {40,-60,-40}, {40,-60,-120}, {-40,-60,-120}, {-120,-60,40}, {120,-60,40}, {120,-60,-40}, {-120,-60,-40}, {-40,-220,-120}, {-40,-220,-40}, {-120,-220,-40}, {120,-220,-40}, {40,-220,-40}, {40,-220,-120}, {-120,-220,40}, {120,-220,40}};
+static const uint16_t i_planktdown_far[] = {0,1,2,3,4,5,6,7,8,9,0,3,7,0,9,10,1,6,11,12,2,1,12,13,14,15,5,4};
+static const MFace f_planktdown_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}, {8,4,-127,0,0,0,0,0x5A3B20}, {12,4,0,0,-127,0,0,0x5A3B20}, {16,4,0,0,-127,0,0,0x5A3B20}, {20,4,127,0,0,0,0,0x5A3B20}, {24,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_plankstraightholevert_far[] = {};
+static const uint16_t i_plankstraightholevert_far[] = {};
+static const MFace f_plankstraightholevert_far[] = {};
+static const MVert v_plankstraightholehorz_far[] = {};
+static const uint16_t i_plankstraightholehorz_far[] = {};
+static const MFace f_plankstraightholehorz_far[] = {};
+static const MVert v_plankstraighttowervert_far[] = {{-40,-60,120}, {40,-60,120}, {40,-60,-120}, {-40,-60,-120}, {-40,-220,-120}, {-40,-220,120}, {40,-220,120}, {40,-220,-120}};
+static const uint16_t i_plankstraighttowervert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_plankstraighttowervert_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,-127,0,0,0,0,0x5A3B20}, {8,4,127,0,0,0,0,0x5A3B20}};
+static const MVert v_plankstraighttowerhorz_far[] = {{-120,-60,40}, {120,-60,40}, {120,-60,-40}, {-120,-60,-40}, {120,-220,-40}, {-120,-220,-40}, {-120,-220,40}, {120,-220,40}};
+static const uint16_t i_plankstraighttowerhorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_plankstraighttowerhorz_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,0,-127,0,0,0x5A3B20}, {8,4,0,0,127,0,0,0x5A3B20}};
+static const MVert v_cliffstraightvert_far[] = {{-32,60,120}, {24,60,120}, {24,60,-120}, {-32,60,-120}, {-32,-160,-120}, {-32,-160,120}, {24,-160,120}, {24,-160,-120}};
+static const uint16_t i_cliffstraightvert_far[] = {0,1,2,3,4,5,0,3,2,1,6,7};
+static const MFace f_cliffstraightvert_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,-127,0,0,0,0,0x6C655A}, {8,4,127,0,0,0,0,0x6C655A}};
+static const MVert v_cliffstraighthorz_far[] = {{-120,60,24}, {120,60,24}, {120,60,-32}, {-120,60,-32}, {120,-160,-32}, {-120,-160,-32}, {-120,-160,24}, {120,-160,24}};
+static const uint16_t i_cliffstraighthorz_far[] = {0,1,2,3,3,2,4,5,6,7,1,0};
+static const MFace f_cliffstraighthorz_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,0,-127,0,0,0x6C655A}, {8,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_cliffturna_far[] = {{-32,60,-32}, {24,60,-32}, {24,60,-120}, {-32,60,-120}, {-120,60,24}, {24,60,24}, {-120,60,-32}, {-32,-160,-120}, {-32,-160,-32}, {-120,-160,-32}, {24,-160,24}, {24,-160,-120}, {-120,-160,24}};
+static const uint16_t i_cliffturna_far[] = {0,1,2,3,4,5,1,6,7,8,0,3,6,0,8,9,2,5,10,11,12,10,5,4};
+static const MFace f_cliffturna_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,-127,0,0,0,0,0x6C655A}, {12,4,0,0,-127,0,0,0x6C655A}, {16,4,127,0,0,0,0,0x6C655A}, {20,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_cliffturnb_far[] = {{-32,60,-32}, {24,60,-32}, {24,60,-120}, {-32,60,-120}, {-32,60,24}, {120,60,24}, {120,60,-32}, {-32,-160,-120}, {-32,-160,24}, {120,-160,-32}, {24,-160,-32}, {24,-160,-120}, {120,-160,24}};
+static const uint16_t i_cliffturnb_far[] = {0,1,2,3,4,5,6,0,7,8,4,3,1,6,9,10,2,1,10,11,8,12,5,4};
+static const MFace f_cliffturnb_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,-127,0,0,0,0,0x6C655A}, {12,4,0,0,-127,0,0,0x6C655A}, {16,4,127,0,0,0,0,0x6C655A}, {20,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_cliffturnc_far[] = {{-120,60,24}, {24,60,24}, {24,60,-32}, {-120,60,-32}, {-32,60,120}, {24,60,120}, {-32,60,24}, {-32,-160,24}, {-32,-160,120}, {24,-160,-32}, {-120,-160,-32}, {24,-160,120}, {-120,-160,24}};
+static const uint16_t i_cliffturnc_far[] = {0,1,2,3,4,5,1,6,7,8,4,6,3,2,9,10,2,5,11,9,12,7,6,0};
+static const MFace f_cliffturnc_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,-127,0,0,0,0,0x6C655A}, {12,4,0,0,-127,0,0,0x6C655A}, {16,4,127,0,0,0,0,0x6C655A}, {20,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_cliffturnd_far[] = {{-24,60,-24}, {120,60,-24}, {120,60,-32}, {-24,60,-32}, {-32,60,24}, {120,60,24}, {-32,60,-24}, {-32,60,120}, {24,60,120}, {24,60,24}, {-32,-160,-24}, {-32,-160,120}, {120,-160,-32}, {-24,-160,-32}, {-24,-160,-24}, {24,-160,120}, {24,-160,24}, {120,-160,24}};
+static const uint16_t i_cliffturnd_far[] = {0,1,2,3,4,5,1,6,7,8,9,4,10,11,7,6,3,2,12,13,13,14,0,3,6,0,14,10,9,8,15,16,16,17,5,9};
+static const MFace f_cliffturnd_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,-127,0,0,0,0,0x6C655A}, {16,4,0,0,-127,0,0,0x6C655A}, {20,4,-127,0,0,0,0,0x6C655A}, {24,4,0,0,-127,0,0,0x6C655A}, {28,4,127,0,0,0,0,0x6C655A}, {32,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftleft_far[] = {{-32,60,-32}, {24,60,-32}, {24,60,-120}, {-32,60,-120}, {-120,60,24}, {24,60,24}, {-120,60,-32}, {-32,60,120}, {24,60,120}, {-32,60,24}, {-32,-160,-120}, {-32,-160,-32}, {-32,-160,24}, {-32,-160,120}, {-120,-160,-32}, {24,-160,120}, {24,-160,-120}, {-120,-160,24}};
+static const uint16_t i_clifftleft_far[] = {0,1,2,3,4,5,1,6,7,8,5,9,10,11,0,3,12,13,7,9,6,0,11,14,2,8,15,16,17,12,9,4};
+static const MFace f_clifftleft_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,-127,0,0,0,0,0x6C655A}, {16,4,-127,0,0,0,0,0x6C655A}, {20,4,0,0,-127,0,0,0x6C655A}, {24,4,127,0,0,0,0,0x6C655A}, {28,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftright_far[] = {{-32,60,-32}, {24,60,-32}, {24,60,-120}, {-32,60,-120}, {-32,60,24}, {120,60,24}, {120,60,-32}, {-32,60,120}, {24,60,120}, {24,60,24}, {-32,-160,-120}, {-32,-160,120}, {120,-160,-32}, {24,-160,-32}, {24,-160,-120}, {24,-160,120}, {24,-160,24}, {120,-160,24}};
+static const uint16_t i_clifftright_far[] = {0,1,2,3,4,5,6,0,7,8,9,4,10,11,7,3,1,6,12,13,2,1,13,14,9,8,15,16,16,17,5,9};
+static const MFace f_clifftright_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,-127,0,0,0,0,0x6C655A}, {16,4,0,0,-127,0,0,0x6C655A}, {20,4,127,0,0,0,0,0x6C655A}, {24,4,127,0,0,0,0,0x6C655A}, {28,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftup_far[] = {{-120,60,24}, {120,60,24}, {120,60,-32}, {-120,60,-32}, {-32,60,120}, {24,60,120}, {24,60,24}, {-32,60,24}, {-32,-160,24}, {-32,-160,120}, {120,-160,-32}, {-120,-160,-32}, {24,-160,120}, {24,-160,24}, {-120,-160,24}, {120,-160,24}};
+static const uint16_t i_clifftup_far[] = {0,1,2,3,4,5,6,7,8,9,4,7,3,2,10,11,6,5,12,13,14,8,7,0,13,15,1,6};
+static const MFace f_clifftup_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,-127,0,0,0,0,0x6C655A}, {12,4,0,0,-127,0,0,0x6C655A}, {16,4,127,0,0,0,0,0x6C655A}, {20,4,0,0,127,0,0,0x6C655A}, {24,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftdown_far[] = {{-32,60,-32}, {24,60,-32}, {24,60,-120}, {-32,60,-120}, {-120,60,24}, {120,60,24}, {120,60,-32}, {-120,60,-32}, {-32,-160,-120}, {-32,-160,-32}, {-120,-160,-32}, {120,-160,-32}, {24,-160,-32}, {24,-160,-120}, {-120,-160,24}, {120,-160,24}};
+static const uint16_t i_clifftdown_far[] = {0,1,2,3,4,5,6,7,8,9,0,3,7,0,9,10,1,6,11,12,2,1,12,13,14,15,5,4};
+static const MFace f_clifftdown_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,-127,0,0,0,0,0x6C655A}, {12,4,0,0,-127,0,0,0x6C655A}, {16,4,0,0,-127,0,0,0x6C655A}, {20,4,127,0,0,0,0,0x6C655A}, {24,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftotemplecapavert_far[] = {{-32,60,-24}, {24,60,-24}, {24,60,-120}, {-32,60,-120}, {-24,60,-16}, {24,60,-16}, {-24,60,-24}, {-32,-160,-120}, {-32,-160,-24}, {-24,-160,-24}, {-24,-160,-16}, {24,-160,-16}, {24,-160,-120}};
+static const uint16_t i_clifftotemplecapavert_far[] = {0,1,2,3,4,5,1,6,7,8,0,3,8,9,6,0,9,10,4,6,10,11,5,4,2,5,11,12};
+static const MFace f_clifftotemplecapavert_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,-127,0,0,0,0,0x6C655A}, {12,4,0,0,127,0,0,0x6C655A}, {16,4,-127,0,0,0,0,0x6C655A}, {20,4,0,0,127,0,0,0x6C655A}, {24,4,127,0,0,0,0,0x6C655A}};
+static const MVert v_clifftotemplecapahorz_far[] = {{-120,60,-24}, {-24,60,-24}, {-24,60,-32}, {-120,60,-32}, {-120,60,24}, {-16,60,24}, {-16,60,-24}, {-24,-160,-32}, {-120,-160,-32}, {-24,-160,-24}, {-16,-160,-24}, {-16,-160,24}, {-120,-160,24}};
+static const uint16_t i_clifftotemplecapahorz_far[] = {0,1,2,3,4,5,6,0,3,2,7,8,2,1,9,7,1,6,10,9,6,5,11,10,12,11,5,4};
+static const MFace f_clifftotemplecapahorz_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,0,0,-127,0,0,0x6C655A}, {12,4,127,0,0,0,0,0x6C655A}, {16,4,0,0,-127,0,0,0x6C655A}, {20,4,127,0,0,0,0,0x6C655A}, {24,4,0,0,127,0,0,0x6C655A}};
+static const MVert v_clifftotemplecapbvert_far[] = {{-24,60,24}, {24,60,24}, {24,60,16}, {-24,60,16}, {-32,60,120}, {24,60,120}, {-32,60,24}, {-32,-160,24}, {-32,-160,120}, {-24,-160,16}, {-24,-160,24}, {24,-160,16}, {24,-160,120}};
+static const uint16_t i_clifftotemplecapbvert_far[] = {0,1,2,3,4,5,1,6,7,8,4,6,9,10,0,3,3,2,11,9,2,5,12,11,6,0,10,7};
+static const MFace f_clifftotemplecapbvert_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,-127,0,0,0,0,0x6C655A}, {12,4,-127,0,0,0,0,0x6C655A}, {16,4,0,0,-127,0,0,0x6C655A}, {20,4,127,0,0,0,0,0x6C655A}, {24,4,0,0,-127,0,0,0x6C655A}};
+static const MVert v_clifftotemplecapbhorz_far[] = {{24,60,-24}, {120,60,-24}, {120,60,-32}, {24,60,-32}, {16,60,24}, {120,60,24}, {16,60,-24}, {120,-160,-32}, {24,-160,-32}, {24,-160,-24}, {16,-160,-24}, {16,-160,24}, {120,-160,24}};
+static const uint16_t i_clifftotemplecapbhorz_far[] = {0,1,2,3,4,5,1,6,3,2,7,8,6,0,9,10,10,11,4,6,11,12,5,4,8,9,0,3};
+static const MFace f_clifftotemplecapbhorz_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,0,0,-127,0,0,0x6C655A}, {12,4,0,0,-127,0,0,0x6C655A}, {16,4,-127,0,0,0,0,0x6C655A}, {20,4,0,0,127,0,0,0x6C655A}, {24,4,-127,0,0,0,0,0x6C655A}};
+static const MVert v_cliffstraighttreevert_far[] = {{-32,60,-16}, {24,60,-16}, {24,60,-120}, {-32,60,-120}, {-40,60,16}, {40,60,16}, {40,60,-16}, {-40,60,-16}, {-32,60,120}, {24,60,120}, {24,60,16}, {-32,60,16}, {-40,-160,-16}, {-40,-160,16}, {-32,-160,-120}, {-32,-160,-16}, {-32,-160,16}, {-32,-160,120}, {40,-160,-16}, {24,-160,-16}, {24,-160,16}, {40,-160,16}, {24,-160,-120}, {24,-160,120}};
+static const uint16_t i_cliffstraighttreevert_far[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,4,7,14,15,0,3,16,17,8,11,7,0,15,12,1,6,18,19,13,16,11,4,20,21,5,10,2,1,19,22,10,9,23,20,6,5,21,18};
+static const MFace f_cliffstraighttreevert_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,-127,0,0,0,0,0x6C655A}, {16,4,-127,0,0,0,0,0x6C655A}, {20,4,-127,0,0,0,0,0x6C655A}, {24,4,0,0,-127,0,0,0x6C655A}, {28,4,0,0,-127,0,0,0x6C655A}, {32,4,0,0,127,0,0,0x6C655A}, {36,4,0,0,127,0,0,0x6C655A}, {40,4,127,0,0,0,0,0x6C655A}, {44,4,127,0,0,0,0,0x6C655A}, {48,4,127,0,0,0,0,0x6C655A}};
+static const MVert v_cliffstraighttreehorz_far[] = {{-16,60,-32}, {16,60,-32}, {16,60,-40}, {-16,60,-40}, {-120,60,24}, {120,60,24}, {120,60,-32}, {-120,60,-32}, {-16,60,40}, {16,60,40}, {16,60,24}, {-16,60,24}, {16,-160,-40}, {-16,-160,-40}, {-16,-160,-32}, {-120,-160,-32}, {120,-160,-32}, {16,-160,-32}, {-16,-160,24}, {-16,-160,40}, {16,-160,40}, {16,-160,24}, {-120,-160,24}, {120,-160,24}};
+static const uint16_t i_cliffstraighttreehorz_far[] = {0,1,2,3,4,5,6,7,8,9,10,11,3,2,12,13,7,0,14,15,1,6,16,17,13,14,0,3,18,19,8,11,2,1,17,12,10,9,20,21,22,18,11,4,21,23,5,10,19,20,9,8};
+static const MFace f_cliffstraighttreehorz_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,0,-127,0,0,0x6C655A}, {16,4,0,0,-127,0,0,0x6C655A}, {20,4,0,0,-127,0,0,0x6C655A}, {24,4,-127,0,0,0,0,0x6C655A}, {28,4,-127,0,0,0,0,0x6C655A}, {32,4,127,0,0,0,0,0x6C655A}, {36,4,127,0,0,0,0,0x6C655A}, {40,4,0,0,127,0,0,0x6C655A}, {44,4,0,0,127,0,0,0x6C655A}, {48,4,0,0,127,0,0,0x6C655A}};
static const MVert v_runner_run0[] = {{-5,1,-2}, {-5,1,2}, {-5,18,2}, {-5,18,-2}, {-1,1,-2}, {-1,18,-2}, {-1,18,2}, {-1,1,2}, {-5,1,3}, {-5,5,3}, {-5,5,-2}, {0,1,-2}, {0,5,-2}, {0,5,3}, {0,1,3}, {1,1,-2}, {1,1,2}, {1,18,2}, {1,18,-2}, {5,1,-2}, {5,18,-2}, {5,18,2}, {5,1,2}, {5,5,-2}, {5,5,3}, {5,1,3}, {-6,18,-3}, {-6,17,3}, {-6,20,4}, {-6,21,-3}, {6,18,-3}, {6,21,-3}, {6,20,4}, {6,17,3}, {-6,31,6}, {-6,32,-1}, {6,32,-1}, {6,31,6}, {-3,32,-1}, {-3,31,6}, {-3,37,7}, {-3,38,0}, {3,32,-1}, {3,38,0}, {3,37,7}, {3,31,6}, {-3,36,0}, {-3,35,6}, {-3,38,7}, {-3,39,0}, {3,36,0}, {3,39,0}, {3,38,7}, {3,35,6}, {-9,19,-2}, {-9,18,2}, {-9,31,4}, {-9,31,1}, {-6,19,-2}, {-6,31,1}, {-6,31,4}, {-6,18,2}, {-9,17,-2}, {-9,16,1}, {-6,17,-2}, {-6,16,1}, {6,19,-2}, {6,18,2}, {6,31,4}, {6,31,1}, {9,19,-2}, {9,31,1}, {9,31,4}, {9,18,2}, {6,17,-2}, {6,16,1}, {9,17,-2}, {9,16,1}};
static const uint16_t i_runner_run0[] = {0,1,2,3,4,5,6,7,0,3,5,4,1,7,6,2,0,4,7,1,3,2,6,5,0,8,9,10,11,12,13,14,0,10,12,11,8,14,13,9,0,11,14,8,10,9,13,12,15,16,17,18,19,20,21,22,15,18,20,19,16,22,21,17,15,19,22,16,18,17,21,20,11,14,13,12,19,23,24,25,11,12,23,19,14,25,24,13,11,19,25,14,12,13,24,23,26,27,28,29,30,31,32,33,27,33,32,28,26,30,33,27,29,28,32,31,29,28,34,35,31,36,37,32,28,32,37,34,29,31,32,28,35,34,37,36,38,39,40,41,42,43,44,45,38,41,43,42,39,45,44,40,38,42,45,39,41,40,44,43,46,47,48,49,50,51,52,53,47,53,52,48,46,50,53,47,49,48,52,51,54,55,56,57,58,59,60,61,54,57,59,58,55,61,60,56,54,58,61,55,57,56,60,59,62,63,55,54,64,58,61,65,62,54,58,64,63,65,61,55,62,64,65,63,54,55,61,58,66,67,68,69,70,71,72,73,66,69,71,70,67,73,72,68,66,70,73,67,69,68,72,71,74,75,67,66,76,70,73,77,74,66,70,76,75,77,73,67,74,76,77,75,66,67,73,70};
static const MFace f_runner_run0[] = {{0,4,-127,0,0,0,0,0x6F5B42}, {4,4,127,0,0,0,0,0x6F5B42}, {8,4,0,0,-127,0,0,0x6F5B42}, {12,4,0,0,127,0,0,0x6F5B42}, {16,4,0,-127,0,0,0,0x6F5B42}, {20,4,0,127,0,0,0,0x6F5B42}, {24,4,-127,0,0,0,0,0x3A2E24}, {28,4,127,0,0,0,0,0x3A2E24}, {32,4,0,0,-127,0,0,0x3A2E24}, {36,4,0,0,127,0,0,0x3A2E24}, {40,4,0,-127,0,0,0,0x3A2E24}, {44,4,0,127,0,0,0,0x3A2E24}, {48,4,-127,0,0,0,0,0x6F5B42}, {52,4,127,0,0,0,0,0x6F5B42}, {56,4,0,0,-127,0,0,0x6F5B42}, {60,4,0,0,127,0,0,0x6F5B42}, {64,4,0,-127,0,0,0,0x6F5B42}, {68,4,0,127,0,0,0,0x6F5B42}, {72,4,-127,0,0,0,0,0x3A2E24}, {76,4,127,0,0,0,0,0x3A2E24}, {80,4,0,0,-127,0,0,0x3A2E24}, {84,4,0,0,127,0,0,0x3A2E24}, {88,4,0,-127,0,0,0,0x3A2E24}, {92,4,0,127,0,0,0,0x3A2E24}, {96,4,-127,0,0,0,0,0x2E2620}, {100,4,127,0,0,0,0,0x2E2620}, {104,4,0,-23,125,0,0,0x2E2620}, {108,4,0,-125,-23,0,0,0x2E2620}, {112,4,0,125,23,0,0,0x2E2620}, {116,4,-127,0,0,0,0,0x5B7F99}, {120,4,127,0,0,0,0,0x5B7F99}, {124,4,0,-23,125,0,0,0x5B7F99}, {128,4,0,-125,-23,0,0,0x5B7F99}, {132,4,0,125,23,0,0,0x5B7F99}, {136,4,-127,0,0,0,0,0xD8A476}, {140,4,127,0,0,0,0,0xD8A476}, {144,4,0,23,-125,0,0,0xD8A476}, {148,4,0,-23,125,0,0,0x3B2A1C}, {152,4,0,-125,-23,0,0,0xD8A476}, {156,4,0,125,23,0,0,0xD8A476}, {160,4,-127,0,0,0,0,0x3B2A1C}, {164,4,127,0,0,0,0,0x3B2A1C}, {168,4,0,-23,125,0,0,0x3B2A1C}, {172,4,0,-125,-23,0,0,0x3B2A1C}, {176,4,0,125,23,0,0,0x3B2A1C}, {180,4,-127,0,0,0,0,0x5B7F99}, {184,4,127,0,0,0,0,0x5B7F99}, {188,4,0,23,-125,0,0,0x5B7F99}, {192,4,0,-23,125,0,0,0x5B7F99}, {196,4,0,-125,-23,0,0,0x5B7F99}, {200,4,0,125,23,0,0,0x5B7F99}, {204,4,-127,0,0,0,0,0xD8A476}, {208,4,127,0,0,0,0,0xD8A476}, {212,4,0,23,-125,0,0,0xD8A476}, {216,4,0,-23,125,0,0,0xD8A476}, {220,4,0,-125,-23,0,0,0xD8A476}, {224,4,0,125,23,0,0,0xD8A476}, {228,4,-127,0,0,0,0,0x5B7F99}, {232,4,127,0,0,0,0,0x5B7F99}, {236,4,0,23,-125,0,0,0x5B7F99}, {240,4,0,-23,125,0,0,0x5B7F99}, {244,4,0,-125,-23,0,0,0x5B7F99}, {248,4,0,125,23,0,0,0x5B7F99}, {252,4,-127,0,0,0,0,0xD8A476}, {256,4,127,0,0,0,0,0xD8A476}, {260,4,0,23,-125,0,0,0xD8A476}, {264,4,0,-23,125,0,0,0xD8A476}, {268,4,0,-125,-23,0,0,0xD8A476}, {272,4,0,125,23,0,0,0xD8A476}};
@@ -42,207 +570,18 @@ static const MFace f_pursuer_run2[] = {{0,4,-127,0,0,0,0,0x3E3631}, {4,4,127,0,0
static const MVert v_pursuer_run3[] = {{-8,15,-5}, {-8,7,3}, {-8,19,14}, {-8,26,6}, {8,15,-5}, {8,26,6}, {8,19,14}, {8,7,3}, {-5,24,7}, {-5,18,14}, {-5,24,19}, {-5,30,12}, {5,24,7}, {5,30,12}, {5,24,19}, {5,18,14}, {-4,19,14}, {-4,18,16}, {-4,21,19}, {-4,23,18}, {4,19,14}, {4,23,18}, {4,21,19}, {4,18,16}, {-3,20,17}, {-3,19,18}, {-3,20,19}, {-3,21,18}, {-1,20,17}, {-1,21,18}, {-1,20,19}, {-1,19,18}, {1,20,17}, {1,19,18}, {1,20,19}, {1,21,18}, {3,20,17}, {3,21,18}, {3,20,19}, {3,19,18}, {-6,2,7}, {-6,5,10}, {-6,15,1}, {-6,11,-3}, {-2,2,7}, {-2,11,-3}, {-2,15,1}, {-2,5,10}, {2,5,-10}, {2,2,-7}, {2,11,3}, {2,15,-1}, {6,5,-10}, {6,15,-1}, {6,11,3}, {6,2,-7}, {-12,15,-11}, {-12,11,-9}, {-12,20,10}, {-12,24,9}, {-8,15,-11}, {-8,24,9}, {-8,20,10}, {-8,11,-9}, {8,4,20}, {8,6,23}, {8,23,10}, {8,21,7}, {12,4,20}, {12,21,7}, {12,23,10}, {12,6,23}};
static const uint16_t i_pursuer_run3[] = {0,1,2,3,4,5,6,7,0,3,5,4,1,7,6,2,0,4,7,1,3,2,6,5,8,9,10,11,12,13,14,15,8,11,13,12,9,15,14,10,8,12,15,9,11,10,14,13,16,17,18,19,20,21,22,23,16,19,21,20,17,23,22,18,19,18,22,21,24,25,26,27,28,29,30,31,24,27,29,28,25,31,30,26,27,26,30,29,32,33,34,35,36,37,38,39,32,35,37,36,33,39,38,34,35,34,38,37,40,41,42,43,44,45,46,47,40,43,45,44,41,47,46,42,40,44,47,41,43,42,46,45,48,49,50,51,52,53,54,55,48,51,53,52,49,55,54,50,48,52,55,49,51,50,54,53,56,57,58,59,60,61,62,63,56,59,61,60,57,63,62,58,56,60,63,57,59,58,62,61,64,65,66,67,68,69,70,71,64,67,69,68,65,71,70,66,64,68,71,65,67,66,70,69};
static const MFace f_pursuer_run3[] = {{0,4,-127,0,0,0,0,0x3E3631}, {4,4,127,0,0,0,0,0x3E3631}, {8,4,0,87,-93,0,0,0x3E3631}, {12,4,0,-87,93,0,0,0x2F2925}, {16,4,0,-93,-87,0,0,0x3E3631}, {20,4,0,93,87,0,0,0x3E3631}, {24,4,-127,0,0,0,0,0x3E3631}, {28,4,127,0,0,0,0,0x3E3631}, {32,4,0,87,-93,0,0,0x3E3631}, {36,4,0,-87,93,0,0,0x3E3631}, {40,4,0,-93,-87,0,0,0x3E3631}, {44,4,0,93,87,0,0,0x3E3631}, {48,4,-127,0,0,0,0,0x8C7262}, {52,4,127,0,0,0,0,0x8C7262}, {56,4,0,87,-93,0,0,0x8C7262}, {60,4,0,-87,93,0,0,0x8C7262}, {64,4,0,93,87,0,0,0x8C7262}, {68,4,-127,0,0,0,0,0xF0482A}, {72,4,127,0,0,0,0,0xF0482A}, {76,4,0,87,-93,0,0,0xF0482A}, {80,4,0,-87,93,0,0,0xF0482A}, {84,4,0,93,87,0,0,0xF0482A}, {88,4,-127,0,0,0,0,0xF0482A}, {92,4,127,0,0,0,0,0xF0482A}, {96,4,0,87,-93,0,0,0xF0482A}, {100,4,0,-87,93,0,0,0xF0482A}, {104,4,0,93,87,0,0,0xF0482A}, {108,4,-127,0,0,0,0,0x2F2925}, {112,4,127,0,0,0,0,0x2F2925}, {116,4,0,-91,-88,0,0,0x2F2925}, {120,4,0,91,88,0,0,0x2F2925}, {124,4,0,-88,91,0,0,0x2F2925}, {128,4,0,88,-91,0,0,0x2F2925}, {132,4,-127,0,0,0,0,0x2F2925}, {136,4,127,0,0,0,0,0x2F2925}, {140,4,0,91,-88,0,0,0x2F2925}, {144,4,0,-91,88,0,0,0x2F2925}, {148,4,0,-88,-91,0,0,0x2F2925}, {152,4,0,88,91,0,0,0x2F2925}, {156,4,-127,0,0,0,0,0x3E3631}, {160,4,127,0,0,0,0,0x3E3631}, {164,4,0,116,-52,0,0,0x3E3631}, {168,4,0,-116,52,0,0,0x3E3631}, {172,4,0,-52,-116,0,0,0x3E3631}, {176,4,0,52,116,0,0,0x3E3631}, {180,4,-127,0,0,0,0,0x3E3631}, {184,4,127,0,0,0,0,0x3E3631}, {188,4,0,-77,-101,0,0,0x3E3631}, {192,4,0,77,101,0,0,0x3E3631}, {196,4,0,-101,77,0,0,0x3E3631}, {200,4,0,101,-77,0,0,0x3E3631}};
-static const MVert v_temple_straight[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-168,-120}, {-40,-168,120}, {40,-168,120}, {40,-168,-120}, {-40,6,-34}, {-40,6,120}, {-40,0,-34}, {-120,0,120}, {-120,6,120}, {-120,6,-34}, {-120,0,-34}, {34,6,40}, {34,6,120}, {34,0,120}, {34,0,40}, {-120,6,40}, {-120,0,40}};
-static const uint16_t i_temple_straight[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,12,3,14,15,2,13,16,17,18,19,12,20,21,22,23,24,19,22,21,12,12,21,24,20,23,22,19,18,25,26,27,28,21,22,29,30,26,22,21,27,27,21,30,28,29,22,26,25};
-static const MFace f_temple_straight[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,127,0,0,0,0,0x8B7B60}, {36,4,-127,0,0,0,0,0x8B7B60}, {40,4,0,0,127,0,0,0x8B7B60}, {44,4,0,-127,0,0,0,0x8B7B60}, {48,4,0,127,0,0,0,0x8B7B60}, {52,4,127,0,0,0,0,0x8B7B60}, {56,4,-127,0,0,0,0,0x8B7B60}, {60,4,0,0,127,0,0,0x8B7B60}, {64,4,0,-127,0,0,0,0x8B7B60}, {68,4,0,127,0,0,0,0x8B7B60}};
-static const MVert v_temple_straight_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-96,-120}, {-40,-96,120}, {40,-96,120}, {40,-96,-120}};
-static const uint16_t i_temple_straight_far[] = {0,1,2,3,0,3,4,5,2,1,6,7};
-static const MFace f_temple_straight_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}};
-static const MVert v_temple_hole[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-40,-168,-120}, {-40,-168,-40}, {40,-168,-40}, {40,-168,-120}, {-40,0,-34}, {-40,6,-40}, {-40,6,-34}, {-120,0,-34}, {-120,6,-34}, {-120,6,-40}, {-120,0,-40}, {34,0,40}, {34,0,-40}, {34,6,-40}, {34,6,40}, {-120,0,40}, {-120,6,40}, {-40,0,120}, {40,0,120}, {40,0,40}, {-40,0,40}, {-40,-168,40}, {-40,-168,120}, {40,-168,120}, {40,-168,40}, {-40,6,120}, {40,0,-34}, {40,6,-34}, {40,6,120}, {34,0,120}, {34,6,120}, {40,6,40}};
-static const uint16_t i_temple_hole[] = {0,1,2,3,0,3,4,5,2,1,6,7,8,0,9,10,11,12,13,14,0,14,13,9,8,11,14,0,10,9,13,12,15,16,17,18,19,20,13,14,16,14,13,17,15,19,14,16,18,17,13,20,21,22,23,24,21,24,25,26,23,22,27,28,8,21,29,10,30,31,32,22,21,22,32,29,8,30,22,21,10,29,32,31,15,33,34,18,23,35,32,22,33,22,32,34,15,23,22,33,18,34,32,35,5,6,1,0,28,25,24,23};
-static const MFace f_temple_hole[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}, {12,4,127,0,0,0,0,0x8B7B60}, {16,4,-127,0,0,0,0,0x8B7B60}, {20,4,0,0,-127,0,0,0x8B7B60}, {24,4,0,-127,0,0,0,0x8B7B60}, {28,4,0,127,0,0,0,0x8B7B60}, {32,4,127,0,0,0,0,0x8B7B60}, {36,4,-127,0,0,0,0,0x8B7B60}, {40,4,0,0,-127,0,0,0x8B7B60}, {44,4,0,-127,0,0,0,0x8B7B60}, {48,4,0,127,0,0,0,0x8B7B60}, {52,4,0,127,0,0,0,0xA8977A}, {56,4,-127,0,0,0,0,0x76684F}, {60,4,127,0,0,0,0,0x76684F}, {64,4,-127,0,0,0,0,0x8B7B60}, {68,4,127,0,0,0,0,0x8B7B60}, {72,4,0,0,127,0,0,0x8B7B60}, {76,4,0,-127,0,0,0,0x8B7B60}, {80,4,0,127,0,0,0,0x8B7B60}, {84,4,-127,0,0,0,0,0x8B7B60}, {88,4,127,0,0,0,0,0x8B7B60}, {92,4,0,0,127,0,0,0x8B7B60}, {96,4,0,-127,0,0,0,0x8B7B60}, {100,4,0,127,0,0,0,0x8B7B60}, {104,4,0,0,127,0,0,0x76684F}, {108,4,0,0,-127,0,0,0x76684F}};
-static const MVert v_temple_hole_far[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-40,0,120}, {40,0,120}, {40,0,40}, {-40,0,40}, {-40,-96,-120}, {-40,-96,120}, {40,-96,120}, {40,-96,-120}};
-static const uint16_t i_temple_hole_far[] = {0,1,2,3,4,5,6,7,4,3,8,9,2,5,10,11};
-static const MFace f_temple_hole_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,-127,0,0,0,0,0x76684F}, {12,4,127,0,0,0,0,0x76684F}};
-static const MVert v_temple_hole_long[] = {{-40,0,-68}, {40,0,-68}, {40,0,-120}, {-40,0,-120}, {-40,-168,-120}, {-40,-168,-68}, {40,-168,-68}, {40,-168,-120}, {-40,0,-34}, {-40,6,-68}, {-40,6,-34}, {-120,0,-34}, {-120,6,-34}, {-120,6,-68}, {-120,0,-68}, {34,0,40}, {34,0,-68}, {34,6,-68}, {34,6,40}, {-120,0,40}, {-120,6,40}, {-40,0,120}, {40,0,120}, {40,0,68}, {-40,0,68}, {-40,-168,68}, {-40,-168,120}, {40,-168,120}, {40,-168,68}, {-40,6,120}, {68,0,-34}, {68,6,-34}, {68,6,120}, {68,0,120}, {34,0,120}, {34,6,120}, {68,0,40}, {68,6,40}};
-static const uint16_t i_temple_hole_long[] = {0,1,2,3,0,3,4,5,2,1,6,7,8,0,9,10,11,12,13,14,0,14,13,9,8,11,14,0,10,9,13,12,15,16,17,18,19,20,13,14,16,14,13,17,15,19,14,16,18,17,13,20,21,22,23,24,21,24,25,26,23,22,27,28,8,21,29,10,30,31,32,33,21,33,32,29,8,30,33,21,10,29,32,31,15,34,35,18,36,37,32,33,34,33,32,35,15,36,33,34,18,35,32,37,5,6,1,0,28,25,24,23};
-static const MFace f_temple_hole_long[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}, {12,4,127,0,0,0,0,0x8B7B60}, {16,4,-127,0,0,0,0,0x8B7B60}, {20,4,0,0,-127,0,0,0x8B7B60}, {24,4,0,-127,0,0,0,0x8B7B60}, {28,4,0,127,0,0,0,0x8B7B60}, {32,4,127,0,0,0,0,0x8B7B60}, {36,4,-127,0,0,0,0,0x8B7B60}, {40,4,0,0,-127,0,0,0x8B7B60}, {44,4,0,-127,0,0,0,0x8B7B60}, {48,4,0,127,0,0,0,0x8B7B60}, {52,4,0,127,0,0,0,0xA8977A}, {56,4,-127,0,0,0,0,0x76684F}, {60,4,127,0,0,0,0,0x76684F}, {64,4,-127,0,0,0,0,0x8B7B60}, {68,4,127,0,0,0,0,0x8B7B60}, {72,4,0,0,127,0,0,0x8B7B60}, {76,4,0,-127,0,0,0,0x8B7B60}, {80,4,0,127,0,0,0,0x8B7B60}, {84,4,-127,0,0,0,0,0x8B7B60}, {88,4,127,0,0,0,0,0x8B7B60}, {92,4,0,0,127,0,0,0x8B7B60}, {96,4,0,-127,0,0,0,0x8B7B60}, {100,4,0,127,0,0,0,0x8B7B60}, {104,4,0,0,127,0,0,0x76684F}, {108,4,0,0,-127,0,0,0x76684F}};
-static const MVert v_temple_hole_long_far[] = {{-40,0,-68}, {40,0,-68}, {40,0,-120}, {-40,0,-120}, {-40,0,120}, {40,0,120}, {40,0,68}, {-40,0,68}, {-40,-96,-120}, {-40,-96,120}, {40,-96,120}, {40,-96,-120}};
-static const uint16_t i_temple_hole_long_far[] = {0,1,2,3,4,5,6,7,4,3,8,9,2,5,10,11};
-static const MFace f_temple_hole_long_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}, {8,4,-127,0,0,0,0,0x76684F}, {12,4,127,0,0,0,0,0x76684F}};
-static const MVert v_temple_narrow_l[] = {{-40,0,-80}, {-8,0,-80}, {-8,0,-120}, {-40,0,-120}, {-40,0,-40}, {-8,0,-40}, {-40,0,0}, {-8,0,0}, {-40,0,40}, {-8,0,40}, {-40,0,80}, {-8,0,80}, {-40,0,120}, {-8,0,120}, {-40,-168,-120}, {-40,-168,120}, {-8,-168,120}, {-8,-168,-120}, {-40,6,-34}, {-40,6,120}, {-40,0,-34}, {-120,0,120}, {-120,6,120}, {-120,6,-34}, {-120,0,-34}, {-40,0,-104}, {40,0,-104}, {40,0,-120}, {40,0,120}, {40,0,104}, {-40,0,104}, {-8,0,-104}, {-8,-168,-104}, {40,-168,-104}, {-8,0,104}, {40,-168,104}, {-8,-168,104}};
-static const uint16_t i_temple_narrow_l[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,12,3,14,15,2,13,16,17,18,19,12,20,21,22,23,24,19,22,21,12,12,21,24,20,23,22,19,18,25,26,27,3,12,28,29,30,26,31,32,33,34,29,35,36};
-static const MFace f_temple_narrow_l[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,127,0,0,0,0,0x8B7B60}, {36,4,-127,0,0,0,0,0x8B7B60}, {40,4,0,0,127,0,0,0x8B7B60}, {44,4,0,-127,0,0,0,0x8B7B60}, {48,4,0,127,0,0,0,0x8B7B60}, {52,4,0,127,0,0,0,0xA8977A}, {56,4,0,127,0,0,0,0xA8977A}, {60,4,0,0,127,0,0,0x76684F}, {64,4,0,0,-127,0,0,0x76684F}};
-static const MVert v_temple_narrow_l_far[] = {{-40,0,120}, {-8,0,120}, {-8,0,-120}, {-40,0,-120}};
-static const uint16_t i_temple_narrow_l_far[] = {0,1,2,3};
-static const MFace f_temple_narrow_l_far[] = {{0,4,0,127,0,0,0,0xA8977A}};
-static const MVert v_temple_narrow_r[] = {{8,0,-80}, {40,0,-80}, {40,0,-120}, {8,0,-120}, {8,0,-40}, {40,0,-40}, {8,0,0}, {40,0,0}, {8,0,40}, {40,0,40}, {8,0,80}, {40,0,80}, {8,0,120}, {40,0,120}, {8,-168,-120}, {8,-168,120}, {40,-168,120}, {40,-168,-120}, {34,6,40}, {34,6,120}, {34,0,120}, {34,0,40}, {-120,0,120}, {-120,6,120}, {-120,6,40}, {-120,0,40}, {-40,0,-104}, {40,0,-104}, {-40,0,-120}, {-40,0,120}, {40,0,104}, {-40,0,104}, {-40,-168,-104}, {8,-168,-104}, {8,0,-104}, {8,-168,104}, {-40,-168,104}, {8,0,104}};
-static const uint16_t i_temple_narrow_r[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,12,3,14,15,2,13,16,17,18,19,20,21,22,23,24,25,19,23,22,20,20,22,25,21,24,23,19,18,26,27,2,28,29,13,30,31,32,33,34,26,35,36,31,37};
-static const MFace f_temple_narrow_r[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,127,0,0,0,0,0x76684F}, {32,4,127,0,0,0,0,0x8B7B60}, {36,4,-127,0,0,0,0,0x8B7B60}, {40,4,0,0,127,0,0,0x8B7B60}, {44,4,0,-127,0,0,0,0x8B7B60}, {48,4,0,127,0,0,0,0x8B7B60}, {52,4,0,127,0,0,0,0xA8977A}, {56,4,0,127,0,0,0,0xA8977A}, {60,4,0,0,127,0,0,0x76684F}, {64,4,0,0,-127,0,0,0x76684F}};
-static const MVert v_temple_narrow_r_far[] = {{8,0,120}, {40,0,120}, {40,0,-120}, {8,0,-120}};
-static const uint16_t i_temple_narrow_r_far[] = {0,1,2,3};
-static const MFace f_temple_narrow_r_far[] = {{0,4,0,127,0,0,0,0xA8977A}};
-static const MVert v_temple_corner_l[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-120,0,0}, {-120,0,-40}, {-120,0,40}, {40,-168,40}, {40,-168,-120}, {-120,-168,40}, {-40,-168,-120}, {-40,-168,-40}, {-120,-168,-40}, {34,0,40}, {34,6,40}, {-120,6,40}, {-40,0,-34}, {-40,6,-40}, {-40,6,-34}, {-120,0,-34}, {-120,6,-34}, {-120,6,-40}};
-static const uint16_t i_temple_corner_l[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,6,4,11,12,8,6,10,2,9,13,14,9,12,15,13,4,3,16,17,11,4,17,18,19,19,20,20,12,21,21,12,19,12,21,20,19,12,12,19,20,20,21,21,12,12,21,21,19,20,20,19,12,19,20,21,12,19,19,12,21,21,20,20,22,4,23,24,25,26,27,11,4,11,27,23,22,25,11,4,24,23,27,26,11,25,26,27,4,23,24,22,25,22,24,26,11,4,22,25,27,26,24,23};
-static const MFace f_temple_corner_l[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}, {32,4,-127,0,0,0,0,0x76684F}, {36,4,0,0,-127,0,0,0x76684F}, {40,4,0,0,0,0,0,0x8B7B60}, {44,4,0,0,0,0,0,0x8B7B60}, {48,4,0,0,-127,0,0,0x8B7B60}, {52,4,0,0,0,0,0,0x8B7B60}, {56,4,0,0,0,0,0,0x8B7B60}, {60,4,0,0,0,0,0,0x8B7B60}, {64,4,0,0,0,0,0,0x8B7B60}, {68,4,0,0,127,0,0,0x8B7B60}, {72,4,0,0,0,0,0,0x8B7B60}, {76,4,0,0,0,0,0,0x8B7B60}, {80,4,127,0,0,0,0,0x8B7B60}, {84,4,-127,0,0,0,0,0x8B7B60}, {88,4,0,0,-127,0,0,0x8B7B60}, {92,4,0,-127,0,0,0,0x8B7B60}, {96,4,0,127,0,0,0,0x8B7B60}, {100,4,-127,0,0,0,0,0x8B7B60}, {104,4,127,0,0,0,0,0x8B7B60}, {108,4,0,0,127,0,0,0x8B7B60}, {112,4,0,-127,0,0,0,0x8B7B60}, {116,4,0,127,0,0,0,0x8B7B60}};
-static const MVert v_temple_corner_l_far[] = {{-40,0,40}, {40,0,40}, {40,0,-120}, {-40,0,-120}, {-120,0,40}, {-40,0,-40}, {-120,0,-40}};
-static const uint16_t i_temple_corner_l_far[] = {0,1,2,3,4,0,5,6};
-static const MFace f_temple_corner_l_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}};
-static const MVert v_temple_corner_r[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {120,0,0}, {120,0,-40}, {120,0,40}, {-40,-168,-120}, {-40,-168,40}, {120,-168,40}, {40,-168,-40}, {40,-168,-120}, {120,-168,-40}, {-40,6,-34}, {-40,6,40}, {-40,0,-34}, {-120,0,40}, {-120,6,40}, {-120,6,-34}, {-120,0,-34}, {-40,6,120}, {-40,0,120}, {34,0,40}, {34,6,40}, {34,6,120}, {34,0,120}, {34,0,-40}, {34,6,-40}, {-120,6,-40}, {-120,0,-40}, {40,0,120}, {40,0,-34}, {40,6,-34}, {40,6,120}};
-static const uint16_t i_temple_corner_r[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,7,10,11,5,9,12,10,7,13,14,8,3,14,15,12,8,16,17,2,5,18,16,5,11,19,20,8,21,22,23,24,25,20,23,22,8,8,22,25,21,24,23,20,19,26,20,8,27,28,29,30,31,20,29,28,8,8,28,31,27,30,29,20,26,28,32,33,29,22,23,34,35,32,35,34,33,28,22,35,32,29,33,34,23,36,37,38,39,27,26,19,21,37,21,19,38,36,27,21,37,39,38,19,26};
-static const MFace f_temple_corner_r[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,-127,0,0,0,0,0x76684F}, {28,4,0,0,127,0,0,0x76684F}, {32,4,127,0,0,0,0,0x76684F}, {36,4,0,0,-127,0,0,0x76684F}, {40,4,127,0,0,0,0,0x8B7B60}, {44,4,-127,0,0,0,0,0x8B7B60}, {48,4,0,0,127,0,0,0x8B7B60}, {52,4,0,-127,0,0,0,0x8B7B60}, {56,4,0,127,0,0,0,0x8B7B60}, {60,4,-127,0,0,0,0,0x8B7B60}, {64,4,127,0,0,0,0,0x8B7B60}, {68,4,0,0,-127,0,0,0x8B7B60}, {72,4,0,-127,0,0,0,0x8B7B60}, {76,4,0,127,0,0,0,0x8B7B60}, {80,4,127,0,0,0,0,0x8B7B60}, {84,4,-127,0,0,0,0,0x8B7B60}, {88,4,0,0,-127,0,0,0x8B7B60}, {92,4,0,-127,0,0,0,0x8B7B60}, {96,4,0,127,0,0,0,0x8B7B60}, {100,4,127,0,0,0,0,0x8B7B60}, {104,4,-127,0,0,0,0,0x8B7B60}, {108,4,0,0,-127,0,0,0x8B7B60}, {112,4,0,-127,0,0,0,0x8B7B60}, {116,4,0,127,0,0,0,0x8B7B60}};
-static const MVert v_temple_corner_r_far[] = {{-40,0,40}, {40,0,40}, {40,0,-120}, {-40,0,-120}, {120,0,40}, {120,0,-40}, {40,0,-40}};
-static const uint16_t i_temple_corner_r_far[] = {0,1,2,3,1,4,5,6};
-static const MFace f_temple_corner_r_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}};
-static const MVert v_temple_t[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-120,0,40}, {-80,0,40}, {-80,0,-40}, {-120,0,-40}, {-40,0,40}, {0,0,40}, {0,0,-40}, {40,0,40}, {80,0,40}, {80,0,-40}, {120,0,40}, {120,0,-40}, {-120,-168,40}, {120,-168,40}, {-40,-168,-120}, {-40,-168,-40}, {40,-168,-40}, {40,-168,-120}, {-120,-168,-40}, {120,-168,-40}, {-120,6,120}, {-120,6,40}, {-120,0,120}, {34,0,40}, {34,6,40}, {34,6,120}, {34,0,120}, {-40,0,-34}, {-40,6,-40}, {-40,6,-34}, {-120,0,-34}, {-120,6,-34}, {-120,6,-40}, {34,0,-40}, {34,6,-40}, {40,0,120}, {40,0,-34}, {40,6,-34}, {40,6,120}, {-40,0,120}, {-40,6,120}};
-static const uint16_t i_temple_t[] = {0,1,2,3,4,5,1,0,6,7,8,9,7,10,4,8,10,11,12,4,11,13,5,12,13,14,15,5,14,16,17,15,18,19,16,6,4,3,20,21,2,5,22,23,21,24,9,4,25,22,5,17,26,27,6,28,29,30,31,32,27,30,29,6,6,29,32,28,31,30,27,26,33,4,34,35,36,37,38,9,4,9,38,34,33,36,9,4,35,34,38,37,29,39,40,30,6,27,38,9,39,9,38,40,29,6,9,39,30,40,38,27,9,36,37,38,4,34,35,33,36,33,35,37,9,4,33,36,38,37,35,34,41,42,43,44,45,46,35,33,42,33,35,43,41,45,33,42,44,43,35,46};
-static const MFace f_temple_t[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0x9C8B6F}, {8,4,0,127,0,0,0,0xA8977A}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,0,127,0,0,0,0xA8977A}, {20,4,0,127,0,0,0,0x9C8B6F}, {24,4,0,127,0,0,0,0xA8977A}, {28,4,0,127,0,0,0,0x9C8B6F}, {32,4,0,0,127,0,0,0x76684F}, {36,4,-127,0,0,0,0,0x76684F}, {40,4,127,0,0,0,0,0x76684F}, {44,4,0,0,-127,0,0,0x76684F}, {48,4,0,0,-127,0,0,0x76684F}, {52,4,-127,0,0,0,0,0x8B7B60}, {56,4,127,0,0,0,0,0x8B7B60}, {60,4,0,0,-127,0,0,0x8B7B60}, {64,4,0,-127,0,0,0,0x8B7B60}, {68,4,0,127,0,0,0,0x8B7B60}, {72,4,127,0,0,0,0,0x8B7B60}, {76,4,-127,0,0,0,0,0x8B7B60}, {80,4,0,0,-127,0,0,0x8B7B60}, {84,4,0,-127,0,0,0,0x8B7B60}, {88,4,0,127,0,0,0,0x8B7B60}, {92,4,127,0,0,0,0,0x8B7B60}, {96,4,-127,0,0,0,0,0x8B7B60}, {100,4,0,0,-127,0,0,0x8B7B60}, {104,4,0,-127,0,0,0,0x8B7B60}, {108,4,0,127,0,0,0,0x8B7B60}, {112,4,-127,0,0,0,0,0x8B7B60}, {116,4,127,0,0,0,0,0x8B7B60}, {120,4,0,0,127,0,0,0x8B7B60}, {124,4,0,-127,0,0,0,0x8B7B60}, {128,4,0,127,0,0,0,0x8B7B60}, {132,4,127,0,0,0,0,0x8B7B60}, {136,4,-127,0,0,0,0,0x8B7B60}, {140,4,0,0,-127,0,0,0x8B7B60}, {144,4,0,-127,0,0,0,0x8B7B60}, {148,4,0,127,0,0,0,0x8B7B60}};
-static const MVert v_temple_t_far[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}};
-static const uint16_t i_temple_t_far[] = {0,1,2,3,4,5,6,7};
-static const MFace f_temple_t_far[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,0,127,0,0,0,0xA8977A}};
-static const MVert v_temple_step_up[] = {{-40,12,-72}, {40,12,-72}, {40,12,-120}, {-40,12,-120}, {-40,-168,-120}, {-40,-168,-72}, {40,-168,-72}, {40,-168,-120}, {40,0,-120}, {-40,0,-120}, {-40,24,-24}, {40,24,-24}, {40,24,-72}, {-40,24,-72}, {-40,-168,-24}, {40,-168,-24}, {-40,36,24}, {40,36,24}, {40,36,-24}, {-40,36,-24}, {-40,-168,24}, {40,-168,24}, {-40,48,72}, {40,48,72}, {40,48,24}, {-40,48,24}, {-40,-168,72}, {40,-168,72}, {-40,60,120}, {40,60,120}, {40,60,72}, {-40,60,72}, {-40,-168,120}, {40,-168,120}};
-static const uint16_t i_temple_step_up[] = {0,1,2,3,0,3,4,5,2,1,6,7,3,2,8,9,10,11,12,13,10,13,5,14,12,11,15,6,13,12,1,0,16,17,18,19,16,19,14,20,18,17,21,15,19,18,11,10,22,23,24,25,22,25,20,26,24,23,27,21,25,24,17,16,28,29,30,31,28,31,26,32,30,29,33,27,31,30,23,22};
-static const MFace f_temple_step_up[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}, {12,4,0,0,-127,0,0,0x76684F}, {16,4,0,127,0,0,0,0x9C8B6F}, {20,4,-127,0,0,0,0,0x76684F}, {24,4,127,0,0,0,0,0x76684F}, {28,4,0,0,-127,0,0,0x76684F}, {32,4,0,127,0,0,0,0xA8977A}, {36,4,-127,0,0,0,0,0x76684F}, {40,4,127,0,0,0,0,0x76684F}, {44,4,0,0,-127,0,0,0x76684F}, {48,4,0,127,0,0,0,0x9C8B6F}, {52,4,-127,0,0,0,0,0x76684F}, {56,4,127,0,0,0,0,0x76684F}, {60,4,0,0,-127,0,0,0x76684F}, {64,4,0,127,0,0,0,0xA8977A}, {68,4,-127,0,0,0,0,0x76684F}, {72,4,127,0,0,0,0,0x76684F}, {76,4,0,0,-127,0,0,0x76684F}};
-static const MVert v_temple_step_up_far[] = {{-40,60,120}, {40,60,120}, {40,12,-120}, {-40,12,-120}};
-static const uint16_t i_temple_step_up_far[] = {0,1,2,3};
-static const MFace f_temple_step_up_far[] = {{0,4,0,125,-25,0,0,0xA8977A}};
-static const MVert v_temple_step_down[] = {{-40,0,-72}, {40,0,-72}, {40,0,-120}, {-40,0,-120}, {-40,-168,-120}, {-40,-168,-72}, {40,-168,-72}, {40,-168,-120}, {-40,-12,-24}, {40,-12,-24}, {40,-12,-72}, {-40,-12,-72}, {-40,-168,-24}, {40,-168,-24}, {-40,-24,24}, {40,-24,24}, {40,-24,-24}, {-40,-24,-24}, {-40,-168,24}, {40,-168,24}, {-40,-36,72}, {40,-36,72}, {40,-36,24}, {-40,-36,24}, {-40,-168,72}, {40,-168,72}, {-40,-48,120}, {40,-48,120}, {40,-48,72}, {-40,-48,72}, {-40,-168,120}, {40,-168,120}};
-static const uint16_t i_temple_step_down[] = {0,1,2,3,0,3,4,5,2,1,6,7,8,9,10,11,8,11,5,12,10,9,13,6,14,15,16,17,14,17,12,18,16,15,19,13,20,21,22,23,20,23,18,24,22,21,25,19,26,27,28,29,26,29,24,30,28,27,31,25};
-static const MFace f_temple_step_down[] = {{0,4,0,127,0,0,0,0xA8977A}, {4,4,-127,0,0,0,0,0x76684F}, {8,4,127,0,0,0,0,0x76684F}, {12,4,0,127,0,0,0,0x9C8B6F}, {16,4,-127,0,0,0,0,0x76684F}, {20,4,127,0,0,0,0,0x76684F}, {24,4,0,127,0,0,0,0xA8977A}, {28,4,-127,0,0,0,0,0x76684F}, {32,4,127,0,0,0,0,0x76684F}, {36,4,0,127,0,0,0,0x9C8B6F}, {40,4,-127,0,0,0,0,0x76684F}, {44,4,127,0,0,0,0,0x76684F}, {48,4,0,127,0,0,0,0xA8977A}, {52,4,-127,0,0,0,0,0x76684F}, {56,4,127,0,0,0,0,0x76684F}};
-static const MVert v_temple_step_down_far[] = {{-40,-48,120}, {40,-48,120}, {40,0,-120}, {-40,0,-120}};
-static const uint16_t i_temple_step_down_far[] = {0,1,2,3};
-static const MFace f_temple_step_down_far[] = {{0,4,0,125,25,0,0,0xA8977A}};
-static const MVert v_plank_straight[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-168,-120}, {-40,-168,120}, {40,-168,120}, {40,-168,-120}, {-40,0,-122}, {-40,0,-118}, {-40,18,-118}, {-40,18,-122}, {-36,0,-122}, {-36,18,-122}, {-36,18,-118}, {-36,0,-118}, {-40,0,-42}, {-40,0,-38}, {-40,18,-38}, {-40,18,-42}, {-36,0,-42}, {-36,18,-42}, {-36,18,-38}, {-36,0,-38}, {-40,0,38}, {-40,0,42}, {-40,18,42}, {-40,18,38}, {-36,0,38}, {-36,18,38}, {-36,18,42}, {-36,0,42}, {-40,0,118}, {-40,0,122}, {-40,18,122}, {-40,18,118}, {-36,0,118}, {-36,18,118}, {-36,18,122}, {-36,0,122}, {-39,16,-34}, {-39,16,120}, {-39,14,120}, {-39,14,-34}, {-121,14,120}, {-121,16,120}, {-121,16,-34}, {-121,14,-34}, {36,0,-122}, {36,0,-118}, {36,18,-118}, {36,18,-122}, {40,0,-122}, {40,18,-122}, {40,18,-118}, {40,0,-118}, {36,0,-42}, {36,0,-38}, {36,18,-38}, {36,18,-42}, {40,0,-42}, {40,18,-42}, {40,18,-38}, {40,0,-38}, {36,0,38}, {36,0,42}, {36,18,42}, {36,18,38}, {40,0,38}, {40,18,38}, {40,18,42}, {40,0,42}, {36,0,118}, {36,0,122}, {36,18,122}, {36,18,118}, {40,0,118}, {40,18,118}, {40,18,122}, {40,0,122}, {35,16,40}, {35,16,120}, {35,14,120}, {35,14,40}, {-121,16,40}, {-121,14,40}};
-static const uint16_t i_plank_straight[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,12,3,14,15,2,13,16,17,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23,26,27,28,29,30,31,32,33,27,33,32,28,26,30,33,27,29,28,32,31,34,35,36,37,38,39,40,41,35,41,40,36,34,38,41,35,37,36,40,39,42,43,44,45,46,47,48,49,43,49,48,44,42,46,49,43,45,44,48,47,50,51,52,53,54,55,56,57,51,55,54,52,52,54,57,53,56,55,51,50,58,59,60,61,62,63,64,65,59,65,64,60,58,62,65,59,61,60,64,63,66,67,68,69,70,71,72,73,67,73,72,68,66,70,73,67,69,68,72,71,74,75,76,77,78,79,80,81,75,81,80,76,74,78,81,75,77,76,80,79,82,83,84,85,86,87,88,89,83,89,88,84,82,86,89,83,85,84,88,87,90,91,92,93,54,55,94,95,91,55,54,92,92,54,95,93,94,55,91,90};
-static const MFace f_plank_straight[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,0,127,0,0,0,0x8D5E35}, {20,4,0,127,0,0,0,0x7B5030}, {24,4,-127,0,0,0,0,0x5A3B20}, {28,4,127,0,0,0,0,0x5A3B20}, {32,4,-127,0,0,0,0,0x6E4A2A}, {36,4,127,0,0,0,0,0x6E4A2A}, {40,4,0,0,127,0,0,0x6E4A2A}, {44,4,0,-127,0,0,0,0x6E4A2A}, {48,4,0,127,0,0,0,0x6E4A2A}, {52,4,-127,0,0,0,0,0x6E4A2A}, {56,4,127,0,0,0,0,0x6E4A2A}, {60,4,0,0,127,0,0,0x6E4A2A}, {64,4,0,-127,0,0,0,0x6E4A2A}, {68,4,0,127,0,0,0,0x6E4A2A}, {72,4,-127,0,0,0,0,0x6E4A2A}, {76,4,127,0,0,0,0,0x6E4A2A}, {80,4,0,0,127,0,0,0x6E4A2A}, {84,4,0,-127,0,0,0,0x6E4A2A}, {88,4,0,127,0,0,0,0x6E4A2A}, {92,4,-127,0,0,0,0,0x6E4A2A}, {96,4,127,0,0,0,0,0x6E4A2A}, {100,4,0,0,127,0,0,0x6E4A2A}, {104,4,0,-127,0,0,0,0x6E4A2A}, {108,4,0,127,0,0,0,0x6E4A2A}, {112,4,127,0,0,0,0,0x6E4A2A}, {116,4,-127,0,0,0,0,0x6E4A2A}, {120,4,0,0,127,0,0,0x6E4A2A}, {124,4,0,-127,0,0,0,0x6E4A2A}, {128,4,0,127,0,0,0,0x6E4A2A}, {132,4,-127,0,0,0,0,0x6E4A2A}, {136,4,127,0,0,0,0,0x6E4A2A}, {140,4,0,0,127,0,0,0x6E4A2A}, {144,4,0,-127,0,0,0,0x6E4A2A}, {148,4,0,127,0,0,0,0x6E4A2A}, {152,4,-127,0,0,0,0,0x6E4A2A}, {156,4,127,0,0,0,0,0x6E4A2A}, {160,4,0,0,127,0,0,0x6E4A2A}, {164,4,0,-127,0,0,0,0x6E4A2A}, {168,4,0,127,0,0,0,0x6E4A2A}, {172,4,-127,0,0,0,0,0x6E4A2A}, {176,4,127,0,0,0,0,0x6E4A2A}, {180,4,0,0,127,0,0,0x6E4A2A}, {184,4,0,-127,0,0,0,0x6E4A2A}, {188,4,0,127,0,0,0,0x6E4A2A}, {192,4,-127,0,0,0,0,0x6E4A2A}, {196,4,127,0,0,0,0,0x6E4A2A}, {200,4,0,0,127,0,0,0x6E4A2A}, {204,4,0,-127,0,0,0,0x6E4A2A}, {208,4,0,127,0,0,0,0x6E4A2A}, {212,4,127,0,0,0,0,0x6E4A2A}, {216,4,-127,0,0,0,0,0x6E4A2A}, {220,4,0,0,127,0,0,0x6E4A2A}, {224,4,0,-127,0,0,0,0x6E4A2A}, {228,4,0,127,0,0,0,0x6E4A2A}};
-static const MVert v_plank_straight_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-96,-120}, {-40,-96,120}, {40,-96,120}, {40,-96,-120}};
-static const uint16_t i_plank_straight_far[] = {0,1,2,3,0,3,4,5,2,1,6,7};
-static const MFace f_plank_straight_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,-127,0,0,0,0,0x5A3B20}, {8,4,127,0,0,0,0,0x5A3B20}};
-static const MVert v_plank_hole[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-40,-168,-120}, {-40,-168,-40}, {40,-168,-40}, {40,-168,-120}, {-40,0,-122}, {-40,0,-118}, {-40,18,-118}, {-40,18,-122}, {-36,0,-122}, {-36,18,-122}, {-36,18,-118}, {-36,0,-118}, {-40,0,-95}, {-40,0,-91}, {-40,18,-91}, {-40,18,-95}, {-36,0,-95}, {-36,18,-95}, {-36,18,-91}, {-36,0,-91}, {-40,0,-69}, {-40,0,-65}, {-40,18,-65}, {-40,18,-69}, {-36,0,-69}, {-36,18,-69}, {-36,18,-65}, {-36,0,-65}, {-40,0,-42}, {-40,0,-38}, {-40,18,-38}, {-40,18,-42}, {-36,0,-42}, {-36,18,-42}, {-36,18,-38}, {-36,0,-38}, {-39,14,-34}, {-39,14,-40}, {-39,16,-40}, {-39,16,-34}, {-121,14,-34}, {-121,16,-34}, {-121,16,-40}, {-121,14,-40}, {36,0,-122}, {36,0,-118}, {36,18,-118}, {36,18,-122}, {40,0,-122}, {40,18,-122}, {40,18,-118}, {40,0,-118}, {36,0,-95}, {36,0,-91}, {36,18,-91}, {36,18,-95}, {40,0,-95}, {40,18,-95}, {40,18,-91}, {40,0,-91}, {36,0,-69}, {36,0,-65}, {36,18,-65}, {36,18,-69}, {40,0,-69}, {40,18,-69}, {40,18,-65}, {40,0,-65}, {36,0,-42}, {36,0,-38}, {36,18,-38}, {36,18,-42}, {40,0,-42}, {40,18,-42}, {40,18,-38}, {40,0,-38}, {35,14,40}, {35,14,-40}, {35,16,-40}, {35,16,40}, {-121,14,40}, {-121,16,40}, {-40,0,120}, {40,0,120}, {40,0,40}, {-40,0,40}, {-40,-168,40}, {-40,-168,120}, {40,-168,120}, {40,-168,40}, {-40,0,38}, {-40,0,42}, {-40,18,42}, {-40,18,38}, {-36,0,38}, {-36,18,38}, {-36,18,42}, {-36,0,42}, {-40,0,65}, {-40,0,69}, {-40,18,69}, {-40,18,65}, {-36,0,65}, {-36,18,65}, {-36,18,69}, {-36,0,69}, {-40,0,91}, {-40,0,95}, {-40,18,95}, {-40,18,91}, {-36,0,91}, {-36,18,91}, {-36,18,95}, {-36,0,95}, {-40,0,118}, {-40,0,122}, {-40,18,122}, {-40,18,118}, {-36,0,118}, {-36,18,118}, {-36,18,122}, {-36,0,122}, {-39,14,120}, {-39,16,120}, {39,14,-34}, {39,16,-34}, {39,16,120}, {39,14,120}, {36,0,38}, {36,0,42}, {36,18,42}, {36,18,38}, {40,0,38}, {40,18,38}, {40,18,42}, {40,0,42}, {36,0,65}, {36,0,69}, {36,18,69}, {36,18,65}, {40,0,65}, {40,18,65}, {40,18,69}, {40,0,69}, {36,0,91}, {36,0,95}, {36,18,95}, {36,18,91}, {40,0,91}, {40,18,91}, {40,18,95}, {40,0,95}, {36,0,118}, {36,0,122}, {36,18,122}, {36,18,118}, {40,0,118}, {40,18,118}, {40,18,122}, {40,0,122}, {35,14,120}, {35,16,120}, {39,14,40}, {39,16,40}};
-static const uint16_t i_plank_hole[] = {0,1,2,3,0,3,4,5,2,1,6,7,8,9,10,11,12,13,14,15,9,15,14,10,8,12,15,9,11,10,14,13,16,17,18,19,20,21,22,23,17,23,22,18,16,20,23,17,19,18,22,21,24,25,26,27,28,29,30,31,25,31,30,26,24,28,31,25,27,26,30,29,32,33,34,35,36,37,38,39,33,39,38,34,32,36,39,33,35,34,38,37,40,41,42,43,44,45,46,47,41,47,46,42,40,44,47,41,43,42,46,45,48,49,50,51,52,53,54,55,49,55,54,50,48,52,55,49,51,50,54,53,56,57,58,59,60,61,62,63,57,63,62,58,56,60,63,57,59,58,62,61,64,65,66,67,68,69,70,71,65,71,70,66,64,68,71,65,67,66,70,69,72,73,74,75,76,77,78,79,73,79,78,74,72,76,79,73,75,74,78,77,80,81,82,83,84,85,46,47,81,47,46,82,80,84,47,81,83,82,46,85,86,87,88,89,86,89,90,91,88,87,92,93,94,95,96,97,98,99,100,101,95,101,100,96,94,98,101,95,97,96,100,99,102,103,104,105,106,107,108,109,103,109,108,104,102,106,109,103,105,104,108,107,110,111,112,113,114,115,116,117,111,117,116,112,110,114,117,111,113,112,116,115,118,119,120,121,122,123,124,125,119,125,124,120,118,122,125,119,121,120,124,123,40,126,127,43,128,129,130,131,126,131,130,127,40,128,131,126,43,127,130,129,132,133,134,135,136,137,138,139,133,139,138,134,132,136,139,133,135,134,138,137,140,141,142,143,144,145,146,147,141,147,146,142,140,144,147,141,143,142,146,145,148,149,150,151,152,153,154,155,149,155,154,150,148,152,155,149,151,150,154,153,156,157,158,159,160,161,162,163,157,163,162,158,156,160,163,157,159,158,162,161,80,164,165,83,166,167,130,131,164,131,130,165,80,166,131,164,83,165,130,167,5,6,1,0,93,90,89,88};
-static const MFace f_plank_hole[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,-127,0,0,0,0,0x5A3B20}, {8,4,127,0,0,0,0,0x5A3B20}, {12,4,-127,0,0,0,0,0x6E4A2A}, {16,4,127,0,0,0,0,0x6E4A2A}, {20,4,0,0,127,0,0,0x6E4A2A}, {24,4,0,-127,0,0,0,0x6E4A2A}, {28,4,0,127,0,0,0,0x6E4A2A}, {32,4,-127,0,0,0,0,0x6E4A2A}, {36,4,127,0,0,0,0,0x6E4A2A}, {40,4,0,0,127,0,0,0x6E4A2A}, {44,4,0,-127,0,0,0,0x6E4A2A}, {48,4,0,127,0,0,0,0x6E4A2A}, {52,4,-127,0,0,0,0,0x6E4A2A}, {56,4,127,0,0,0,0,0x6E4A2A}, {60,4,0,0,127,0,0,0x6E4A2A}, {64,4,0,-127,0,0,0,0x6E4A2A}, {68,4,0,127,0,0,0,0x6E4A2A}, {72,4,-127,0,0,0,0,0x6E4A2A}, {76,4,127,0,0,0,0,0x6E4A2A}, {80,4,0,0,127,0,0,0x6E4A2A}, {84,4,0,-127,0,0,0,0x6E4A2A}, {88,4,0,127,0,0,0,0x6E4A2A}, {92,4,127,0,0,0,0,0x6E4A2A}, {96,4,-127,0,0,0,0,0x6E4A2A}, {100,4,0,0,-127,0,0,0x6E4A2A}, {104,4,0,-127,0,0,0,0x6E4A2A}, {108,4,0,127,0,0,0,0x6E4A2A}, {112,4,-127,0,0,0,0,0x6E4A2A}, {116,4,127,0,0,0,0,0x6E4A2A}, {120,4,0,0,127,0,0,0x6E4A2A}, {124,4,0,-127,0,0,0,0x6E4A2A}, {128,4,0,127,0,0,0,0x6E4A2A}, {132,4,-127,0,0,0,0,0x6E4A2A}, {136,4,127,0,0,0,0,0x6E4A2A}, {140,4,0,0,127,0,0,0x6E4A2A}, {144,4,0,-127,0,0,0,0x6E4A2A}, {148,4,0,127,0,0,0,0x6E4A2A}, {152,4,-127,0,0,0,0,0x6E4A2A}, {156,4,127,0,0,0,0,0x6E4A2A}, {160,4,0,0,127,0,0,0x6E4A2A}, {164,4,0,-127,0,0,0,0x6E4A2A}, {168,4,0,127,0,0,0,0x6E4A2A}, {172,4,-127,0,0,0,0,0x6E4A2A}, {176,4,127,0,0,0,0,0x6E4A2A}, {180,4,0,0,127,0,0,0x6E4A2A}, {184,4,0,-127,0,0,0,0x6E4A2A}, {188,4,0,127,0,0,0,0x6E4A2A}, {192,4,127,0,0,0,0,0x6E4A2A}, {196,4,-127,0,0,0,0,0x6E4A2A}, {200,4,0,0,-127,0,0,0x6E4A2A}, {204,4,0,-127,0,0,0,0x6E4A2A}, {208,4,0,127,0,0,0,0x6E4A2A}, {212,4,0,127,0,0,0,0x8D5E35}, {216,4,-127,0,0,0,0,0x5A3B20}, {220,4,127,0,0,0,0,0x5A3B20}, {224,4,-127,0,0,0,0,0x6E4A2A}, {228,4,127,0,0,0,0,0x6E4A2A}, {232,4,0,0,127,0,0,0x6E4A2A}, {236,4,0,-127,0,0,0,0x6E4A2A}, {240,4,0,127,0,0,0,0x6E4A2A}, {244,4,-127,0,0,0,0,0x6E4A2A}, {248,4,127,0,0,0,0,0x6E4A2A}, {252,4,0,0,127,0,0,0x6E4A2A}, {256,4,0,-127,0,0,0,0x6E4A2A}, {260,4,0,127,0,0,0,0x6E4A2A}, {264,4,-127,0,0,0,0,0x6E4A2A}, {268,4,127,0,0,0,0,0x6E4A2A}, {272,4,0,0,127,0,0,0x6E4A2A}, {276,4,0,-127,0,0,0,0x6E4A2A}, {280,4,0,127,0,0,0,0x6E4A2A}, {284,4,-127,0,0,0,0,0x6E4A2A}, {288,4,127,0,0,0,0,0x6E4A2A}, {292,4,0,0,127,0,0,0x6E4A2A}, {296,4,0,-127,0,0,0,0x6E4A2A}, {300,4,0,127,0,0,0,0x6E4A2A}, {304,4,-127,0,0,0,0,0x6E4A2A}, {308,4,127,0,0,0,0,0x6E4A2A}, {312,4,0,0,127,0,0,0x6E4A2A}, {316,4,0,-127,0,0,0,0x6E4A2A}, {320,4,0,127,0,0,0,0x6E4A2A}, {324,4,-127,0,0,0,0,0x6E4A2A}, {328,4,127,0,0,0,0,0x6E4A2A}, {332,4,0,0,127,0,0,0x6E4A2A}, {336,4,0,-127,0,0,0,0x6E4A2A}, {340,4,0,127,0,0,0,0x6E4A2A}, {344,4,-127,0,0,0,0,0x6E4A2A}, {348,4,127,0,0,0,0,0x6E4A2A}, {352,4,0,0,127,0,0,0x6E4A2A}, {356,4,0,-127,0,0,0,0x6E4A2A}, {360,4,0,127,0,0,0,0x6E4A2A}, {364,4,-127,0,0,0,0,0x6E4A2A}, {368,4,127,0,0,0,0,0x6E4A2A}, {372,4,0,0,127,0,0,0x6E4A2A}, {376,4,0,-127,0,0,0,0x6E4A2A}, {380,4,0,127,0,0,0,0x6E4A2A}, {384,4,-127,0,0,0,0,0x6E4A2A}, {388,4,127,0,0,0,0,0x6E4A2A}, {392,4,0,0,127,0,0,0x6E4A2A}, {396,4,0,-127,0,0,0,0x6E4A2A}, {400,4,0,127,0,0,0,0x6E4A2A}, {404,4,-127,0,0,0,0,0x6E4A2A}, {408,4,127,0,0,0,0,0x6E4A2A}, {412,4,0,0,127,0,0,0x6E4A2A}, {416,4,0,-127,0,0,0,0x6E4A2A}, {420,4,0,127,0,0,0,0x6E4A2A}, {424,4,0,0,127,0,0,0x5A3B20}, {428,4,0,0,-127,0,0,0x5A3B20}};
-static const MVert v_plank_hole_far[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-40,0,120}, {40,0,120}, {40,0,40}, {-40,0,40}, {-40,-96,-120}, {-40,-96,120}, {40,-96,120}, {40,-96,-120}};
-static const uint16_t i_plank_hole_far[] = {0,1,2,3,4,5,6,7,4,3,8,9,2,5,10,11};
-static const MFace f_plank_hole_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}, {8,4,-127,0,0,0,0,0x5A3B20}, {12,4,127,0,0,0,0,0x5A3B20}};
-static const MVert v_plank_hole_long[] = {{-40,0,-68}, {40,0,-68}, {40,0,-120}, {-40,0,-120}, {-40,-168,-120}, {-40,-168,-68}, {40,-168,-68}, {40,-168,-120}, {-40,0,-122}, {-40,0,-118}, {-40,18,-118}, {-40,18,-122}, {-36,0,-122}, {-36,18,-122}, {-36,18,-118}, {-36,0,-118}, {-40,0,-105}, {-40,0,-101}, {-40,18,-101}, {-40,18,-105}, {-36,0,-105}, {-36,18,-105}, {-36,18,-101}, {-36,0,-101}, {-40,0,-87}, {-40,0,-83}, {-40,18,-83}, {-40,18,-87}, {-36,0,-87}, {-36,18,-87}, {-36,18,-83}, {-36,0,-83}, {-40,0,-70}, {-40,0,-66}, {-40,18,-66}, {-40,18,-70}, {-36,0,-70}, {-36,18,-70}, {-36,18,-66}, {-36,0,-66}, {-39,14,-34}, {-39,14,-68}, {-39,16,-68}, {-39,16,-34}, {-121,14,-34}, {-121,16,-34}, {-121,16,-68}, {-121,14,-68}, {36,0,-122}, {36,0,-118}, {36,18,-118}, {36,18,-122}, {40,0,-122}, {40,18,-122}, {40,18,-118}, {40,0,-118}, {36,0,-105}, {36,0,-101}, {36,18,-101}, {36,18,-105}, {40,0,-105}, {40,18,-105}, {40,18,-101}, {40,0,-101}, {36,0,-87}, {36,0,-83}, {36,18,-83}, {36,18,-87}, {40,0,-87}, {40,18,-87}, {40,18,-83}, {40,0,-83}, {36,0,-70}, {36,0,-66}, {36,18,-66}, {36,18,-70}, {40,0,-70}, {40,18,-70}, {40,18,-66}, {40,0,-66}, {35,14,40}, {35,14,-68}, {35,16,-68}, {35,16,40}, {-121,14,40}, {-121,16,40}, {-40,0,120}, {40,0,120}, {40,0,68}, {-40,0,68}, {-40,-168,68}, {-40,-168,120}, {40,-168,120}, {40,-168,68}, {-40,0,66}, {-40,0,70}, {-40,18,70}, {-40,18,66}, {-36,0,66}, {-36,18,66}, {-36,18,70}, {-36,0,70}, {-40,0,83}, {-40,0,87}, {-40,18,87}, {-40,18,83}, {-36,0,83}, {-36,18,83}, {-36,18,87}, {-36,0,87}, {-40,0,101}, {-40,0,105}, {-40,18,105}, {-40,18,101}, {-36,0,101}, {-36,18,101}, {-36,18,105}, {-36,0,105}, {-40,0,118}, {-40,0,122}, {-40,18,122}, {-40,18,118}, {-36,0,118}, {-36,18,118}, {-36,18,122}, {-36,0,122}, {-39,14,120}, {-39,16,120}, {67,14,-34}, {67,16,-34}, {67,16,120}, {67,14,120}, {36,0,66}, {36,0,70}, {36,18,70}, {36,18,66}, {40,0,66}, {40,18,66}, {40,18,70}, {40,0,70}, {36,0,83}, {36,0,87}, {36,18,87}, {36,18,83}, {40,0,83}, {40,18,83}, {40,18,87}, {40,0,87}, {36,0,101}, {36,0,105}, {36,18,105}, {36,18,101}, {40,0,101}, {40,18,101}, {40,18,105}, {40,0,105}, {36,0,118}, {36,0,122}, {36,18,122}, {36,18,118}, {40,0,118}, {40,18,118}, {40,18,122}, {40,0,122}, {35,14,120}, {35,16,120}, {67,14,40}, {67,16,40}};
-static const uint16_t i_plank_hole_long[] = {0,1,2,3,0,3,4,5,2,1,6,7,8,9,10,11,12,13,14,15,9,15,14,10,8,12,15,9,11,10,14,13,16,17,18,19,20,21,22,23,17,23,22,18,16,20,23,17,19,18,22,21,24,25,26,27,28,29,30,31,25,31,30,26,24,28,31,25,27,26,30,29,32,33,34,35,36,37,38,39,33,39,38,34,32,36,39,33,35,34,38,37,40,41,42,43,44,45,46,47,41,47,46,42,40,44,47,41,43,42,46,45,48,49,50,51,52,53,54,55,49,55,54,50,48,52,55,49,51,50,54,53,56,57,58,59,60,61,62,63,57,63,62,58,56,60,63,57,59,58,62,61,64,65,66,67,68,69,70,71,65,71,70,66,64,68,71,65,67,66,70,69,72,73,74,75,76,77,78,79,73,79,78,74,72,76,79,73,75,74,78,77,80,81,82,83,84,85,46,47,81,47,46,82,80,84,47,81,83,82,46,85,86,87,88,89,86,89,90,91,88,87,92,93,94,95,96,97,98,99,100,101,95,101,100,96,94,98,101,95,97,96,100,99,102,103,104,105,106,107,108,109,103,109,108,104,102,106,109,103,105,104,108,107,110,111,112,113,114,115,116,117,111,117,116,112,110,114,117,111,113,112,116,115,118,119,120,121,122,123,124,125,119,125,124,120,118,122,125,119,121,120,124,123,40,126,127,43,128,129,130,131,126,131,130,127,40,128,131,126,43,127,130,129,132,133,134,135,136,137,138,139,133,139,138,134,132,136,139,133,135,134,138,137,140,141,142,143,144,145,146,147,141,147,146,142,140,144,147,141,143,142,146,145,148,149,150,151,152,153,154,155,149,155,154,150,148,152,155,149,151,150,154,153,156,157,158,159,160,161,162,163,157,163,162,158,156,160,163,157,159,158,162,161,80,164,165,83,166,167,130,131,164,131,130,165,80,166,131,164,83,165,130,167,5,6,1,0,93,90,89,88};
-static const MFace f_plank_hole_long[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,-127,0,0,0,0,0x5A3B20}, {8,4,127,0,0,0,0,0x5A3B20}, {12,4,-127,0,0,0,0,0x6E4A2A}, {16,4,127,0,0,0,0,0x6E4A2A}, {20,4,0,0,127,0,0,0x6E4A2A}, {24,4,0,-127,0,0,0,0x6E4A2A}, {28,4,0,127,0,0,0,0x6E4A2A}, {32,4,-127,0,0,0,0,0x6E4A2A}, {36,4,127,0,0,0,0,0x6E4A2A}, {40,4,0,0,127,0,0,0x6E4A2A}, {44,4,0,-127,0,0,0,0x6E4A2A}, {48,4,0,127,0,0,0,0x6E4A2A}, {52,4,-127,0,0,0,0,0x6E4A2A}, {56,4,127,0,0,0,0,0x6E4A2A}, {60,4,0,0,127,0,0,0x6E4A2A}, {64,4,0,-127,0,0,0,0x6E4A2A}, {68,4,0,127,0,0,0,0x6E4A2A}, {72,4,-127,0,0,0,0,0x6E4A2A}, {76,4,127,0,0,0,0,0x6E4A2A}, {80,4,0,0,127,0,0,0x6E4A2A}, {84,4,0,-127,0,0,0,0x6E4A2A}, {88,4,0,127,0,0,0,0x6E4A2A}, {92,4,127,0,0,0,0,0x6E4A2A}, {96,4,-127,0,0,0,0,0x6E4A2A}, {100,4,0,0,-127,0,0,0x6E4A2A}, {104,4,0,-127,0,0,0,0x6E4A2A}, {108,4,0,127,0,0,0,0x6E4A2A}, {112,4,-127,0,0,0,0,0x6E4A2A}, {116,4,127,0,0,0,0,0x6E4A2A}, {120,4,0,0,127,0,0,0x6E4A2A}, {124,4,0,-127,0,0,0,0x6E4A2A}, {128,4,0,127,0,0,0,0x6E4A2A}, {132,4,-127,0,0,0,0,0x6E4A2A}, {136,4,127,0,0,0,0,0x6E4A2A}, {140,4,0,0,127,0,0,0x6E4A2A}, {144,4,0,-127,0,0,0,0x6E4A2A}, {148,4,0,127,0,0,0,0x6E4A2A}, {152,4,-127,0,0,0,0,0x6E4A2A}, {156,4,127,0,0,0,0,0x6E4A2A}, {160,4,0,0,127,0,0,0x6E4A2A}, {164,4,0,-127,0,0,0,0x6E4A2A}, {168,4,0,127,0,0,0,0x6E4A2A}, {172,4,-127,0,0,0,0,0x6E4A2A}, {176,4,127,0,0,0,0,0x6E4A2A}, {180,4,0,0,127,0,0,0x6E4A2A}, {184,4,0,-127,0,0,0,0x6E4A2A}, {188,4,0,127,0,0,0,0x6E4A2A}, {192,4,127,0,0,0,0,0x6E4A2A}, {196,4,-127,0,0,0,0,0x6E4A2A}, {200,4,0,0,-127,0,0,0x6E4A2A}, {204,4,0,-127,0,0,0,0x6E4A2A}, {208,4,0,127,0,0,0,0x6E4A2A}, {212,4,0,127,0,0,0,0x8D5E35}, {216,4,-127,0,0,0,0,0x5A3B20}, {220,4,127,0,0,0,0,0x5A3B20}, {224,4,-127,0,0,0,0,0x6E4A2A}, {228,4,127,0,0,0,0,0x6E4A2A}, {232,4,0,0,127,0,0,0x6E4A2A}, {236,4,0,-127,0,0,0,0x6E4A2A}, {240,4,0,127,0,0,0,0x6E4A2A}, {244,4,-127,0,0,0,0,0x6E4A2A}, {248,4,127,0,0,0,0,0x6E4A2A}, {252,4,0,0,127,0,0,0x6E4A2A}, {256,4,0,-127,0,0,0,0x6E4A2A}, {260,4,0,127,0,0,0,0x6E4A2A}, {264,4,-127,0,0,0,0,0x6E4A2A}, {268,4,127,0,0,0,0,0x6E4A2A}, {272,4,0,0,127,0,0,0x6E4A2A}, {276,4,0,-127,0,0,0,0x6E4A2A}, {280,4,0,127,0,0,0,0x6E4A2A}, {284,4,-127,0,0,0,0,0x6E4A2A}, {288,4,127,0,0,0,0,0x6E4A2A}, {292,4,0,0,127,0,0,0x6E4A2A}, {296,4,0,-127,0,0,0,0x6E4A2A}, {300,4,0,127,0,0,0,0x6E4A2A}, {304,4,-127,0,0,0,0,0x6E4A2A}, {308,4,127,0,0,0,0,0x6E4A2A}, {312,4,0,0,127,0,0,0x6E4A2A}, {316,4,0,-127,0,0,0,0x6E4A2A}, {320,4,0,127,0,0,0,0x6E4A2A}, {324,4,-127,0,0,0,0,0x6E4A2A}, {328,4,127,0,0,0,0,0x6E4A2A}, {332,4,0,0,127,0,0,0x6E4A2A}, {336,4,0,-127,0,0,0,0x6E4A2A}, {340,4,0,127,0,0,0,0x6E4A2A}, {344,4,-127,0,0,0,0,0x6E4A2A}, {348,4,127,0,0,0,0,0x6E4A2A}, {352,4,0,0,127,0,0,0x6E4A2A}, {356,4,0,-127,0,0,0,0x6E4A2A}, {360,4,0,127,0,0,0,0x6E4A2A}, {364,4,-127,0,0,0,0,0x6E4A2A}, {368,4,127,0,0,0,0,0x6E4A2A}, {372,4,0,0,127,0,0,0x6E4A2A}, {376,4,0,-127,0,0,0,0x6E4A2A}, {380,4,0,127,0,0,0,0x6E4A2A}, {384,4,-127,0,0,0,0,0x6E4A2A}, {388,4,127,0,0,0,0,0x6E4A2A}, {392,4,0,0,127,0,0,0x6E4A2A}, {396,4,0,-127,0,0,0,0x6E4A2A}, {400,4,0,127,0,0,0,0x6E4A2A}, {404,4,-127,0,0,0,0,0x6E4A2A}, {408,4,127,0,0,0,0,0x6E4A2A}, {412,4,0,0,127,0,0,0x6E4A2A}, {416,4,0,-127,0,0,0,0x6E4A2A}, {420,4,0,127,0,0,0,0x6E4A2A}, {424,4,0,0,127,0,0,0x5A3B20}, {428,4,0,0,-127,0,0,0x5A3B20}};
-static const MVert v_plank_hole_long_far[] = {{-40,0,-68}, {40,0,-68}, {40,0,-120}, {-40,0,-120}, {-40,0,120}, {40,0,120}, {40,0,68}, {-40,0,68}, {-40,-96,-120}, {-40,-96,120}, {40,-96,120}, {40,-96,-120}};
-static const uint16_t i_plank_hole_long_far[] = {0,1,2,3,4,5,6,7,4,3,8,9,2,5,10,11};
-static const MFace f_plank_hole_long_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}, {8,4,-127,0,0,0,0,0x5A3B20}, {12,4,127,0,0,0,0,0x5A3B20}};
-static const MVert v_plank_narrow_l[] = {{-40,0,-80}, {-8,0,-80}, {-8,0,-120}, {-40,0,-120}, {-40,0,-40}, {-8,0,-40}, {-40,0,0}, {-8,0,0}, {-40,0,40}, {-8,0,40}, {-40,0,80}, {-8,0,80}, {-40,0,120}, {-8,0,120}, {-40,-168,-120}, {-40,-168,120}, {-8,-168,120}, {-8,-168,-120}, {-40,0,-122}, {-40,0,-118}, {-40,18,-118}, {-40,18,-122}, {-36,0,-122}, {-36,18,-122}, {-36,18,-118}, {-36,0,-118}, {-40,0,-42}, {-40,0,-38}, {-40,18,-38}, {-40,18,-42}, {-36,0,-42}, {-36,18,-42}, {-36,18,-38}, {-36,0,-38}, {-40,0,38}, {-40,0,42}, {-40,18,42}, {-40,18,38}, {-36,0,38}, {-36,18,38}, {-36,18,42}, {-36,0,42}, {-40,0,118}, {-40,0,122}, {-40,18,122}, {-40,18,118}, {-36,0,118}, {-36,18,118}, {-36,18,122}, {-36,0,122}, {-39,16,-34}, {-39,16,120}, {-39,14,120}, {-39,14,-34}, {-121,14,120}, {-121,16,120}, {-121,16,-34}, {-121,14,-34}, {-40,0,-104}, {40,0,-104}, {40,0,-120}, {40,0,120}, {40,0,104}, {-40,0,104}, {-8,0,-104}, {-8,-168,-104}, {40,-168,-104}, {-8,0,104}, {40,-168,104}, {-8,-168,104}};
-static const uint16_t i_plank_narrow_l[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,12,3,14,15,2,13,16,17,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23,26,27,28,29,30,31,32,33,27,33,32,28,26,30,33,27,29,28,32,31,34,35,36,37,38,39,40,41,35,41,40,36,34,38,41,35,37,36,40,39,42,43,44,45,46,47,48,49,43,49,48,44,42,46,49,43,45,44,48,47,50,51,52,53,54,55,56,57,51,55,54,52,52,54,57,53,56,55,51,50,58,59,60,3,12,61,62,63,59,64,65,66,67,62,68,69};
-static const MFace f_plank_narrow_l[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,0,127,0,0,0,0x8D5E35}, {20,4,0,127,0,0,0,0x7B5030}, {24,4,-127,0,0,0,0,0x5A3B20}, {28,4,127,0,0,0,0,0x5A3B20}, {32,4,-127,0,0,0,0,0x6E4A2A}, {36,4,127,0,0,0,0,0x6E4A2A}, {40,4,0,0,127,0,0,0x6E4A2A}, {44,4,0,-127,0,0,0,0x6E4A2A}, {48,4,0,127,0,0,0,0x6E4A2A}, {52,4,-127,0,0,0,0,0x6E4A2A}, {56,4,127,0,0,0,0,0x6E4A2A}, {60,4,0,0,127,0,0,0x6E4A2A}, {64,4,0,-127,0,0,0,0x6E4A2A}, {68,4,0,127,0,0,0,0x6E4A2A}, {72,4,-127,0,0,0,0,0x6E4A2A}, {76,4,127,0,0,0,0,0x6E4A2A}, {80,4,0,0,127,0,0,0x6E4A2A}, {84,4,0,-127,0,0,0,0x6E4A2A}, {88,4,0,127,0,0,0,0x6E4A2A}, {92,4,-127,0,0,0,0,0x6E4A2A}, {96,4,127,0,0,0,0,0x6E4A2A}, {100,4,0,0,127,0,0,0x6E4A2A}, {104,4,0,-127,0,0,0,0x6E4A2A}, {108,4,0,127,0,0,0,0x6E4A2A}, {112,4,127,0,0,0,0,0x6E4A2A}, {116,4,-127,0,0,0,0,0x6E4A2A}, {120,4,0,0,127,0,0,0x6E4A2A}, {124,4,0,-127,0,0,0,0x6E4A2A}, {128,4,0,127,0,0,0,0x6E4A2A}, {132,4,0,127,0,0,0,0x8D5E35}, {136,4,0,127,0,0,0,0x8D5E35}, {140,4,0,0,127,0,0,0x5A3B20}, {144,4,0,0,-127,0,0,0x5A3B20}};
-static const MVert v_plank_narrow_l_far[] = {{-40,0,120}, {-8,0,120}, {-8,0,-120}, {-40,0,-120}};
-static const uint16_t i_plank_narrow_l_far[] = {0,1,2,3};
-static const MFace f_plank_narrow_l_far[] = {{0,4,0,127,0,0,0,0x8D5E35}};
-static const MVert v_plank_narrow_r[] = {{8,0,-80}, {40,0,-80}, {40,0,-120}, {8,0,-120}, {8,0,-40}, {40,0,-40}, {8,0,0}, {40,0,0}, {8,0,40}, {40,0,40}, {8,0,80}, {40,0,80}, {8,0,120}, {40,0,120}, {8,-168,-120}, {8,-168,120}, {40,-168,120}, {40,-168,-120}, {36,0,-122}, {36,0,-118}, {36,18,-118}, {36,18,-122}, {40,0,-122}, {40,18,-122}, {40,18,-118}, {40,0,-118}, {36,0,-42}, {36,0,-38}, {36,18,-38}, {36,18,-42}, {40,0,-42}, {40,18,-42}, {40,18,-38}, {40,0,-38}, {36,0,38}, {36,0,42}, {36,18,42}, {36,18,38}, {40,0,38}, {40,18,38}, {40,18,42}, {40,0,42}, {36,0,118}, {36,0,122}, {36,18,122}, {36,18,118}, {40,0,118}, {40,18,118}, {40,18,122}, {40,0,122}, {35,16,40}, {35,16,120}, {35,14,120}, {35,14,40}, {-121,14,120}, {-121,16,120}, {-121,16,40}, {-121,14,40}, {-40,0,-104}, {40,0,-104}, {-40,0,-120}, {-40,0,120}, {40,0,104}, {-40,0,104}, {-40,-168,-104}, {8,-168,-104}, {8,0,-104}, {8,-168,104}, {-40,-168,104}, {8,0,104}};
-static const uint16_t i_plank_narrow_r[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,12,3,14,15,2,13,16,17,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23,26,27,28,29,30,31,32,33,27,33,32,28,26,30,33,27,29,28,32,31,34,35,36,37,38,39,40,41,35,41,40,36,34,38,41,35,37,36,40,39,42,43,44,45,46,47,48,49,43,49,48,44,42,46,49,43,45,44,48,47,50,51,52,53,54,55,56,57,51,55,54,52,52,54,57,53,56,55,51,50,58,59,2,60,61,13,62,63,64,65,66,58,67,68,63,69};
-static const MFace f_plank_narrow_r[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,0,127,0,0,0,0x8D5E35}, {20,4,0,127,0,0,0,0x7B5030}, {24,4,-127,0,0,0,0,0x5A3B20}, {28,4,127,0,0,0,0,0x5A3B20}, {32,4,-127,0,0,0,0,0x6E4A2A}, {36,4,127,0,0,0,0,0x6E4A2A}, {40,4,0,0,127,0,0,0x6E4A2A}, {44,4,0,-127,0,0,0,0x6E4A2A}, {48,4,0,127,0,0,0,0x6E4A2A}, {52,4,-127,0,0,0,0,0x6E4A2A}, {56,4,127,0,0,0,0,0x6E4A2A}, {60,4,0,0,127,0,0,0x6E4A2A}, {64,4,0,-127,0,0,0,0x6E4A2A}, {68,4,0,127,0,0,0,0x6E4A2A}, {72,4,-127,0,0,0,0,0x6E4A2A}, {76,4,127,0,0,0,0,0x6E4A2A}, {80,4,0,0,127,0,0,0x6E4A2A}, {84,4,0,-127,0,0,0,0x6E4A2A}, {88,4,0,127,0,0,0,0x6E4A2A}, {92,4,-127,0,0,0,0,0x6E4A2A}, {96,4,127,0,0,0,0,0x6E4A2A}, {100,4,0,0,127,0,0,0x6E4A2A}, {104,4,0,-127,0,0,0,0x6E4A2A}, {108,4,0,127,0,0,0,0x6E4A2A}, {112,4,127,0,0,0,0,0x6E4A2A}, {116,4,-127,0,0,0,0,0x6E4A2A}, {120,4,0,0,127,0,0,0x6E4A2A}, {124,4,0,-127,0,0,0,0x6E4A2A}, {128,4,0,127,0,0,0,0x6E4A2A}, {132,4,0,127,0,0,0,0x8D5E35}, {136,4,0,127,0,0,0,0x8D5E35}, {140,4,0,0,127,0,0,0x5A3B20}, {144,4,0,0,-127,0,0,0x5A3B20}};
-static const MVert v_plank_narrow_r_far[] = {{8,0,120}, {40,0,120}, {40,0,-120}, {8,0,-120}};
-static const uint16_t i_plank_narrow_r_far[] = {0,1,2,3};
-static const MFace f_plank_narrow_r_far[] = {{0,4,0,127,0,0,0,0x8D5E35}};
-static const MVert v_plank_corner_l[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-120,0,0}, {-120,0,-40}, {-120,0,40}, {40,-168,40}, {40,-168,-120}, {-120,-168,40}, {-40,-168,-120}, {-40,-168,-40}, {-120,-168,-40}, {36,0,-122}, {36,0,-118}, {36,18,-118}, {36,18,-122}, {40,0,-122}, {40,18,-122}, {40,18,-118}, {40,0,-118}, {36,0,-69}, {36,0,-65}, {36,18,-65}, {36,18,-69}, {40,0,-69}, {40,18,-69}, {40,18,-65}, {40,0,-65}, {36,0,-15}, {36,0,-11}, {36,18,-11}, {36,18,-15}, {40,0,-15}, {40,18,-15}, {40,18,-11}, {40,0,-11}, {36,0,38}, {36,0,42}, {36,18,42}, {36,18,38}, {40,0,38}, {40,18,38}, {40,18,42}, {40,0,42}, {35,14,40}, {35,16,40}, {-121,14,40}, {-121,16,40}, {38,0,36}, {38,0,40}, {38,18,40}, {38,18,36}, {42,0,36}, {42,18,36}, {42,18,40}, {42,0,40}, {-15,0,36}, {-15,0,40}, {-15,18,40}, {-15,18,36}, {-11,0,36}, {-11,18,36}, {-11,18,40}, {-11,0,40}, {-69,0,36}, {-69,0,40}, {-69,18,40}, {-69,18,36}, {-65,0,36}, {-65,18,36}, {-65,18,40}, {-65,0,40}, {-122,0,36}, {-122,0,40}, {-122,18,40}, {-122,18,36}, {-118,0,36}, {-118,18,36}, {-118,18,40}, {-118,0,40}, {-120,16,41}, {-120,16,39}, {-120,14,39}, {-120,14,41}, {34,14,39}, {34,16,39}, {34,16,41}, {34,14,41}, {-40,0,-122}, {-40,0,-118}, {-40,18,-118}, {-40,18,-122}, {-36,0,-122}, {-36,18,-122}, {-36,18,-118}, {-36,0,-118}, {-40,0,-95}, {-40,0,-91}, {-40,18,-91}, {-40,18,-95}, {-36,0,-95}, {-36,18,-95}, {-36,18,-91}, {-36,0,-91}, {-40,0,-69}, {-40,0,-65}, {-40,18,-65}, {-40,18,-69}, {-36,0,-69}, {-36,18,-69}, {-36,18,-65}, {-36,0,-65}, {-40,0,-42}, {-40,0,-38}, {-40,18,-38}, {-40,18,-42}, {-36,0,-42}, {-36,18,-42}, {-36,18,-38}, {-36,0,-38}, {-39,14,-34}, {-39,14,-40}, {-39,16,-40}, {-39,16,-34}, {-121,14,-34}, {-121,16,-34}, {-121,16,-40}, {-121,14,-40}, {-42,0,-40}, {-42,0,-36}, {-42,18,-36}, {-42,18,-40}, {-38,0,-40}, {-38,18,-40}, {-38,18,-36}, {-38,0,-36}, {-69,0,-40}, {-69,0,-36}, {-69,18,-36}, {-69,18,-40}, {-65,0,-40}, {-65,18,-40}, {-65,18,-36}, {-65,0,-36}, {-95,0,-40}, {-95,0,-36}, {-95,18,-36}, {-95,18,-40}, {-91,0,-40}, {-91,18,-40}, {-91,18,-36}, {-91,0,-36}, {-122,0,-40}, {-122,0,-36}, {-122,18,-36}, {-122,18,-40}, {-118,0,-40}, {-118,18,-40}, {-118,18,-36}, {-118,0,-36}, {-120,14,-39}, {-120,14,-35}, {-120,16,-35}, {-120,16,-39}, {-40,14,-39}, {-40,16,-39}, {-40,16,-35}, {-40,14,-35}};
-static const uint16_t i_plank_corner_l[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,6,4,11,12,8,6,10,2,9,13,14,9,12,15,13,4,3,16,17,11,4,17,18,19,20,21,22,23,24,25,26,20,26,25,21,19,23,26,20,22,21,25,24,27,28,29,30,31,32,33,34,28,34,33,29,27,31,34,28,30,29,33,32,35,36,37,38,39,40,41,42,36,42,41,37,35,39,42,36,38,37,41,40,43,44,45,46,47,48,49,50,44,50,49,45,43,47,50,44,46,45,49,48,51,51,52,52,53,54,54,53,51,53,54,52,51,53,53,51,52,52,54,54,55,56,57,58,59,60,61,62,56,62,61,57,55,59,62,56,58,57,61,60,63,64,65,66,67,68,69,70,64,70,69,65,63,67,70,64,66,65,69,68,71,72,73,74,75,76,77,78,72,78,77,73,71,75,78,72,74,73,77,76,79,80,81,82,83,84,85,86,80,86,85,81,79,83,86,80,82,81,85,84,87,88,89,90,91,92,93,94,88,92,91,89,89,91,94,90,93,92,88,87,95,96,97,98,99,100,101,102,96,102,101,97,95,99,102,96,98,97,101,100,103,104,105,106,107,108,109,110,104,110,109,105,103,107,110,104,106,105,109,108,111,112,113,114,115,116,117,118,112,118,117,113,111,115,118,112,114,113,117,116,119,120,121,122,123,124,125,126,120,126,125,121,119,123,126,120,122,121,125,124,127,128,129,130,131,132,133,134,128,134,133,129,127,131,134,128,130,129,133,132,135,136,137,138,139,140,141,142,136,142,141,137,135,139,142,136,138,137,141,140,143,144,145,146,147,148,149,150,144,150,149,145,143,147,150,144,146,145,149,148,151,152,153,154,155,156,157,158,152,158,157,153,151,155,158,152,154,153,157,156,159,160,161,162,163,164,165,166,160,166,165,161,159,163,166,160,162,161,165,164,167,168,169,170,171,172,173,174,168,174,173,169,167,171,174,168,170,169,173,172};
-static const MFace f_plank_corner_l[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,0,127,0,0,0,0x8D5E35}, {20,4,0,127,0,0,0,0x7B5030}, {24,4,127,0,0,0,0,0x5A3B20}, {28,4,0,0,127,0,0,0x5A3B20}, {32,4,-127,0,0,0,0,0x5A3B20}, {36,4,0,0,-127,0,0,0x5A3B20}, {40,4,-127,0,0,0,0,0x6E4A2A}, {44,4,127,0,0,0,0,0x6E4A2A}, {48,4,0,0,127,0,0,0x6E4A2A}, {52,4,0,-127,0,0,0,0x6E4A2A}, {56,4,0,127,0,0,0,0x6E4A2A}, {60,4,-127,0,0,0,0,0x6E4A2A}, {64,4,127,0,0,0,0,0x6E4A2A}, {68,4,0,0,127,0,0,0x6E4A2A}, {72,4,0,-127,0,0,0,0x6E4A2A}, {76,4,0,127,0,0,0,0x6E4A2A}, {80,4,-127,0,0,0,0,0x6E4A2A}, {84,4,127,0,0,0,0,0x6E4A2A}, {88,4,0,0,127,0,0,0x6E4A2A}, {92,4,0,-127,0,0,0,0x6E4A2A}, {96,4,0,127,0,0,0,0x6E4A2A}, {100,4,-127,0,0,0,0,0x6E4A2A}, {104,4,127,0,0,0,0,0x6E4A2A}, {108,4,0,0,127,0,0,0x6E4A2A}, {112,4,0,-127,0,0,0,0x6E4A2A}, {116,4,0,127,0,0,0,0x6E4A2A}, {120,4,0,0,0,0,0,0x6E4A2A}, {124,4,0,0,0,0,0,0x6E4A2A}, {128,4,0,0,-127,0,0,0x6E4A2A}, {132,4,0,0,0,0,0,0x6E4A2A}, {136,4,0,0,0,0,0,0x6E4A2A}, {140,4,-127,0,0,0,0,0x6E4A2A}, {144,4,127,0,0,0,0,0x6E4A2A}, {148,4,0,0,127,0,0,0x6E4A2A}, {152,4,0,-127,0,0,0,0x6E4A2A}, {156,4,0,127,0,0,0,0x6E4A2A}, {160,4,-127,0,0,0,0,0x6E4A2A}, {164,4,127,0,0,0,0,0x6E4A2A}, {168,4,0,0,127,0,0,0x6E4A2A}, {172,4,0,-127,0,0,0,0x6E4A2A}, {176,4,0,127,0,0,0,0x6E4A2A}, {180,4,-127,0,0,0,0,0x6E4A2A}, {184,4,127,0,0,0,0,0x6E4A2A}, {188,4,0,0,127,0,0,0x6E4A2A}, {192,4,0,-127,0,0,0,0x6E4A2A}, {196,4,0,127,0,0,0,0x6E4A2A}, {200,4,-127,0,0,0,0,0x6E4A2A}, {204,4,127,0,0,0,0,0x6E4A2A}, {208,4,0,0,127,0,0,0x6E4A2A}, {212,4,0,-127,0,0,0,0x6E4A2A}, {216,4,0,127,0,0,0,0x6E4A2A}, {220,4,-127,0,0,0,0,0x6E4A2A}, {224,4,127,0,0,0,0,0x6E4A2A}, {228,4,0,0,-127,0,0,0x6E4A2A}, {232,4,0,-127,0,0,0,0x6E4A2A}, {236,4,0,127,0,0,0,0x6E4A2A}, {240,4,-127,0,0,0,0,0x6E4A2A}, {244,4,127,0,0,0,0,0x6E4A2A}, {248,4,0,0,127,0,0,0x6E4A2A}, {252,4,0,-127,0,0,0,0x6E4A2A}, {256,4,0,127,0,0,0,0x6E4A2A}, {260,4,-127,0,0,0,0,0x6E4A2A}, {264,4,127,0,0,0,0,0x6E4A2A}, {268,4,0,0,127,0,0,0x6E4A2A}, {272,4,0,-127,0,0,0,0x6E4A2A}, {276,4,0,127,0,0,0,0x6E4A2A}, {280,4,-127,0,0,0,0,0x6E4A2A}, {284,4,127,0,0,0,0,0x6E4A2A}, {288,4,0,0,127,0,0,0x6E4A2A}, {292,4,0,-127,0,0,0,0x6E4A2A}, {296,4,0,127,0,0,0,0x6E4A2A}, {300,4,-127,0,0,0,0,0x6E4A2A}, {304,4,127,0,0,0,0,0x6E4A2A}, {308,4,0,0,127,0,0,0x6E4A2A}, {312,4,0,-127,0,0,0,0x6E4A2A}, {316,4,0,127,0,0,0,0x6E4A2A}, {320,4,127,0,0,0,0,0x6E4A2A}, {324,4,-127,0,0,0,0,0x6E4A2A}, {328,4,0,0,-127,0,0,0x6E4A2A}, {332,4,0,-127,0,0,0,0x6E4A2A}, {336,4,0,127,0,0,0,0x6E4A2A}, {340,4,-127,0,0,0,0,0x6E4A2A}, {344,4,127,0,0,0,0,0x6E4A2A}, {348,4,0,0,127,0,0,0x6E4A2A}, {352,4,0,-127,0,0,0,0x6E4A2A}, {356,4,0,127,0,0,0,0x6E4A2A}, {360,4,-127,0,0,0,0,0x6E4A2A}, {364,4,127,0,0,0,0,0x6E4A2A}, {368,4,0,0,127,0,0,0x6E4A2A}, {372,4,0,-127,0,0,0,0x6E4A2A}, {376,4,0,127,0,0,0,0x6E4A2A}, {380,4,-127,0,0,0,0,0x6E4A2A}, {384,4,127,0,0,0,0,0x6E4A2A}, {388,4,0,0,127,0,0,0x6E4A2A}, {392,4,0,-127,0,0,0,0x6E4A2A}, {396,4,0,127,0,0,0,0x6E4A2A}, {400,4,-127,0,0,0,0,0x6E4A2A}, {404,4,127,0,0,0,0,0x6E4A2A}, {408,4,0,0,127,0,0,0x6E4A2A}, {412,4,0,-127,0,0,0,0x6E4A2A}, {416,4,0,127,0,0,0,0x6E4A2A}, {420,4,-127,0,0,0,0,0x6E4A2A}, {424,4,127,0,0,0,0,0x6E4A2A}, {428,4,0,0,127,0,0,0x6E4A2A}, {432,4,0,-127,0,0,0,0x6E4A2A}, {436,4,0,127,0,0,0,0x6E4A2A}};
-static const MVert v_plank_corner_l_far[] = {{-40,0,40}, {40,0,40}, {40,0,-120}, {-40,0,-120}, {-120,0,40}, {-40,0,-40}, {-120,0,-40}};
-static const uint16_t i_plank_corner_l_far[] = {0,1,2,3,4,0,5,6};
-static const MFace f_plank_corner_l_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}};
-static const MVert v_plank_corner_r[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {120,0,0}, {120,0,-40}, {120,0,40}, {-40,-168,-120}, {-40,-168,40}, {120,-168,40}, {40,-168,-40}, {40,-168,-120}, {120,-168,-40}, {-40,0,-122}, {-40,0,-118}, {-40,18,-118}, {-40,18,-122}, {-36,0,-122}, {-36,18,-122}, {-36,18,-118}, {-36,0,-118}, {-40,0,-69}, {-40,0,-65}, {-40,18,-65}, {-40,18,-69}, {-36,0,-69}, {-36,18,-69}, {-36,18,-65}, {-36,0,-65}, {-40,0,-15}, {-40,0,-11}, {-40,18,-11}, {-40,18,-15}, {-36,0,-15}, {-36,18,-15}, {-36,18,-11}, {-36,0,-11}, {-40,0,38}, {-40,0,42}, {-40,18,42}, {-40,18,38}, {-36,0,38}, {-36,18,38}, {-36,18,42}, {-36,0,42}, {-39,16,-34}, {-39,16,40}, {-39,14,40}, {-39,14,-34}, {-121,14,40}, {-121,16,40}, {-121,16,-34}, {-121,14,-34}, {-42,0,36}, {-42,0,40}, {-42,18,40}, {-42,18,36}, {-38,0,36}, {-38,18,36}, {-38,18,40}, {-38,0,40}, {11,0,36}, {11,0,40}, {11,18,40}, {11,18,36}, {15,0,36}, {15,18,36}, {15,18,40}, {15,0,40}, {65,0,36}, {65,0,40}, {65,18,40}, {65,18,36}, {69,0,36}, {69,18,36}, {69,18,40}, {69,0,40}, {118,0,36}, {118,0,40}, {118,18,40}, {118,18,36}, {122,0,36}, {122,18,36}, {122,18,40}, {122,0,40}, {-40,16,121}, {-40,16,39}, {-40,14,39}, {-40,14,121}, {34,14,39}, {34,16,39}, {34,16,121}, {34,14,121}, {36,0,-122}, {36,0,-118}, {36,18,-118}, {36,18,-122}, {40,0,-122}, {40,18,-122}, {40,18,-118}, {40,0,-118}, {36,0,-95}, {36,0,-91}, {36,18,-91}, {36,18,-95}, {40,0,-95}, {40,18,-95}, {40,18,-91}, {40,0,-91}, {36,0,-69}, {36,0,-65}, {36,18,-65}, {36,18,-69}, {40,0,-69}, {40,18,-69}, {40,18,-65}, {40,0,-65}, {36,0,-42}, {36,0,-38}, {36,18,-38}, {36,18,-42}, {40,0,-42}, {40,18,-42}, {40,18,-38}, {40,0,-38}, {35,14,40}, {35,14,-40}, {35,16,-40}, {35,16,40}, {-121,16,-40}, {-121,14,-40}, {38,0,-40}, {38,0,-36}, {38,18,-36}, {38,18,-40}, {42,0,-40}, {42,18,-40}, {42,18,-36}, {42,0,-36}, {65,0,-40}, {65,0,-36}, {65,18,-36}, {65,18,-40}, {69,0,-40}, {69,18,-40}, {69,18,-36}, {69,0,-36}, {91,0,-40}, {91,0,-36}, {91,18,-36}, {91,18,-40}, {95,0,-40}, {95,18,-40}, {95,18,-36}, {95,0,-36}, {118,0,-40}, {118,0,-36}, {118,18,-36}, {118,18,-40}, {122,0,-40}, {122,18,-40}, {122,18,-36}, {122,0,-36}, {40,14,121}, {40,14,-35}, {40,16,-35}, {40,16,121}, {-40,16,-35}, {-40,14,-35}};
-static const uint16_t i_plank_corner_r[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,7,10,11,5,9,12,10,7,13,14,8,3,14,15,12,8,16,17,2,5,18,16,5,11,19,20,21,22,23,24,25,26,20,26,25,21,19,23,26,20,22,21,25,24,27,28,29,30,31,32,33,34,28,34,33,29,27,31,34,28,30,29,33,32,35,36,37,38,39,40,41,42,36,42,41,37,35,39,42,36,38,37,41,40,43,44,45,46,47,48,49,50,44,50,49,45,43,47,50,44,46,45,49,48,51,52,53,54,55,56,57,58,52,56,55,53,53,55,58,54,57,56,52,51,59,60,61,62,63,64,65,66,60,66,65,61,59,63,66,60,62,61,65,64,67,68,69,70,71,72,73,74,68,74,73,69,67,71,74,68,70,69,73,72,75,76,77,78,79,80,81,82,76,82,81,77,75,79,82,76,78,77,81,80,83,84,85,86,87,88,89,90,84,90,89,85,83,87,90,84,86,85,89,88,91,92,93,94,95,96,97,98,92,96,95,93,93,95,98,94,97,96,92,91,99,100,101,102,103,104,105,106,100,106,105,101,99,103,106,100,102,101,105,104,107,108,109,110,111,112,113,114,108,114,113,109,107,111,114,108,110,109,113,112,115,116,117,118,119,120,121,122,116,122,121,117,115,119,122,116,118,117,121,120,123,124,125,126,127,128,129,130,124,130,129,125,123,127,130,124,126,125,129,128,131,132,133,134,55,56,135,136,132,136,135,133,131,55,136,132,134,133,135,56,137,138,139,140,141,142,143,144,138,144,143,139,137,141,144,138,140,139,143,142,145,146,147,148,149,150,151,152,146,152,151,147,145,149,152,146,148,147,151,150,153,154,155,156,157,158,159,160,154,160,159,155,153,157,160,154,156,155,159,158,161,162,163,164,165,166,167,168,162,168,167,163,161,165,168,162,164,163,167,166,169,170,171,172,94,91,173,174,170,174,173,171,169,94,174,170,172,171,173,91};
-static const MFace f_plank_corner_r[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,0,127,0,0,0,0x8D5E35}, {20,4,0,127,0,0,0,0x7B5030}, {24,4,-127,0,0,0,0,0x5A3B20}, {28,4,0,0,127,0,0,0x5A3B20}, {32,4,127,0,0,0,0,0x5A3B20}, {36,4,0,0,-127,0,0,0x5A3B20}, {40,4,-127,0,0,0,0,0x6E4A2A}, {44,4,127,0,0,0,0,0x6E4A2A}, {48,4,0,0,127,0,0,0x6E4A2A}, {52,4,0,-127,0,0,0,0x6E4A2A}, {56,4,0,127,0,0,0,0x6E4A2A}, {60,4,-127,0,0,0,0,0x6E4A2A}, {64,4,127,0,0,0,0,0x6E4A2A}, {68,4,0,0,127,0,0,0x6E4A2A}, {72,4,0,-127,0,0,0,0x6E4A2A}, {76,4,0,127,0,0,0,0x6E4A2A}, {80,4,-127,0,0,0,0,0x6E4A2A}, {84,4,127,0,0,0,0,0x6E4A2A}, {88,4,0,0,127,0,0,0x6E4A2A}, {92,4,0,-127,0,0,0,0x6E4A2A}, {96,4,0,127,0,0,0,0x6E4A2A}, {100,4,-127,0,0,0,0,0x6E4A2A}, {104,4,127,0,0,0,0,0x6E4A2A}, {108,4,0,0,127,0,0,0x6E4A2A}, {112,4,0,-127,0,0,0,0x6E4A2A}, {116,4,0,127,0,0,0,0x6E4A2A}, {120,4,127,0,0,0,0,0x6E4A2A}, {124,4,-127,0,0,0,0,0x6E4A2A}, {128,4,0,0,127,0,0,0x6E4A2A}, {132,4,0,-127,0,0,0,0x6E4A2A}, {136,4,0,127,0,0,0,0x6E4A2A}, {140,4,-127,0,0,0,0,0x6E4A2A}, {144,4,127,0,0,0,0,0x6E4A2A}, {148,4,0,0,127,0,0,0x6E4A2A}, {152,4,0,-127,0,0,0,0x6E4A2A}, {156,4,0,127,0,0,0,0x6E4A2A}, {160,4,-127,0,0,0,0,0x6E4A2A}, {164,4,127,0,0,0,0,0x6E4A2A}, {168,4,0,0,127,0,0,0x6E4A2A}, {172,4,0,-127,0,0,0,0x6E4A2A}, {176,4,0,127,0,0,0,0x6E4A2A}, {180,4,-127,0,0,0,0,0x6E4A2A}, {184,4,127,0,0,0,0,0x6E4A2A}, {188,4,0,0,127,0,0,0x6E4A2A}, {192,4,0,-127,0,0,0,0x6E4A2A}, {196,4,0,127,0,0,0,0x6E4A2A}, {200,4,-127,0,0,0,0,0x6E4A2A}, {204,4,127,0,0,0,0,0x6E4A2A}, {208,4,0,0,127,0,0,0x6E4A2A}, {212,4,0,-127,0,0,0,0x6E4A2A}, {216,4,0,127,0,0,0,0x6E4A2A}, {220,4,-127,0,0,0,0,0x6E4A2A}, {224,4,127,0,0,0,0,0x6E4A2A}, {228,4,0,0,-127,0,0,0x6E4A2A}, {232,4,0,-127,0,0,0,0x6E4A2A}, {236,4,0,127,0,0,0,0x6E4A2A}, {240,4,-127,0,0,0,0,0x6E4A2A}, {244,4,127,0,0,0,0,0x6E4A2A}, {248,4,0,0,127,0,0,0x6E4A2A}, {252,4,0,-127,0,0,0,0x6E4A2A}, {256,4,0,127,0,0,0,0x6E4A2A}, {260,4,-127,0,0,0,0,0x6E4A2A}, {264,4,127,0,0,0,0,0x6E4A2A}, {268,4,0,0,127,0,0,0x6E4A2A}, {272,4,0,-127,0,0,0,0x6E4A2A}, {276,4,0,127,0,0,0,0x6E4A2A}, {280,4,-127,0,0,0,0,0x6E4A2A}, {284,4,127,0,0,0,0,0x6E4A2A}, {288,4,0,0,127,0,0,0x6E4A2A}, {292,4,0,-127,0,0,0,0x6E4A2A}, {296,4,0,127,0,0,0,0x6E4A2A}, {300,4,-127,0,0,0,0,0x6E4A2A}, {304,4,127,0,0,0,0,0x6E4A2A}, {308,4,0,0,127,0,0,0x6E4A2A}, {312,4,0,-127,0,0,0,0x6E4A2A}, {316,4,0,127,0,0,0,0x6E4A2A}, {320,4,127,0,0,0,0,0x6E4A2A}, {324,4,-127,0,0,0,0,0x6E4A2A}, {328,4,0,0,-127,0,0,0x6E4A2A}, {332,4,0,-127,0,0,0,0x6E4A2A}, {336,4,0,127,0,0,0,0x6E4A2A}, {340,4,-127,0,0,0,0,0x6E4A2A}, {344,4,127,0,0,0,0,0x6E4A2A}, {348,4,0,0,127,0,0,0x6E4A2A}, {352,4,0,-127,0,0,0,0x6E4A2A}, {356,4,0,127,0,0,0,0x6E4A2A}, {360,4,-127,0,0,0,0,0x6E4A2A}, {364,4,127,0,0,0,0,0x6E4A2A}, {368,4,0,0,127,0,0,0x6E4A2A}, {372,4,0,-127,0,0,0,0x6E4A2A}, {376,4,0,127,0,0,0,0x6E4A2A}, {380,4,-127,0,0,0,0,0x6E4A2A}, {384,4,127,0,0,0,0,0x6E4A2A}, {388,4,0,0,127,0,0,0x6E4A2A}, {392,4,0,-127,0,0,0,0x6E4A2A}, {396,4,0,127,0,0,0,0x6E4A2A}, {400,4,-127,0,0,0,0,0x6E4A2A}, {404,4,127,0,0,0,0,0x6E4A2A}, {408,4,0,0,127,0,0,0x6E4A2A}, {412,4,0,-127,0,0,0,0x6E4A2A}, {416,4,0,127,0,0,0,0x6E4A2A}, {420,4,127,0,0,0,0,0x6E4A2A}, {424,4,-127,0,0,0,0,0x6E4A2A}, {428,4,0,0,-127,0,0,0x6E4A2A}, {432,4,0,-127,0,0,0,0x6E4A2A}, {436,4,0,127,0,0,0,0x6E4A2A}};
-static const MVert v_plank_corner_r_far[] = {{-40,0,40}, {40,0,40}, {40,0,-120}, {-40,0,-120}, {120,0,40}, {120,0,-40}, {40,0,-40}};
-static const uint16_t i_plank_corner_r_far[] = {0,1,2,3,1,4,5,6};
-static const MFace f_plank_corner_r_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}};
-static const MVert v_plank_t[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-120,0,40}, {-80,0,40}, {-80,0,-40}, {-120,0,-40}, {-40,0,40}, {0,0,40}, {0,0,-40}, {40,0,40}, {80,0,40}, {80,0,-40}, {120,0,40}, {120,0,-40}, {-120,-168,40}, {120,-168,40}, {-40,-168,-120}, {-40,-168,-40}, {40,-168,-40}, {40,-168,-120}, {-120,-168,-40}, {120,-168,-40}, {-122,0,36}, {-122,0,40}, {-122,18,40}, {-122,18,36}, {-118,0,36}, {-118,18,36}, {-118,18,40}, {-118,0,40}, {-42,0,36}, {-42,0,40}, {-42,18,40}, {-42,18,36}, {-38,0,36}, {-38,18,36}, {-38,18,40}, {-38,0,40}, {38,0,36}, {38,0,40}, {38,18,40}, {38,18,36}, {42,0,36}, {42,18,36}, {42,18,40}, {42,0,40}, {118,0,36}, {118,0,40}, {118,18,40}, {118,18,36}, {122,0,36}, {122,18,36}, {122,18,40}, {122,0,40}, {-120,16,121}, {-120,16,39}, {-120,14,39}, {-120,14,121}, {34,14,39}, {34,16,39}, {34,16,121}, {34,14,121}, {-40,0,-122}, {-40,0,-118}, {-40,18,-118}, {-40,18,-122}, {-36,0,-122}, {-36,18,-122}, {-36,18,-118}, {-36,0,-118}, {-40,0,-95}, {-40,0,-91}, {-40,18,-91}, {-40,18,-95}, {-36,0,-95}, {-36,18,-95}, {-36,18,-91}, {-36,0,-91}, {-40,0,-69}, {-40,0,-65}, {-40,18,-65}, {-40,18,-69}, {-36,0,-69}, {-36,18,-69}, {-36,18,-65}, {-36,0,-65}, {-40,0,-42}, {-40,0,-38}, {-40,18,-38}, {-40,18,-42}, {-36,0,-42}, {-36,18,-42}, {-36,18,-38}, {-36,0,-38}, {-39,14,-34}, {-39,14,-40}, {-39,16,-40}, {-39,16,-34}, {-121,14,-34}, {-121,16,-34}, {-121,16,-40}, {-121,14,-40}, {36,0,-122}, {36,0,-118}, {36,18,-118}, {36,18,-122}, {40,0,-122}, {40,18,-122}, {40,18,-118}, {40,0,-118}, {36,0,-95}, {36,0,-91}, {36,18,-91}, {36,18,-95}, {40,0,-95}, {40,18,-95}, {40,18,-91}, {40,0,-91}, {36,0,-69}, {36,0,-65}, {36,18,-65}, {36,18,-69}, {40,0,-69}, {40,18,-69}, {40,18,-65}, {40,0,-65}, {36,0,-42}, {36,0,-38}, {36,18,-38}, {36,18,-42}, {40,0,-42}, {40,18,-42}, {40,18,-38}, {40,0,-38}, {35,14,40}, {35,14,-40}, {35,16,-40}, {35,16,40}, {-121,14,40}, {-121,16,40}, {-122,0,-40}, {-122,0,-36}, {-122,18,-36}, {-122,18,-40}, {-118,0,-40}, {-118,18,-40}, {-118,18,-36}, {-118,0,-36}, {-95,0,-40}, {-95,0,-36}, {-95,18,-36}, {-95,18,-40}, {-91,0,-40}, {-91,18,-40}, {-91,18,-36}, {-91,0,-36}, {-69,0,-40}, {-69,0,-36}, {-69,18,-36}, {-69,18,-40}, {-65,0,-40}, {-65,18,-40}, {-65,18,-36}, {-65,0,-36}, {-42,0,-40}, {-42,0,-36}, {-42,18,-36}, {-42,18,-40}, {-38,0,-40}, {-38,18,-40}, {-38,18,-36}, {-38,0,-36}, {-120,14,-39}, {-120,14,-35}, {-120,16,-35}, {-120,16,-39}, {-40,14,-39}, {-40,16,-39}, {-40,16,-35}, {-40,14,-35}, {38,0,-40}, {38,0,-36}, {38,18,-36}, {38,18,-40}, {42,0,-40}, {42,18,-40}, {42,18,-36}, {42,0,-36}, {65,0,-40}, {65,0,-36}, {65,18,-36}, {65,18,-40}, {69,0,-40}, {69,18,-40}, {69,18,-36}, {69,0,-36}, {91,0,-40}, {91,0,-36}, {91,18,-36}, {91,18,-40}, {95,0,-40}, {95,18,-40}, {95,18,-36}, {95,0,-36}, {118,0,-40}, {118,0,-36}, {118,18,-36}, {118,18,-40}, {122,0,-40}, {122,18,-40}, {122,18,-36}, {122,0,-36}, {40,14,121}, {40,14,-35}, {40,16,-35}, {40,16,121}, {-40,14,121}, {-40,16,121}};
-static const uint16_t i_plank_t[] = {0,1,2,3,4,5,1,0,6,7,8,9,7,10,4,8,10,11,12,4,11,13,5,12,13,14,15,5,14,16,17,15,18,19,16,6,4,3,20,21,2,5,22,23,21,24,9,4,25,22,5,17,26,27,28,29,30,31,32,33,27,33,32,28,26,30,33,27,29,28,32,31,34,35,36,37,38,39,40,41,35,41,40,36,34,38,41,35,37,36,40,39,42,43,44,45,46,47,48,49,43,49,48,44,42,46,49,43,45,44,48,47,50,51,52,53,54,55,56,57,51,57,56,52,50,54,57,51,53,52,56,55,58,59,60,61,62,63,64,65,59,63,62,60,60,62,65,61,64,63,59,58,66,67,68,69,70,71,72,73,67,73,72,68,66,70,73,67,69,68,72,71,74,75,76,77,78,79,80,81,75,81,80,76,74,78,81,75,77,76,80,79,82,83,84,85,86,87,88,89,83,89,88,84,82,86,89,83,85,84,88,87,90,91,92,93,94,95,96,97,91,97,96,92,90,94,97,91,93,92,96,95,98,99,100,101,102,103,104,105,99,105,104,100,98,102,105,99,101,100,104,103,106,107,108,109,110,111,112,113,107,113,112,108,106,110,113,107,109,108,112,111,114,115,116,117,118,119,120,121,115,121,120,116,114,118,121,115,117,116,120,119,122,123,124,125,126,127,128,129,123,129,128,124,122,126,129,123,125,124,128,127,130,131,132,133,134,135,136,137,131,137,136,132,130,134,137,131,133,132,136,135,138,139,140,141,142,143,104,105,139,105,104,140,138,142,105,139,141,140,104,143,144,145,146,147,148,149,150,151,145,151,150,146,144,148,151,145,147,146,150,149,152,153,154,155,156,157,158,159,153,159,158,154,152,156,159,153,155,154,158,157,160,161,162,163,164,165,166,167,161,167,166,162,160,164,167,161,163,162,166,165,168,169,170,171,172,173,174,175,169,175,174,170,168,172,175,169,171,170,174,173,176,177,178,179,180,181,182,183,177,183,182,178,176,180,183,177,179,178,182,181,184,185,186,187,188,189,190,191,185,191,190,186,184,188,191,185,187,186,190,189,192,193,194,195,196,197,198,199,193,199,198,194,192,196,199,193,195,194,198,197,200,201,202,203,204,205,206,207,201,207,206,202,200,204,207,201,203,202,206,205,208,209,210,211,212,213,214,215,209,215,214,210,208,212,215,209,211,210,214,213,216,217,218,219,220,221,182,183,217,183,182,218,216,220,183,217,219,218,182,221};
-static const MFace f_plank_t[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x7B5030}, {8,4,0,127,0,0,0,0x8D5E35}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,0,127,0,0,0,0x8D5E35}, {20,4,0,127,0,0,0,0x7B5030}, {24,4,0,127,0,0,0,0x8D5E35}, {28,4,0,127,0,0,0,0x7B5030}, {32,4,0,0,127,0,0,0x5A3B20}, {36,4,-127,0,0,0,0,0x5A3B20}, {40,4,127,0,0,0,0,0x5A3B20}, {44,4,0,0,-127,0,0,0x5A3B20}, {48,4,0,0,-127,0,0,0x5A3B20}, {52,4,-127,0,0,0,0,0x6E4A2A}, {56,4,127,0,0,0,0,0x6E4A2A}, {60,4,0,0,127,0,0,0x6E4A2A}, {64,4,0,-127,0,0,0,0x6E4A2A}, {68,4,0,127,0,0,0,0x6E4A2A}, {72,4,-127,0,0,0,0,0x6E4A2A}, {76,4,127,0,0,0,0,0x6E4A2A}, {80,4,0,0,127,0,0,0x6E4A2A}, {84,4,0,-127,0,0,0,0x6E4A2A}, {88,4,0,127,0,0,0,0x6E4A2A}, {92,4,-127,0,0,0,0,0x6E4A2A}, {96,4,127,0,0,0,0,0x6E4A2A}, {100,4,0,0,127,0,0,0x6E4A2A}, {104,4,0,-127,0,0,0,0x6E4A2A}, {108,4,0,127,0,0,0,0x6E4A2A}, {112,4,-127,0,0,0,0,0x6E4A2A}, {116,4,127,0,0,0,0,0x6E4A2A}, {120,4,0,0,127,0,0,0x6E4A2A}, {124,4,0,-127,0,0,0,0x6E4A2A}, {128,4,0,127,0,0,0,0x6E4A2A}, {132,4,-127,0,0,0,0,0x6E4A2A}, {136,4,127,0,0,0,0,0x6E4A2A}, {140,4,0,0,-127,0,0,0x6E4A2A}, {144,4,0,-127,0,0,0,0x6E4A2A}, {148,4,0,127,0,0,0,0x6E4A2A}, {152,4,-127,0,0,0,0,0x6E4A2A}, {156,4,127,0,0,0,0,0x6E4A2A}, {160,4,0,0,127,0,0,0x6E4A2A}, {164,4,0,-127,0,0,0,0x6E4A2A}, {168,4,0,127,0,0,0,0x6E4A2A}, {172,4,-127,0,0,0,0,0x6E4A2A}, {176,4,127,0,0,0,0,0x6E4A2A}, {180,4,0,0,127,0,0,0x6E4A2A}, {184,4,0,-127,0,0,0,0x6E4A2A}, {188,4,0,127,0,0,0,0x6E4A2A}, {192,4,-127,0,0,0,0,0x6E4A2A}, {196,4,127,0,0,0,0,0x6E4A2A}, {200,4,0,0,127,0,0,0x6E4A2A}, {204,4,0,-127,0,0,0,0x6E4A2A}, {208,4,0,127,0,0,0,0x6E4A2A}, {212,4,-127,0,0,0,0,0x6E4A2A}, {216,4,127,0,0,0,0,0x6E4A2A}, {220,4,0,0,127,0,0,0x6E4A2A}, {224,4,0,-127,0,0,0,0x6E4A2A}, {228,4,0,127,0,0,0,0x6E4A2A}, {232,4,127,0,0,0,0,0x6E4A2A}, {236,4,-127,0,0,0,0,0x6E4A2A}, {240,4,0,0,-127,0,0,0x6E4A2A}, {244,4,0,-127,0,0,0,0x6E4A2A}, {248,4,0,127,0,0,0,0x6E4A2A}, {252,4,-127,0,0,0,0,0x6E4A2A}, {256,4,127,0,0,0,0,0x6E4A2A}, {260,4,0,0,127,0,0,0x6E4A2A}, {264,4,0,-127,0,0,0,0x6E4A2A}, {268,4,0,127,0,0,0,0x6E4A2A}, {272,4,-127,0,0,0,0,0x6E4A2A}, {276,4,127,0,0,0,0,0x6E4A2A}, {280,4,0,0,127,0,0,0x6E4A2A}, {284,4,0,-127,0,0,0,0x6E4A2A}, {288,4,0,127,0,0,0,0x6E4A2A}, {292,4,-127,0,0,0,0,0x6E4A2A}, {296,4,127,0,0,0,0,0x6E4A2A}, {300,4,0,0,127,0,0,0x6E4A2A}, {304,4,0,-127,0,0,0,0x6E4A2A}, {308,4,0,127,0,0,0,0x6E4A2A}, {312,4,-127,0,0,0,0,0x6E4A2A}, {316,4,127,0,0,0,0,0x6E4A2A}, {320,4,0,0,127,0,0,0x6E4A2A}, {324,4,0,-127,0,0,0,0x6E4A2A}, {328,4,0,127,0,0,0,0x6E4A2A}, {332,4,127,0,0,0,0,0x6E4A2A}, {336,4,-127,0,0,0,0,0x6E4A2A}, {340,4,0,0,-127,0,0,0x6E4A2A}, {344,4,0,-127,0,0,0,0x6E4A2A}, {348,4,0,127,0,0,0,0x6E4A2A}, {352,4,-127,0,0,0,0,0x6E4A2A}, {356,4,127,0,0,0,0,0x6E4A2A}, {360,4,0,0,127,0,0,0x6E4A2A}, {364,4,0,-127,0,0,0,0x6E4A2A}, {368,4,0,127,0,0,0,0x6E4A2A}, {372,4,-127,0,0,0,0,0x6E4A2A}, {376,4,127,0,0,0,0,0x6E4A2A}, {380,4,0,0,127,0,0,0x6E4A2A}, {384,4,0,-127,0,0,0,0x6E4A2A}, {388,4,0,127,0,0,0,0x6E4A2A}, {392,4,-127,0,0,0,0,0x6E4A2A}, {396,4,127,0,0,0,0,0x6E4A2A}, {400,4,0,0,127,0,0,0x6E4A2A}, {404,4,0,-127,0,0,0,0x6E4A2A}, {408,4,0,127,0,0,0,0x6E4A2A}, {412,4,-127,0,0,0,0,0x6E4A2A}, {416,4,127,0,0,0,0,0x6E4A2A}, {420,4,0,0,127,0,0,0x6E4A2A}, {424,4,0,-127,0,0,0,0x6E4A2A}, {428,4,0,127,0,0,0,0x6E4A2A}, {432,4,-127,0,0,0,0,0x6E4A2A}, {436,4,127,0,0,0,0,0x6E4A2A}, {440,4,0,0,127,0,0,0x6E4A2A}, {444,4,0,-127,0,0,0,0x6E4A2A}, {448,4,0,127,0,0,0,0x6E4A2A}, {452,4,-127,0,0,0,0,0x6E4A2A}, {456,4,127,0,0,0,0,0x6E4A2A}, {460,4,0,0,127,0,0,0x6E4A2A}, {464,4,0,-127,0,0,0,0x6E4A2A}, {468,4,0,127,0,0,0,0x6E4A2A}, {472,4,-127,0,0,0,0,0x6E4A2A}, {476,4,127,0,0,0,0,0x6E4A2A}, {480,4,0,0,127,0,0,0x6E4A2A}, {484,4,0,-127,0,0,0,0x6E4A2A}, {488,4,0,127,0,0,0,0x6E4A2A}, {492,4,-127,0,0,0,0,0x6E4A2A}, {496,4,127,0,0,0,0,0x6E4A2A}, {500,4,0,0,127,0,0,0x6E4A2A}, {504,4,0,-127,0,0,0,0x6E4A2A}, {508,4,0,127,0,0,0,0x6E4A2A}, {512,4,-127,0,0,0,0,0x6E4A2A}, {516,4,127,0,0,0,0,0x6E4A2A}, {520,4,0,0,127,0,0,0x6E4A2A}, {524,4,0,-127,0,0,0,0x6E4A2A}, {528,4,0,127,0,0,0,0x6E4A2A}, {532,4,127,0,0,0,0,0x6E4A2A}, {536,4,-127,0,0,0,0,0x6E4A2A}, {540,4,0,0,-127,0,0,0x6E4A2A}, {544,4,0,-127,0,0,0,0x6E4A2A}, {548,4,0,127,0,0,0,0x6E4A2A}};
-static const MVert v_plank_t_far[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}};
-static const uint16_t i_plank_t_far[] = {0,1,2,3,4,5,6,7};
-static const MFace f_plank_t_far[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,0,127,0,0,0,0x8D5E35}};
-static const MVert v_plank_step_up[] = {{-40,12,-72}, {40,12,-72}, {40,12,-120}, {-40,12,-120}, {-40,-168,-120}, {-40,-168,-72}, {40,-168,-72}, {40,-168,-120}, {40,0,-120}, {-40,0,-120}, {-40,24,-24}, {40,24,-24}, {40,24,-72}, {-40,24,-72}, {-40,-168,-24}, {40,-168,-24}, {-40,36,24}, {40,36,24}, {40,36,-24}, {-40,36,-24}, {-40,-168,24}, {40,-168,24}, {-40,48,72}, {40,48,72}, {40,48,24}, {-40,48,24}, {-40,-168,72}, {40,-168,72}, {-40,60,120}, {40,60,120}, {40,60,72}, {-40,60,72}, {-40,-168,120}, {40,-168,120}};
-static const uint16_t i_plank_step_up[] = {0,1,2,3,0,3,4,5,2,1,6,7,3,2,8,9,10,11,12,13,10,13,5,14,12,11,15,6,13,12,1,0,16,17,18,19,16,19,14,20,18,17,21,15,19,18,11,10,22,23,24,25,22,25,20,26,24,23,27,21,25,24,17,16,28,29,30,31,28,31,26,32,30,29,33,27,31,30,23,22};
-static const MFace f_plank_step_up[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,-127,0,0,0,0,0x5A3B20}, {8,4,127,0,0,0,0,0x5A3B20}, {12,4,0,0,-127,0,0,0x5A3B20}, {16,4,0,127,0,0,0,0x7B5030}, {20,4,-127,0,0,0,0,0x5A3B20}, {24,4,127,0,0,0,0,0x5A3B20}, {28,4,0,0,-127,0,0,0x5A3B20}, {32,4,0,127,0,0,0,0x8D5E35}, {36,4,-127,0,0,0,0,0x5A3B20}, {40,4,127,0,0,0,0,0x5A3B20}, {44,4,0,0,-127,0,0,0x5A3B20}, {48,4,0,127,0,0,0,0x7B5030}, {52,4,-127,0,0,0,0,0x5A3B20}, {56,4,127,0,0,0,0,0x5A3B20}, {60,4,0,0,-127,0,0,0x5A3B20}, {64,4,0,127,0,0,0,0x8D5E35}, {68,4,-127,0,0,0,0,0x5A3B20}, {72,4,127,0,0,0,0,0x5A3B20}, {76,4,0,0,-127,0,0,0x5A3B20}};
-static const MVert v_plank_step_up_far[] = {{-40,60,120}, {40,60,120}, {40,12,-120}, {-40,12,-120}};
-static const uint16_t i_plank_step_up_far[] = {0,1,2,3};
-static const MFace f_plank_step_up_far[] = {{0,4,0,125,-25,0,0,0x8D5E35}};
-static const MVert v_plank_step_down[] = {{-40,0,-72}, {40,0,-72}, {40,0,-120}, {-40,0,-120}, {-40,-168,-120}, {-40,-168,-72}, {40,-168,-72}, {40,-168,-120}, {-40,-12,-24}, {40,-12,-24}, {40,-12,-72}, {-40,-12,-72}, {-40,-168,-24}, {40,-168,-24}, {-40,-24,24}, {40,-24,24}, {40,-24,-24}, {-40,-24,-24}, {-40,-168,24}, {40,-168,24}, {-40,-36,72}, {40,-36,72}, {40,-36,24}, {-40,-36,24}, {-40,-168,72}, {40,-168,72}, {-40,-48,120}, {40,-48,120}, {40,-48,72}, {-40,-48,72}, {-40,-168,120}, {40,-168,120}};
-static const uint16_t i_plank_step_down[] = {0,1,2,3,0,3,4,5,2,1,6,7,8,9,10,11,8,11,5,12,10,9,13,6,14,15,16,17,14,17,12,18,16,15,19,13,20,21,22,23,20,23,18,24,22,21,25,19,26,27,28,29,26,29,24,30,28,27,31,25};
-static const MFace f_plank_step_down[] = {{0,4,0,127,0,0,0,0x8D5E35}, {4,4,-127,0,0,0,0,0x5A3B20}, {8,4,127,0,0,0,0,0x5A3B20}, {12,4,0,127,0,0,0,0x7B5030}, {16,4,-127,0,0,0,0,0x5A3B20}, {20,4,127,0,0,0,0,0x5A3B20}, {24,4,0,127,0,0,0,0x8D5E35}, {28,4,-127,0,0,0,0,0x5A3B20}, {32,4,127,0,0,0,0,0x5A3B20}, {36,4,0,127,0,0,0,0x7B5030}, {40,4,-127,0,0,0,0,0x5A3B20}, {44,4,127,0,0,0,0,0x5A3B20}, {48,4,0,127,0,0,0,0x8D5E35}, {52,4,-127,0,0,0,0,0x5A3B20}, {56,4,127,0,0,0,0,0x5A3B20}};
-static const MVert v_plank_step_down_far[] = {{-40,-48,120}, {40,-48,120}, {40,0,-120}, {-40,0,-120}};
-static const uint16_t i_plank_step_down_far[] = {0,1,2,3};
-static const MFace f_plank_step_down_far[] = {{0,4,0,125,25,0,0,0x8D5E35}};
-static const MVert v_cliff_straight[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-40,0,80}, {40,0,80}, {-40,0,120}, {40,0,120}, {-40,-168,-120}, {-40,-168,120}, {40,-168,120}, {40,-168,-120}, {-40,10,-34}, {-40,10,120}, {-40,0,-34}, {-120,0,120}, {-120,10,120}, {-120,10,-34}, {-120,0,-34}, {34,10,40}, {34,10,120}, {34,0,120}, {34,0,40}, {-120,10,40}, {-120,0,40}};
-static const uint16_t i_cliff_straight[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,12,3,14,15,2,13,16,17,18,19,12,20,21,22,23,24,19,22,21,12,12,21,24,20,23,22,19,18,25,26,27,28,21,22,29,30,26,22,21,27,27,21,30,28,29,22,26,25};
-static const MFace f_cliff_straight[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x857D70}, {16,4,0,127,0,0,0,0x928A7C}, {20,4,0,127,0,0,0,0x857D70}, {24,4,-127,0,0,0,0,0x6C655A}, {28,4,127,0,0,0,0,0x6C655A}, {32,4,127,0,0,0,0,0x7B7366}, {36,4,-127,0,0,0,0,0x7B7366}, {40,4,0,0,127,0,0,0x7B7366}, {44,4,0,-127,0,0,0,0x7B7366}, {48,4,0,127,0,0,0,0x7B7366}, {52,4,127,0,0,0,0,0x7B7366}, {56,4,-127,0,0,0,0,0x7B7366}, {60,4,0,0,127,0,0,0x7B7366}, {64,4,0,-127,0,0,0,0x7B7366}, {68,4,0,127,0,0,0,0x7B7366}};
-static const MVert v_cliff_straight_far[] = {{-40,0,120}, {40,0,120}, {40,0,-120}, {-40,0,-120}, {-40,-96,-120}, {-40,-96,120}, {40,-96,120}, {40,-96,-120}};
-static const uint16_t i_cliff_straight_far[] = {0,1,2,3,0,3,4,5,2,1,6,7};
-static const MFace f_cliff_straight_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,-127,0,0,0,0,0x6C655A}, {8,4,127,0,0,0,0,0x6C655A}};
-static const MVert v_cliff_hole[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-40,-168,-120}, {-40,-168,-40}, {40,-168,-40}, {40,-168,-120}, {-40,0,-34}, {-40,10,-40}, {-40,10,-34}, {-120,0,-34}, {-120,10,-34}, {-120,10,-40}, {-120,0,-40}, {34,0,40}, {34,0,-40}, {34,10,-40}, {34,10,40}, {-120,0,40}, {-120,10,40}, {-40,0,120}, {40,0,120}, {40,0,40}, {-40,0,40}, {-40,-168,40}, {-40,-168,120}, {40,-168,120}, {40,-168,40}, {-40,10,120}, {40,0,-34}, {40,10,-34}, {40,10,120}, {34,0,120}, {34,10,120}, {40,10,40}};
-static const uint16_t i_cliff_hole[] = {0,1,2,3,0,3,4,5,2,1,6,7,8,0,9,10,11,12,13,14,0,14,13,9,8,11,14,0,10,9,13,12,15,16,17,18,19,20,13,14,16,14,13,17,15,19,14,16,18,17,13,20,21,22,23,24,21,24,25,26,23,22,27,28,8,21,29,10,30,31,32,22,21,22,32,29,8,30,22,21,10,29,32,31,15,33,34,18,23,35,32,22,33,22,32,34,15,23,22,33,18,34,32,35,5,6,1,0,28,25,24,23};
-static const MFace f_cliff_hole[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,-127,0,0,0,0,0x6C655A}, {8,4,127,0,0,0,0,0x6C655A}, {12,4,127,0,0,0,0,0x7B7366}, {16,4,-127,0,0,0,0,0x7B7366}, {20,4,0,0,-127,0,0,0x7B7366}, {24,4,0,-127,0,0,0,0x7B7366}, {28,4,0,127,0,0,0,0x7B7366}, {32,4,127,0,0,0,0,0x7B7366}, {36,4,-127,0,0,0,0,0x7B7366}, {40,4,0,0,-127,0,0,0x7B7366}, {44,4,0,-127,0,0,0,0x7B7366}, {48,4,0,127,0,0,0,0x7B7366}, {52,4,0,127,0,0,0,0x928A7C}, {56,4,-127,0,0,0,0,0x6C655A}, {60,4,127,0,0,0,0,0x6C655A}, {64,4,-127,0,0,0,0,0x7B7366}, {68,4,127,0,0,0,0,0x7B7366}, {72,4,0,0,127,0,0,0x7B7366}, {76,4,0,-127,0,0,0,0x7B7366}, {80,4,0,127,0,0,0,0x7B7366}, {84,4,-127,0,0,0,0,0x7B7366}, {88,4,127,0,0,0,0,0x7B7366}, {92,4,0,0,127,0,0,0x7B7366}, {96,4,0,-127,0,0,0,0x7B7366}, {100,4,0,127,0,0,0,0x7B7366}, {104,4,0,0,127,0,0,0x6C655A}, {108,4,0,0,-127,0,0,0x6C655A}};
-static const MVert v_cliff_hole_far[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-40,0,120}, {40,0,120}, {40,0,40}, {-40,0,40}, {-40,-96,-120}, {-40,-96,120}, {40,-96,120}, {40,-96,-120}};
-static const uint16_t i_cliff_hole_far[] = {0,1,2,3,4,5,6,7,4,3,8,9,2,5,10,11};
-static const MFace f_cliff_hole_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,-127,0,0,0,0,0x6C655A}, {12,4,127,0,0,0,0,0x6C655A}};
-static const MVert v_cliff_hole_long[] = {{-40,0,-68}, {40,0,-68}, {40,0,-120}, {-40,0,-120}, {-40,-168,-120}, {-40,-168,-68}, {40,-168,-68}, {40,-168,-120}, {-40,0,-34}, {-40,10,-68}, {-40,10,-34}, {-120,0,-34}, {-120,10,-34}, {-120,10,-68}, {-120,0,-68}, {34,0,40}, {34,0,-68}, {34,10,-68}, {34,10,40}, {-120,0,40}, {-120,10,40}, {-40,0,120}, {40,0,120}, {40,0,68}, {-40,0,68}, {-40,-168,68}, {-40,-168,120}, {40,-168,120}, {40,-168,68}, {-40,10,120}, {68,0,-34}, {68,10,-34}, {68,10,120}, {68,0,120}, {34,0,120}, {34,10,120}, {68,0,40}, {68,10,40}};
-static const uint16_t i_cliff_hole_long[] = {0,1,2,3,0,3,4,5,2,1,6,7,8,0,9,10,11,12,13,14,0,14,13,9,8,11,14,0,10,9,13,12,15,16,17,18,19,20,13,14,16,14,13,17,15,19,14,16,18,17,13,20,21,22,23,24,21,24,25,26,23,22,27,28,8,21,29,10,30,31,32,33,21,33,32,29,8,30,33,21,10,29,32,31,15,34,35,18,36,37,32,33,34,33,32,35,15,36,33,34,18,35,32,37,5,6,1,0,28,25,24,23};
-static const MFace f_cliff_hole_long[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,-127,0,0,0,0,0x6C655A}, {8,4,127,0,0,0,0,0x6C655A}, {12,4,127,0,0,0,0,0x7B7366}, {16,4,-127,0,0,0,0,0x7B7366}, {20,4,0,0,-127,0,0,0x7B7366}, {24,4,0,-127,0,0,0,0x7B7366}, {28,4,0,127,0,0,0,0x7B7366}, {32,4,127,0,0,0,0,0x7B7366}, {36,4,-127,0,0,0,0,0x7B7366}, {40,4,0,0,-127,0,0,0x7B7366}, {44,4,0,-127,0,0,0,0x7B7366}, {48,4,0,127,0,0,0,0x7B7366}, {52,4,0,127,0,0,0,0x928A7C}, {56,4,-127,0,0,0,0,0x6C655A}, {60,4,127,0,0,0,0,0x6C655A}, {64,4,-127,0,0,0,0,0x7B7366}, {68,4,127,0,0,0,0,0x7B7366}, {72,4,0,0,127,0,0,0x7B7366}, {76,4,0,-127,0,0,0,0x7B7366}, {80,4,0,127,0,0,0,0x7B7366}, {84,4,-127,0,0,0,0,0x7B7366}, {88,4,127,0,0,0,0,0x7B7366}, {92,4,0,0,127,0,0,0x7B7366}, {96,4,0,-127,0,0,0,0x7B7366}, {100,4,0,127,0,0,0,0x7B7366}, {104,4,0,0,127,0,0,0x6C655A}, {108,4,0,0,-127,0,0,0x6C655A}};
-static const MVert v_cliff_hole_long_far[] = {{-40,0,-68}, {40,0,-68}, {40,0,-120}, {-40,0,-120}, {-40,0,120}, {40,0,120}, {40,0,68}, {-40,0,68}, {-40,-96,-120}, {-40,-96,120}, {40,-96,120}, {40,-96,-120}};
-static const uint16_t i_cliff_hole_long_far[] = {0,1,2,3,4,5,6,7,4,3,8,9,2,5,10,11};
-static const MFace f_cliff_hole_long_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}, {8,4,-127,0,0,0,0,0x6C655A}, {12,4,127,0,0,0,0,0x6C655A}};
-static const MVert v_cliff_narrow_l[] = {{-40,0,-80}, {-8,0,-80}, {-8,0,-120}, {-40,0,-120}, {-40,0,-40}, {-8,0,-40}, {-40,0,0}, {-8,0,0}, {-40,0,40}, {-8,0,40}, {-40,0,80}, {-8,0,80}, {-40,0,120}, {-8,0,120}, {-40,-168,-120}, {-40,-168,120}, {-8,-168,120}, {-8,-168,-120}, {-40,10,-34}, {-40,10,120}, {-40,0,-34}, {-120,0,120}, {-120,10,120}, {-120,10,-34}, {-120,0,-34}, {-40,0,-104}, {40,0,-104}, {40,0,-120}, {40,0,120}, {40,0,104}, {-40,0,104}, {-8,0,-104}, {-8,-168,-104}, {40,-168,-104}, {-8,0,104}, {40,-168,104}, {-8,-168,104}};
-static const uint16_t i_cliff_narrow_l[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,12,3,14,15,2,13,16,17,18,19,12,20,21,22,23,24,19,22,21,12,12,21,24,20,23,22,19,18,25,26,27,3,12,28,29,30,26,31,32,33,34,29,35,36};
-static const MFace f_cliff_narrow_l[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x857D70}, {16,4,0,127,0,0,0,0x928A7C}, {20,4,0,127,0,0,0,0x857D70}, {24,4,-127,0,0,0,0,0x6C655A}, {28,4,127,0,0,0,0,0x6C655A}, {32,4,127,0,0,0,0,0x7B7366}, {36,4,-127,0,0,0,0,0x7B7366}, {40,4,0,0,127,0,0,0x7B7366}, {44,4,0,-127,0,0,0,0x7B7366}, {48,4,0,127,0,0,0,0x7B7366}, {52,4,0,127,0,0,0,0x928A7C}, {56,4,0,127,0,0,0,0x928A7C}, {60,4,0,0,127,0,0,0x6C655A}, {64,4,0,0,-127,0,0,0x6C655A}};
-static const MVert v_cliff_narrow_l_far[] = {{-40,0,120}, {-8,0,120}, {-8,0,-120}, {-40,0,-120}};
-static const uint16_t i_cliff_narrow_l_far[] = {0,1,2,3};
-static const MFace f_cliff_narrow_l_far[] = {{0,4,0,127,0,0,0,0x928A7C}};
-static const MVert v_cliff_narrow_r[] = {{8,0,-80}, {40,0,-80}, {40,0,-120}, {8,0,-120}, {8,0,-40}, {40,0,-40}, {8,0,0}, {40,0,0}, {8,0,40}, {40,0,40}, {8,0,80}, {40,0,80}, {8,0,120}, {40,0,120}, {8,-168,-120}, {8,-168,120}, {40,-168,120}, {40,-168,-120}, {34,10,40}, {34,10,120}, {34,0,120}, {34,0,40}, {-120,0,120}, {-120,10,120}, {-120,10,40}, {-120,0,40}, {-40,0,-104}, {40,0,-104}, {-40,0,-120}, {-40,0,120}, {40,0,104}, {-40,0,104}, {-40,-168,-104}, {8,-168,-104}, {8,0,-104}, {8,-168,104}, {-40,-168,104}, {8,0,104}};
-static const uint16_t i_cliff_narrow_r[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,11,9,8,12,13,11,10,12,3,14,15,2,13,16,17,18,19,20,21,22,23,24,25,19,23,22,20,20,22,25,21,24,23,19,18,26,27,2,28,29,13,30,31,32,33,34,26,35,36,31,37};
-static const MFace f_cliff_narrow_r[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x857D70}, {16,4,0,127,0,0,0,0x928A7C}, {20,4,0,127,0,0,0,0x857D70}, {24,4,-127,0,0,0,0,0x6C655A}, {28,4,127,0,0,0,0,0x6C655A}, {32,4,127,0,0,0,0,0x7B7366}, {36,4,-127,0,0,0,0,0x7B7366}, {40,4,0,0,127,0,0,0x7B7366}, {44,4,0,-127,0,0,0,0x7B7366}, {48,4,0,127,0,0,0,0x7B7366}, {52,4,0,127,0,0,0,0x928A7C}, {56,4,0,127,0,0,0,0x928A7C}, {60,4,0,0,127,0,0,0x6C655A}, {64,4,0,0,-127,0,0,0x6C655A}};
-static const MVert v_cliff_narrow_r_far[] = {{8,0,120}, {40,0,120}, {40,0,-120}, {8,0,-120}};
-static const uint16_t i_cliff_narrow_r_far[] = {0,1,2,3};
-static const MFace f_cliff_narrow_r_far[] = {{0,4,0,127,0,0,0,0x928A7C}};
-static const MVert v_cliff_corner_l[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {-120,0,0}, {-120,0,-40}, {-120,0,40}, {40,-168,40}, {40,-168,-120}, {-120,-168,40}, {-40,-168,-120}, {-40,-168,-40}, {-120,-168,-40}, {34,0,40}, {34,10,40}, {-120,10,40}, {-40,0,-34}, {-40,10,-40}, {-40,10,-34}, {-120,0,-34}, {-120,10,-34}, {-120,10,-40}};
-static const uint16_t i_cliff_corner_l[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,10,6,4,11,12,8,6,10,2,9,13,14,9,12,15,13,4,3,16,17,11,4,17,18,19,19,20,20,12,21,21,12,19,12,21,20,19,12,12,19,20,20,21,21,12,12,21,21,19,20,20,19,12,19,20,21,12,19,19,12,21,21,20,20,22,4,23,24,25,26,27,11,4,11,27,23,22,25,11,4,24,23,27,26,11,25,26,27,4,23,24,22,25,22,24,26,11,4,22,25,27,26,24,23};
-static const MFace f_cliff_corner_l[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x857D70}, {16,4,0,127,0,0,0,0x928A7C}, {20,4,0,127,0,0,0,0x857D70}, {24,4,127,0,0,0,0,0x6C655A}, {28,4,0,0,127,0,0,0x6C655A}, {32,4,-127,0,0,0,0,0x6C655A}, {36,4,0,0,-127,0,0,0x6C655A}, {40,4,0,0,0,0,0,0x7B7366}, {44,4,0,0,0,0,0,0x7B7366}, {48,4,0,0,-127,0,0,0x7B7366}, {52,4,0,0,0,0,0,0x7B7366}, {56,4,0,0,0,0,0,0x7B7366}, {60,4,0,0,0,0,0,0x7B7366}, {64,4,0,0,0,0,0,0x7B7366}, {68,4,0,0,127,0,0,0x7B7366}, {72,4,0,0,0,0,0,0x7B7366}, {76,4,0,0,0,0,0,0x7B7366}, {80,4,127,0,0,0,0,0x7B7366}, {84,4,-127,0,0,0,0,0x7B7366}, {88,4,0,0,-127,0,0,0x7B7366}, {92,4,0,-127,0,0,0,0x7B7366}, {96,4,0,127,0,0,0,0x7B7366}, {100,4,-127,0,0,0,0,0x7B7366}, {104,4,127,0,0,0,0,0x7B7366}, {108,4,0,0,127,0,0,0x7B7366}, {112,4,0,-127,0,0,0,0x7B7366}, {116,4,0,127,0,0,0,0x7B7366}};
-static const MVert v_cliff_corner_l_far[] = {{-40,0,40}, {40,0,40}, {40,0,-120}, {-40,0,-120}, {-120,0,40}, {-40,0,-40}, {-120,0,-40}};
-static const uint16_t i_cliff_corner_l_far[] = {0,1,2,3,4,0,5,6};
-static const MFace f_cliff_corner_l_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}};
-static const MVert v_cliff_corner_r[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-40,0,0}, {40,0,0}, {-40,0,40}, {40,0,40}, {120,0,0}, {120,0,-40}, {120,0,40}, {-40,-168,-120}, {-40,-168,40}, {120,-168,40}, {40,-168,-40}, {40,-168,-120}, {120,-168,-40}, {-40,10,-34}, {-40,10,40}, {-40,0,-34}, {-120,0,40}, {-120,10,40}, {-120,10,-34}, {-120,0,-34}, {-40,10,120}, {-40,0,120}, {34,0,40}, {34,10,40}, {34,10,120}, {34,0,120}, {34,0,-40}, {34,10,-40}, {-120,10,-40}, {-120,0,-40}, {40,0,120}, {40,0,-34}, {40,10,-34}, {40,10,120}};
-static const uint16_t i_cliff_corner_r[] = {0,1,2,3,4,5,1,0,6,7,5,4,8,9,7,6,7,10,11,5,9,12,10,7,13,14,8,3,14,15,12,8,16,17,2,5,18,16,5,11,19,20,8,21,22,23,24,25,20,23,22,8,8,22,25,21,24,23,20,19,26,20,8,27,28,29,30,31,20,29,28,8,8,28,31,27,30,29,20,26,28,32,33,29,22,23,34,35,32,35,34,33,28,22,35,32,29,33,34,23,36,37,38,39,27,26,19,21,37,21,19,38,36,27,21,37,39,38,19,26};
-static const MFace f_cliff_corner_r[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x857D70}, {16,4,0,127,0,0,0,0x928A7C}, {20,4,0,127,0,0,0,0x857D70}, {24,4,-127,0,0,0,0,0x6C655A}, {28,4,0,0,127,0,0,0x6C655A}, {32,4,127,0,0,0,0,0x6C655A}, {36,4,0,0,-127,0,0,0x6C655A}, {40,4,127,0,0,0,0,0x7B7366}, {44,4,-127,0,0,0,0,0x7B7366}, {48,4,0,0,127,0,0,0x7B7366}, {52,4,0,-127,0,0,0,0x7B7366}, {56,4,0,127,0,0,0,0x7B7366}, {60,4,-127,0,0,0,0,0x7B7366}, {64,4,127,0,0,0,0,0x7B7366}, {68,4,0,0,-127,0,0,0x7B7366}, {72,4,0,-127,0,0,0,0x7B7366}, {76,4,0,127,0,0,0,0x7B7366}, {80,4,127,0,0,0,0,0x7B7366}, {84,4,-127,0,0,0,0,0x7B7366}, {88,4,0,0,-127,0,0,0x7B7366}, {92,4,0,-127,0,0,0,0x7B7366}, {96,4,0,127,0,0,0,0x7B7366}, {100,4,127,0,0,0,0,0x7B7366}, {104,4,-127,0,0,0,0,0x7B7366}, {108,4,0,0,-127,0,0,0x7B7366}, {112,4,0,-127,0,0,0,0x7B7366}, {116,4,0,127,0,0,0,0x7B7366}};
-static const MVert v_cliff_corner_r_far[] = {{-40,0,40}, {40,0,40}, {40,0,-120}, {-40,0,-120}, {120,0,40}, {120,0,-40}, {40,0,-40}};
-static const uint16_t i_cliff_corner_r_far[] = {0,1,2,3,1,4,5,6};
-static const MFace f_cliff_corner_r_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}};
-static const MVert v_cliff_t[] = {{-40,0,-80}, {40,0,-80}, {40,0,-120}, {-40,0,-120}, {-40,0,-40}, {40,0,-40}, {-120,0,40}, {-80,0,40}, {-80,0,-40}, {-120,0,-40}, {-40,0,40}, {0,0,40}, {0,0,-40}, {40,0,40}, {80,0,40}, {80,0,-40}, {120,0,40}, {120,0,-40}, {-120,-168,40}, {120,-168,40}, {-40,-168,-120}, {-40,-168,-40}, {40,-168,-40}, {40,-168,-120}, {-120,-168,-40}, {120,-168,-40}, {-120,10,120}, {-120,10,40}, {-120,0,120}, {34,0,40}, {34,10,40}, {34,10,120}, {34,0,120}, {-40,0,-34}, {-40,10,-40}, {-40,10,-34}, {-120,0,-34}, {-120,10,-34}, {-120,10,-40}, {34,0,-40}, {34,10,-40}, {40,0,120}, {40,0,-34}, {40,10,-34}, {40,10,120}, {-40,0,120}, {-40,10,120}};
-static const uint16_t i_cliff_t[] = {0,1,2,3,4,5,1,0,6,7,8,9,7,10,4,8,10,11,12,4,11,13,5,12,13,14,15,5,14,16,17,15,18,19,16,6,4,3,20,21,2,5,22,23,21,24,9,4,25,22,5,17,26,27,6,28,29,30,31,32,27,30,29,6,6,29,32,28,31,30,27,26,33,4,34,35,36,37,38,9,4,9,38,34,33,36,9,4,35,34,38,37,29,39,40,30,6,27,38,9,39,9,38,40,29,6,9,39,30,40,38,27,9,36,37,38,4,34,35,33,36,33,35,37,9,4,33,36,38,37,35,34,41,42,43,44,45,46,35,33,42,33,35,43,41,45,33,42,44,43,35,46};
-static const MFace f_cliff_t[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x857D70}, {8,4,0,127,0,0,0,0x928A7C}, {12,4,0,127,0,0,0,0x857D70}, {16,4,0,127,0,0,0,0x928A7C}, {20,4,0,127,0,0,0,0x857D70}, {24,4,0,127,0,0,0,0x928A7C}, {28,4,0,127,0,0,0,0x857D70}, {32,4,0,0,127,0,0,0x6C655A}, {36,4,-127,0,0,0,0,0x6C655A}, {40,4,127,0,0,0,0,0x6C655A}, {44,4,0,0,-127,0,0,0x6C655A}, {48,4,0,0,-127,0,0,0x6C655A}, {52,4,-127,0,0,0,0,0x7B7366}, {56,4,127,0,0,0,0,0x7B7366}, {60,4,0,0,-127,0,0,0x7B7366}, {64,4,0,-127,0,0,0,0x7B7366}, {68,4,0,127,0,0,0,0x7B7366}, {72,4,127,0,0,0,0,0x7B7366}, {76,4,-127,0,0,0,0,0x7B7366}, {80,4,0,0,-127,0,0,0x7B7366}, {84,4,0,-127,0,0,0,0x7B7366}, {88,4,0,127,0,0,0,0x7B7366}, {92,4,127,0,0,0,0,0x7B7366}, {96,4,-127,0,0,0,0,0x7B7366}, {100,4,0,0,-127,0,0,0x7B7366}, {104,4,0,-127,0,0,0,0x7B7366}, {108,4,0,127,0,0,0,0x7B7366}, {112,4,-127,0,0,0,0,0x7B7366}, {116,4,127,0,0,0,0,0x7B7366}, {120,4,0,0,127,0,0,0x7B7366}, {124,4,0,-127,0,0,0,0x7B7366}, {128,4,0,127,0,0,0,0x7B7366}, {132,4,127,0,0,0,0,0x7B7366}, {136,4,-127,0,0,0,0,0x7B7366}, {140,4,0,0,-127,0,0,0x7B7366}, {144,4,0,-127,0,0,0,0x7B7366}, {148,4,0,127,0,0,0,0x7B7366}};
-static const MVert v_cliff_t_far[] = {{-40,0,-40}, {40,0,-40}, {40,0,-120}, {-40,0,-120}, {-120,0,40}, {120,0,40}, {120,0,-40}, {-120,0,-40}};
-static const uint16_t i_cliff_t_far[] = {0,1,2,3,4,5,6,7};
-static const MFace f_cliff_t_far[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,0,127,0,0,0,0x928A7C}};
-static const MVert v_cliff_step_up[] = {{-40,12,-72}, {40,12,-72}, {40,12,-120}, {-40,12,-120}, {-40,-168,-120}, {-40,-168,-72}, {40,-168,-72}, {40,-168,-120}, {40,0,-120}, {-40,0,-120}, {-40,24,-24}, {40,24,-24}, {40,24,-72}, {-40,24,-72}, {-40,-168,-24}, {40,-168,-24}, {-40,36,24}, {40,36,24}, {40,36,-24}, {-40,36,-24}, {-40,-168,24}, {40,-168,24}, {-40,48,72}, {40,48,72}, {40,48,24}, {-40,48,24}, {-40,-168,72}, {40,-168,72}, {-40,60,120}, {40,60,120}, {40,60,72}, {-40,60,72}, {-40,-168,120}, {40,-168,120}};
-static const uint16_t i_cliff_step_up[] = {0,1,2,3,0,3,4,5,2,1,6,7,3,2,8,9,10,11,12,13,10,13,5,14,12,11,15,6,13,12,1,0,16,17,18,19,16,19,14,20,18,17,21,15,19,18,11,10,22,23,24,25,22,25,20,26,24,23,27,21,25,24,17,16,28,29,30,31,28,31,26,32,30,29,33,27,31,30,23,22};
-static const MFace f_cliff_step_up[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,-127,0,0,0,0,0x6C655A}, {8,4,127,0,0,0,0,0x6C655A}, {12,4,0,0,-127,0,0,0x6C655A}, {16,4,0,127,0,0,0,0x857D70}, {20,4,-127,0,0,0,0,0x6C655A}, {24,4,127,0,0,0,0,0x6C655A}, {28,4,0,0,-127,0,0,0x6C655A}, {32,4,0,127,0,0,0,0x928A7C}, {36,4,-127,0,0,0,0,0x6C655A}, {40,4,127,0,0,0,0,0x6C655A}, {44,4,0,0,-127,0,0,0x6C655A}, {48,4,0,127,0,0,0,0x857D70}, {52,4,-127,0,0,0,0,0x6C655A}, {56,4,127,0,0,0,0,0x6C655A}, {60,4,0,0,-127,0,0,0x6C655A}, {64,4,0,127,0,0,0,0x928A7C}, {68,4,-127,0,0,0,0,0x6C655A}, {72,4,127,0,0,0,0,0x6C655A}, {76,4,0,0,-127,0,0,0x6C655A}};
-static const MVert v_cliff_step_up_far[] = {{-40,60,120}, {40,60,120}, {40,12,-120}, {-40,12,-120}};
-static const uint16_t i_cliff_step_up_far[] = {0,1,2,3};
-static const MFace f_cliff_step_up_far[] = {{0,4,0,125,-25,0,0,0x928A7C}};
-static const MVert v_cliff_step_down[] = {{-40,0,-72}, {40,0,-72}, {40,0,-120}, {-40,0,-120}, {-40,-168,-120}, {-40,-168,-72}, {40,-168,-72}, {40,-168,-120}, {-40,-12,-24}, {40,-12,-24}, {40,-12,-72}, {-40,-12,-72}, {-40,-168,-24}, {40,-168,-24}, {-40,-24,24}, {40,-24,24}, {40,-24,-24}, {-40,-24,-24}, {-40,-168,24}, {40,-168,24}, {-40,-36,72}, {40,-36,72}, {40,-36,24}, {-40,-36,24}, {-40,-168,72}, {40,-168,72}, {-40,-48,120}, {40,-48,120}, {40,-48,72}, {-40,-48,72}, {-40,-168,120}, {40,-168,120}};
-static const uint16_t i_cliff_step_down[] = {0,1,2,3,0,3,4,5,2,1,6,7,8,9,10,11,8,11,5,12,10,9,13,6,14,15,16,17,14,17,12,18,16,15,19,13,20,21,22,23,20,23,18,24,22,21,25,19,26,27,28,29,26,29,24,30,28,27,31,25};
-static const MFace f_cliff_step_down[] = {{0,4,0,127,0,0,0,0x928A7C}, {4,4,-127,0,0,0,0,0x6C655A}, {8,4,127,0,0,0,0,0x6C655A}, {12,4,0,127,0,0,0,0x857D70}, {16,4,-127,0,0,0,0,0x6C655A}, {20,4,127,0,0,0,0,0x6C655A}, {24,4,0,127,0,0,0,0x928A7C}, {28,4,-127,0,0,0,0,0x6C655A}, {32,4,127,0,0,0,0,0x6C655A}, {36,4,0,127,0,0,0,0x857D70}, {40,4,-127,0,0,0,0,0x6C655A}, {44,4,127,0,0,0,0,0x6C655A}, {48,4,0,127,0,0,0,0x928A7C}, {52,4,-127,0,0,0,0,0x6C655A}, {56,4,127,0,0,0,0,0x6C655A}};
-static const MVert v_cliff_step_down_far[] = {{-40,-48,120}, {40,-48,120}, {40,0,-120}, {-40,0,-120}};
-static const uint16_t i_cliff_step_down_far[] = {0,1,2,3};
-static const MFace f_cliff_step_down_far[] = {{0,4,0,125,25,0,0,0x928A7C}};
-static const MVert v_root_low[] = {{-40,0,-4}, {-40,0,4}, {-40,6,4}, {-40,6,-4}, {-16,0,-4}, {-16,6,-4}, {-16,6,4}, {-16,0,4}, {-18,0,-4}, {-18,0,4}, {-18,8,4}, {-18,8,-4}, {14,0,-4}, {14,8,-4}, {14,8,4}, {14,0,4}, {12,0,-4}, {12,0,4}, {12,6,4}, {12,6,-4}, {40,0,-4}, {40,6,-4}, {40,6,4}, {40,0,4}};
-static const uint16_t i_root_low[] = {0,1,2,3,4,5,6,7,1,7,6,2,0,4,7,1,3,2,6,5,8,9,10,11,12,13,14,15,9,15,14,10,8,12,15,9,11,10,14,13,16,17,18,19,20,21,22,23,17,23,22,18,16,20,23,17,19,18,22,21};
-static const MFace f_root_low[] = {{0,4,-127,0,0,0,0,0x5B3F24}, {4,4,127,0,0,0,0,0x5B3F24}, {8,4,0,0,127,0,0,0x6E4E2E}, {12,4,0,-127,0,0,0,0x5B3F24}, {16,4,0,127,0,0,0,0x5B3F24}, {20,4,-127,0,0,0,0,0x5B3F24}, {24,4,127,0,0,0,0,0x5B3F24}, {28,4,0,0,127,0,0,0x6E4E2E}, {32,4,0,-127,0,0,0,0x5B3F24}, {36,4,0,127,0,0,0,0x5B3F24}, {40,4,-127,0,0,0,0,0x5B3F24}, {44,4,127,0,0,0,0,0x5B3F24}, {48,4,0,0,127,0,0,0x6E4E2E}, {52,4,0,-127,0,0,0,0x5B3F24}, {56,4,0,127,0,0,0,0x5B3F24}};
-static const MVert v_tree_jump[] = {{-52,0,-7}, {-52,0,7}, {-52,17,7}, {-52,17,-7}, {52,0,-7}, {52,17,-7}, {52,17,7}, {52,0,7}, {-56,-12,-9}, {-56,-12,9}, {-56,20,9}, {-56,20,-9}, {-44,-12,-9}, {-44,20,-9}, {-44,20,9}, {-44,-12,9}, {44,-12,-9}, {44,-12,9}, {44,20,9}, {44,20,-9}, {56,-12,-9}, {56,20,-9}, {56,20,9}, {56,-12,9}};
-static const uint16_t i_tree_jump[] = {0,1,2,3,4,5,6,7,1,7,6,2,0,4,7,1,3,2,6,5,8,9,10,11,12,13,14,15,9,15,14,10,8,12,15,9,11,10,14,13,16,17,18,19,20,21,22,23,17,23,22,18,16,20,23,17,19,18,22,21};
-static const MFace f_tree_jump[] = {{0,4,-127,0,0,0,0,0x6A4A2D}, {4,4,127,0,0,0,0,0x6A4A2D}, {8,4,0,0,127,0,0,0x7B5A38}, {12,4,0,-127,0,0,0,0x6A4A2D}, {16,4,0,127,0,0,0,0x6A4A2D}, {20,4,-127,0,0,0,0,0x55391F}, {24,4,127,0,0,0,0,0x55391F}, {28,4,0,0,127,0,0,0x55391F}, {32,4,0,-127,0,0,0,0x55391F}, {36,4,0,127,0,0,0,0x55391F}, {40,4,-127,0,0,0,0,0x55391F}, {44,4,127,0,0,0,0,0x55391F}, {48,4,0,0,127,0,0,0x55391F}, {52,4,0,-127,0,0,0,0x55391F}, {56,4,0,127,0,0,0,0x55391F}};
-static const MVert v_branch_slide[] = {{-52,21,-5}, {-52,21,5}, {-52,30,5}, {-52,30,-5}, {52,21,-5}, {52,30,-5}, {52,30,5}, {52,21,5}, {-24,29,-10}, {-24,29,10}, {-24,38,10}, {-24,38,-10}, {-10,29,-10}, {-10,38,-10}, {-10,38,10}, {-10,29,10}, {4,29,-10}, {4,29,10}, {4,38,10}, {4,38,-10}, {18,29,-10}, {18,38,-10}, {18,38,10}, {18,29,10}, {26,29,-10}, {26,29,10}, {26,38,10}, {26,38,-10}, {40,29,-10}, {40,38,-10}, {40,38,10}, {40,29,10}, {-54,0,-6}, {-54,0,6}, {-54,30,6}, {-54,30,-6}, {-44,0,-6}, {-44,30,-6}, {-44,30,6}, {-44,0,6}, {44,0,-6}, {44,0,6}, {44,30,6}, {44,30,-6}, {54,0,-6}, {54,30,-6}, {54,30,6}, {54,0,6}};
-static const uint16_t i_branch_slide[] = {0,1,2,3,4,5,6,7,0,3,5,4,1,7,6,2,0,4,7,1,3,2,6,5,8,9,10,11,12,13,14,15,8,11,13,12,9,15,14,10,8,12,15,9,11,10,14,13,16,17,18,19,20,21,22,23,16,19,21,20,17,23,22,18,16,20,23,17,19,18,22,21,24,25,26,27,28,29,30,31,24,27,29,28,25,31,30,26,24,28,31,25,27,26,30,29,32,33,34,35,36,37,38,39,33,39,38,34,32,36,39,33,35,34,38,37,40,41,42,43,44,45,46,47,41,47,46,42,40,44,47,41,43,42,46,45};
-static const MFace f_branch_slide[] = {{0,4,-127,0,0,0,0,0x6A4A2D}, {4,4,127,0,0,0,0,0x6A4A2D}, {8,4,0,0,-127,0,0,0x6A4A2D}, {12,4,0,0,127,0,0,0x7B5A38}, {16,4,0,-127,0,0,0,0x6A4A2D}, {20,4,0,127,0,0,0,0x6A4A2D}, {24,4,-127,0,0,0,0,0x3A6B2C}, {28,4,127,0,0,0,0,0x3A6B2C}, {32,4,0,0,-127,0,0,0x3A6B2C}, {36,4,0,0,127,0,0,0x2F5A26}, {40,4,0,-127,0,0,0,0x3A6B2C}, {44,4,0,127,0,0,0,0x3A6B2C}, {48,4,-127,0,0,0,0,0x3A6B2C}, {52,4,127,0,0,0,0,0x3A6B2C}, {56,4,0,0,-127,0,0,0x3A6B2C}, {60,4,0,0,127,0,0,0x2F5A26}, {64,4,0,-127,0,0,0,0x3A6B2C}, {68,4,0,127,0,0,0,0x3A6B2C}, {72,4,-127,0,0,0,0,0x3A6B2C}, {76,4,127,0,0,0,0,0x3A6B2C}, {80,4,0,0,-127,0,0,0x3A6B2C}, {84,4,0,0,127,0,0,0x2F5A26}, {88,4,0,-127,0,0,0,0x3A6B2C}, {92,4,0,127,0,0,0,0x3A6B2C}, {96,4,-127,0,0,0,0,0x55391F}, {100,4,127,0,0,0,0,0x55391F}, {104,4,0,0,127,0,0,0x55391F}, {108,4,0,-127,0,0,0,0x55391F}, {112,4,0,127,0,0,0,0x55391F}, {116,4,-127,0,0,0,0,0x55391F}, {120,4,127,0,0,0,0,0x55391F}, {124,4,0,0,127,0,0,0x55391F}, {128,4,0,-127,0,0,0,0x55391F}, {132,4,0,127,0,0,0,0x55391F}};
-static const MVert v_fire0[] = {{-28,0,-6}, {-28,0,6}, {-28,2,6}, {-28,2,-6}, {-12,0,-6}, {-12,2,-6}, {-12,2,6}, {-12,0,6}, {-20,21,0}, {-13,2,-1}, {-27,2,-1}, {-27,2,1}, {-13,2,1}, {-20,15,0}, {-16,2,-2}, {-24,2,-2}, {-24,2,2}, {-16,2,2}, {-8,0,-6}, {-8,0,6}, {-8,2,6}, {-8,2,-6}, {8,0,-6}, {8,2,-6}, {8,2,6}, {8,0,6}, {0,26,0}, {7,2,-1}, {-7,2,-1}, {-7,2,1}, {7,2,1}, {0,19,0}, {4,2,-2}, {-4,2,-2}, {-4,2,2}, {4,2,2}, {12,0,-6}, {12,0,6}, {12,2,6}, {12,2,-6}, {28,0,-6}, {28,2,-6}, {28,2,6}, {28,0,6}, {20,19,0}, {27,2,-1}, {13,2,-1}, {13,2,1}, {27,2,1}, {20,14,0}, {24,2,-2}, {16,2,-2}, {16,2,2}, {24,2,2}};
-static const uint16_t i_fire0[] = {0,1,2,3,4,5,6,7,1,7,6,2,0,4,7,1,3,2,6,5,8,9,10,11,12,8,13,14,15,16,17,13,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23,26,27,28,29,30,26,31,32,33,34,35,31,36,37,38,39,40,41,42,43,37,43,42,38,36,40,43,37,39,38,42,41,44,45,46,47,48,44,49,50,51,52,53,49};
-static const MFace f_fire0[] = {{0,4,-127,0,0,0,0,0x4E463C}, {4,4,127,0,0,0,0,0x4E463C}, {8,4,0,0,127,0,0,0x4E463C}, {12,4,0,-127,0,0,0,0x4E463C}, {16,4,0,127,0,0,0,0x4E463C}, {20,3,0,7,-127,1,0,0xFF8A1E}, {23,3,0,7,127,1,0,0xFF8A1E}, {26,3,0,19,-125,1,0,0xFFD448}, {29,3,0,19,125,1,0,0xFFD448}, {32,4,-127,0,0,0,0,0x4E463C}, {36,4,127,0,0,0,0,0x4E463C}, {40,4,0,0,127,0,0,0x4E463C}, {44,4,0,-127,0,0,0,0x4E463C}, {48,4,0,127,0,0,0,0x4E463C}, {52,3,0,5,-127,1,0,0xFF8A1E}, {55,3,0,5,127,1,0,0xFF8A1E}, {58,3,0,15,-126,1,0,0xFFD448}, {61,3,0,15,126,1,0,0xFFD448}, {64,4,-127,0,0,0,0,0x4E463C}, {68,4,127,0,0,0,0,0x4E463C}, {72,4,0,0,127,0,0,0x4E463C}, {76,4,0,-127,0,0,0,0x4E463C}, {80,4,0,127,0,0,0,0x4E463C}, {84,3,0,7,-127,1,0,0xFF8A1E}, {87,3,0,7,127,1,0,0xFF8A1E}, {90,3,0,21,-125,1,0,0xFFD448}, {93,3,0,21,125,1,0,0xFFD448}};
-static const MVert v_fire1[] = {{-28,0,-6}, {-28,0,6}, {-28,2,6}, {-28,2,-6}, {-12,0,-6}, {-12,2,-6}, {-12,2,6}, {-12,0,6}, {-20,20,0}, {-13,2,-1}, {-27,2,-1}, {-27,2,1}, {-13,2,1}, {-20,15,0}, {-16,2,-2}, {-24,2,-2}, {-24,2,2}, {-16,2,2}, {-8,0,-6}, {-8,0,6}, {-8,2,6}, {-8,2,-6}, {8,0,-6}, {8,2,-6}, {8,2,6}, {8,0,6}, {0,16,0}, {7,2,-1}, {-7,2,-1}, {-7,2,1}, {7,2,1}, {0,12,0}, {4,2,-2}, {-4,2,-2}, {-4,2,2}, {4,2,2}, {12,0,-6}, {12,0,6}, {12,2,6}, {12,2,-6}, {28,0,-6}, {28,2,-6}, {28,2,6}, {28,0,6}, {20,23,0}, {27,2,-1}, {13,2,-1}, {13,2,1}, {27,2,1}, {20,17,0}, {24,2,-2}, {16,2,-2}, {16,2,2}, {24,2,2}};
-static const uint16_t i_fire1[] = {0,1,2,3,4,5,6,7,1,7,6,2,0,4,7,1,3,2,6,5,8,9,10,11,12,8,13,14,15,16,17,13,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23,26,27,28,29,30,26,31,32,33,34,35,31,36,37,38,39,40,41,42,43,37,43,42,38,36,40,43,37,39,38,42,41,44,45,46,47,48,44,49,50,51,52,53,49};
-static const MFace f_fire1[] = {{0,4,-127,0,0,0,0,0x4E463C}, {4,4,127,0,0,0,0,0x4E463C}, {8,4,0,0,127,0,0,0x4E463C}, {12,4,0,-127,0,0,0,0x4E463C}, {16,4,0,127,0,0,0,0x4E463C}, {20,3,0,7,-127,1,0,0xFF8A1E}, {23,3,0,7,127,1,0,0xFF8A1E}, {26,3,0,20,-125,1,0,0xFFD448}, {29,3,0,20,125,1,0,0xFFD448}, {32,4,-127,0,0,0,0,0x4E463C}, {36,4,127,0,0,0,0,0x4E463C}, {40,4,0,0,127,0,0,0x4E463C}, {44,4,0,-127,0,0,0,0x4E463C}, {48,4,0,127,0,0,0,0x4E463C}, {52,3,0,9,-127,1,0,0xFF8A1E}, {55,3,0,9,127,1,0,0xFF8A1E}, {58,3,0,26,-124,1,0,0xFFD448}, {61,3,0,26,124,1,0,0xFFD448}, {64,4,-127,0,0,0,0,0x4E463C}, {68,4,127,0,0,0,0,0x4E463C}, {72,4,0,0,127,0,0,0x4E463C}, {76,4,0,-127,0,0,0,0x4E463C}, {80,4,0,127,0,0,0,0x4E463C}, {84,3,0,6,-127,1,0,0xFF8A1E}, {87,3,0,6,127,1,0,0xFF8A1E}, {90,3,0,18,-126,1,0,0xFFD448}, {93,3,0,18,126,1,0,0xFFD448}};
-static const MVert v_fire2[] = {{-28,0,-6}, {-28,0,6}, {-28,2,6}, {-28,2,-6}, {-12,0,-6}, {-12,2,-6}, {-12,2,6}, {-12,0,6}, {-20,22,0}, {-13,2,-1}, {-27,2,-1}, {-27,2,1}, {-13,2,1}, {-20,16,0}, {-16,2,-2}, {-24,2,-2}, {-24,2,2}, {-16,2,2}, {-8,0,-6}, {-8,0,6}, {-8,2,6}, {-8,2,-6}, {8,0,-6}, {8,2,-6}, {8,2,6}, {8,0,6}, {0,25,0}, {7,2,-1}, {-7,2,-1}, {-7,2,1}, {7,2,1}, {0,19,0}, {4,2,-2}, {-4,2,-2}, {-4,2,2}, {4,2,2}, {12,0,-6}, {12,0,6}, {12,2,6}, {12,2,-6}, {28,0,-6}, {28,2,-6}, {28,2,6}, {28,0,6}, {20,18,0}, {27,2,-1}, {13,2,-1}, {13,2,1}, {27,2,1}, {20,13,0}, {24,2,-2}, {16,2,-2}, {16,2,2}, {24,2,2}};
-static const uint16_t i_fire2[] = {0,1,2,3,4,5,6,7,1,7,6,2,0,4,7,1,3,2,6,5,8,9,10,11,12,8,13,14,15,16,17,13,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23,26,27,28,29,30,26,31,32,33,34,35,31,36,37,38,39,40,41,42,43,37,43,42,38,36,40,43,37,39,38,42,41,44,45,46,47,48,44,49,50,51,52,53,49};
-static const MFace f_fire2[] = {{0,4,-127,0,0,0,0,0x4E463C}, {4,4,127,0,0,0,0,0x4E463C}, {8,4,0,0,127,0,0,0x4E463C}, {12,4,0,-127,0,0,0,0x4E463C}, {16,4,0,127,0,0,0,0x4E463C}, {20,3,0,6,-127,1,0,0xFF8A1E}, {23,3,0,6,127,1,0,0xFF8A1E}, {26,3,0,18,-126,1,0,0xFFD448}, {29,3,0,18,126,1,0,0xFFD448}, {32,4,-127,0,0,0,0,0x4E463C}, {36,4,127,0,0,0,0,0x4E463C}, {40,4,0,0,127,0,0,0x4E463C}, {44,4,0,-127,0,0,0,0x4E463C}, {48,4,0,127,0,0,0,0x4E463C}, {52,3,0,5,-127,1,0,0xFF8A1E}, {55,3,0,5,127,1,0,0xFF8A1E}, {58,3,0,16,-126,1,0,0xFFD448}, {61,3,0,16,126,1,0,0xFFD448}, {64,4,-127,0,0,0,0,0x4E463C}, {68,4,127,0,0,0,0,0x4E463C}, {72,4,0,0,127,0,0,0x4E463C}, {76,4,0,-127,0,0,0,0x4E463C}, {80,4,0,127,0,0,0,0x4E463C}, {84,3,0,8,-127,1,0,0xFF8A1E}, {87,3,0,8,127,1,0,0xFF8A1E}, {90,3,0,23,-125,1,0,0xFFD448}, {93,3,0,23,125,1,0,0xFFD448}};
-static const MVert v_fire3[] = {{-28,0,-6}, {-28,0,6}, {-28,2,6}, {-28,2,-6}, {-12,0,-6}, {-12,2,-6}, {-12,2,6}, {-12,0,6}, {-20,18,0}, {-13,2,-1}, {-27,2,-1}, {-27,2,1}, {-13,2,1}, {-20,14,0}, {-16,2,-2}, {-24,2,-2}, {-24,2,2}, {-16,2,2}, {-8,0,-6}, {-8,0,6}, {-8,2,6}, {-8,2,-6}, {8,0,-6}, {8,2,-6}, {8,2,6}, {8,0,6}, {0,17,0}, {7,2,-1}, {-7,2,-1}, {-7,2,1}, {7,2,1}, {0,12,0}, {4,2,-2}, {-4,2,-2}, {-4,2,2}, {4,2,2}, {12,0,-6}, {12,0,6}, {12,2,6}, {12,2,-6}, {28,0,-6}, {28,2,-6}, {28,2,6}, {28,0,6}, {20,24,0}, {27,2,-1}, {13,2,-1}, {13,2,1}, {27,2,1}, {20,18,0}, {24,2,-2}, {16,2,-2}, {16,2,2}, {24,2,2}};
-static const uint16_t i_fire3[] = {0,1,2,3,4,5,6,7,1,7,6,2,0,4,7,1,3,2,6,5,8,9,10,11,12,8,13,14,15,16,17,13,18,19,20,21,22,23,24,25,19,25,24,20,18,22,25,19,21,20,24,23,26,27,28,29,30,26,31,32,33,34,35,31,36,37,38,39,40,41,42,43,37,43,42,38,36,40,43,37,39,38,42,41,44,45,46,47,48,44,49,50,51,52,53,49};
-static const MFace f_fire3[] = {{0,4,-127,0,0,0,0,0x4E463C}, {4,4,127,0,0,0,0,0x4E463C}, {8,4,0,0,127,0,0,0x4E463C}, {12,4,0,-127,0,0,0,0x4E463C}, {16,4,0,127,0,0,0,0x4E463C}, {20,3,0,8,-127,1,0,0xFF8A1E}, {23,3,0,8,127,1,0,0xFF8A1E}, {26,3,0,22,-125,1,0,0xFFD448}, {29,3,0,22,125,1,0,0xFFD448}, {32,4,-127,0,0,0,0,0x4E463C}, {36,4,127,0,0,0,0,0x4E463C}, {40,4,0,0,127,0,0,0x4E463C}, {44,4,0,-127,0,0,0,0x4E463C}, {48,4,0,127,0,0,0,0x4E463C}, {52,3,0,9,-127,1,0,0xFF8A1E}, {55,3,0,9,127,1,0,0xFF8A1E}, {58,3,0,25,-124,1,0,0xFFD448}, {61,3,0,25,124,1,0,0xFFD448}, {64,4,-127,0,0,0,0,0x4E463C}, {68,4,127,0,0,0,0,0x4E463C}, {72,4,0,0,127,0,0,0x4E463C}, {76,4,0,-127,0,0,0,0x4E463C}, {80,4,0,127,0,0,0,0x4E463C}, {84,3,0,6,-127,1,0,0xFF8A1E}, {87,3,0,6,127,1,0,0xFF8A1E}, {90,3,0,16,-126,1,0,0xFFD448}, {93,3,0,16,126,1,0,0xFFD448}};
+static const MVert v_fire0[] = {{-34,31,0}, {-18,23,0}, {-34,14,0}, {-31,28,0}, {-22,23,0}, {-31,18,0}, {-16,33,0}, {2,24,0}, {-16,14,0}, {-13,30,0}, {-2,24,0}, {-13,18,0}, {2,33,0}, {17,24,0}, {2,14,0}, {5,30,0}, {14,24,0}, {5,18,0}, {20,31,0}, {34,23,0}, {20,14,0}, {23,28,0}, {31,23,0}, {23,18,0}};
+static const uint16_t i_fire0[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
+static const MFace f_fire0[] = {{0,3,0,0,-127,1,0,0xFF8A1E}, {3,3,0,0,-127,1,0,0xFFD448}, {6,3,0,0,-127,1,0,0xFF8A1E}, {9,3,0,0,-127,1,0,0xFFD448}, {12,3,0,0,-127,1,0,0xFF8A1E}, {15,3,0,0,-127,1,0,0xFFD448}, {18,3,0,0,-127,1,0,0xFF8A1E}, {21,3,0,0,-127,1,0,0xFFD448}};
+static const MVert v_fire1[] = {{-34,33,0}, {-19,24,0}, {-34,14,0}, {-31,30,0}, {-22,24,0}, {-31,18,0}, {-16,31,0}, {-2,23,0}, {-16,14,0}, {-13,28,0}, {-6,23,0}, {-13,18,0}, {2,30,0}, {18,22,0}, {2,14,0}, {5,26,0}, {15,22,0}, {5,18,0}, {20,29,0}, {37,22,0}, {20,14,0}, {23,26,0}, {34,22,0}, {23,18,0}};
+static const uint16_t i_fire1[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
+static const MFace f_fire1[] = {{0,3,0,0,-127,1,0,0xFF8A1E}, {3,3,0,0,-127,1,0,0xFFD448}, {6,3,0,0,-127,1,0,0xFF8A1E}, {9,3,0,0,-127,1,0,0xFFD448}, {12,3,0,0,-127,1,0,0xFF8A1E}, {15,3,0,0,-127,1,0,0xFFD448}, {18,3,0,0,-127,1,0,0xFF8A1E}, {21,3,0,0,-127,1,0,0xFFD448}};
+static const MVert v_fire2[] = {{-34,30,0}, {-18,22,0}, {-34,14,0}, {-31,26,0}, {-21,22,0}, {-31,18,0}, {-16,29,0}, {1,22,0}, {-16,14,0}, {-13,26,0}, {-2,22,0}, {-13,18,0}, {2,31,0}, {17,23,0}, {2,14,0}, {5,28,0}, {13,23,0}, {5,18,0}, {20,33,0}, {34,24,0}, {20,14,0}, {23,29,0}, {31,24,0}, {23,18,0}};
+static const uint16_t i_fire2[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
+static const MFace f_fire2[] = {{0,3,0,0,-127,1,0,0xFF8A1E}, {3,3,0,0,-127,1,0,0xFFD448}, {6,3,0,0,-127,1,0,0xFF8A1E}, {9,3,0,0,-127,1,0,0xFFD448}, {12,3,0,0,-127,1,0,0xFF8A1E}, {15,3,0,0,-127,1,0,0xFFD448}, {18,3,0,0,-127,1,0,0xFF8A1E}, {21,3,0,0,-127,1,0,0xFFD448}};
+static const MVert v_fire3[] = {{-34,31,0}, {-19,23,0}, {-34,14,0}, {-31,28,0}, {-23,23,0}, {-31,18,0}, {-16,33,0}, {-2,24,0}, {-16,14,0}, {-13,29,0}, {-5,24,0}, {-13,18,0}, {2,33,0}, {19,24,0}, {2,14,0}, {5,30,0}, {16,24,0}, {5,18,0}, {20,32,0}, {37,23,0}, {20,14,0}, {23,29,0}, {34,23,0}, {23,18,0}};
+static const uint16_t i_fire3[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
+static const MFace f_fire3[] = {{0,3,0,0,-127,1,0,0xFF8A1E}, {3,3,0,0,-127,1,0,0xFFD448}, {6,3,0,0,-127,1,0,0xFF8A1E}, {9,3,0,0,-127,1,0,0xFFD448}, {12,3,0,0,-127,1,0,0xFF8A1E}, {15,3,0,0,-127,1,0,0xFFD448}, {18,3,0,0,-127,1,0,0xFF8A1E}, {21,3,0,0,-127,1,0,0xFFD448}};
static const MVert v_coin_y[] = {{6,9,0}, {3,6,0}, {-3,6,0}, {-6,9,0}, {-6,15,0}, {-3,18,0}, {3,18,0}, {6,15,0}, {4,10,0}, {2,8,0}, {-2,8,0}, {-4,10,0}, {-4,14,0}, {-2,16,0}, {2,16,0}, {4,14,0}};
static const uint16_t i_coin_y[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
static const MFace f_coin_y[] = {{0,8,0,0,-127,1,0,0xC89A10}, {8,8,0,0,-127,1,0,0xFFD21E}};
@@ -279,14 +618,187 @@ static const MFace f_jungle_tall_far[] = {{0,4,-127,0,0,0,0,0x3A6B2C}, {4,4,127,
static const MVert v_pillar[] = {{-12,-200,-12}, {-12,-200,12}, {-12,56,12}, {-12,56,-12}, {12,-200,-12}, {12,56,-12}, {12,56,12}, {12,-200,12}, {-16,56,-16}, {-16,56,16}, {-16,66,16}, {-16,66,-16}, {16,56,-16}, {16,66,-16}, {16,66,16}, {16,56,16}};
static const uint16_t i_pillar[] = {0,1,2,3,4,5,6,7,1,7,6,2,0,4,7,1,3,2,6,5,8,9,10,11,12,13,14,15,8,11,13,12,9,15,14,10,8,12,15,9,11,10,14,13};
static const MFace f_pillar[] = {{0,4,-127,0,0,0,0,0x8E7F66}, {4,4,127,0,0,0,0,0x8E7F66}, {8,4,0,0,127,0,0,0x9E8F74}, {12,4,0,-127,0,0,0,0x8E7F66}, {16,4,0,127,0,0,0,0x8E7F66}, {20,4,-127,0,0,0,0,0x9E8F74}, {24,4,127,0,0,0,0,0x9E8F74}, {28,4,0,0,-127,0,0,0x9E8F74}, {32,4,0,0,127,0,0,0x9E8F74}, {36,4,0,-127,0,0,0,0x9E8F74}, {40,4,0,127,0,0,0,0x9E8F74}};
-static const MVert v_cliff_wall[] = {{-76,80,-120}, {-76,80,120}, {-60,0,120}, {-60,0,-120}, {-136,80,-120}, {-136,80,120}};
+static const MVert v_cliff_wall[] = {{-60,80,-120}, {-60,80,120}, {-44,0,120}, {-44,0,-120}, {-120,80,-120}, {-120,80,120}};
static const uint16_t i_cliff_wall[] = {0,1,2,3,4,5,1,0};
static const MFace f_cliff_wall[] = {{0,4,125,25,0,0,0,0x8A8274}, {4,4,0,127,0,0,0,0x56743A}};
-static const MVert v_temple[] = {{-136,-160,-200}, {-136,-160,-120}, {-136,184,-120}, {-136,184,-200}, {136,-160,-200}, {136,184,-200}, {136,184,-120}, {136,-160,-120}, {-36,0,-120}, {36,0,-120}, {36,80,-120}, {-36,80,-120}, {-104,184,-184}, {-104,184,-136}, {-104,232,-136}, {-104,232,-184}, {104,184,-184}, {104,232,-184}, {104,232,-136}, {104,184,-136}};
-static const uint16_t i_temple[] = {0,1,2,3,4,5,6,7,1,7,6,2,0,4,7,1,3,2,6,5,8,9,10,11,12,13,14,15,16,17,18,19,13,19,18,14,12,16,19,13,15,14,18,17};
-static const MFace f_temple[] = {{0,4,-127,0,0,0,0,0x8A7A5E}, {4,4,127,0,0,0,0,0x8A7A5E}, {8,4,0,0,127,0,0,0x6F7F4A}, {12,4,0,-127,0,0,0,0x8A7A5E}, {16,4,0,127,0,0,0,0x8A7A5E}, {20,4,0,0,127,0,0,0x221C16}, {24,4,-127,0,0,0,0,0x7C6C52}, {28,4,127,0,0,0,0,0x7C6C52}, {32,4,0,0,127,0,0,0x7C6C52}, {36,4,0,-127,0,0,0,0x7C6C52}, {40,4,0,127,0,0,0,0x7C6C52}};
const Mesh meshes[M_COUNT] = {
+ {v_templestraightvert, i_templestraightvert, f_templestraightvert, 8, M_templeStraightVert_far, 51.5f},
+ {v_templestraightvert2, i_templestraightvert2, f_templestraightvert2, 8, M_templeStraightVert2_far, 51.5f},
+ {v_templestraightvert3, i_templestraightvert3, f_templestraightvert3, 8, M_templeStraightVert3_far, 51.5f},
+ {v_templestraightvert4, i_templestraightvert4, f_templestraightvert4, 8, M_templeStraightVert4_far, 51.5f},
+ {v_templestraightvert5, i_templestraightvert5, f_templestraightvert5, 8, M_templeStraightVert5_far, 51.5f},
+ {v_templestraighttowervert, i_templestraighttowervert, f_templestraighttowervert, 8, M_templeStraightTowerVert_far, 51.5f},
+ {v_templestraighthorz, i_templestraighthorz, f_templestraighthorz, 4, M_templeStraightHorz_far, 51.5f},
+ {v_templestraighthorz2, i_templestraighthorz2, f_templestraighthorz2, 4, M_templeStraightHorz2_far, 51.5f},
+ {v_templestraighthorz3, i_templestraighthorz3, f_templestraighthorz3, 4, M_templeStraightHorz3_far, 51.5f},
+ {v_templestraighthorz4, i_templestraighthorz4, f_templestraighthorz4, 4, M_templeStraightHorz4_far, 51.5f},
+ {v_templestraighthorz5, i_templestraighthorz5, f_templestraighthorz5, 4, M_templeStraightHorz5_far, 51.5f},
+ {v_templestraighttowerhorz, i_templestraighttowerhorz, f_templestraighttowerhorz, 4, M_templeStraightTowerHorz_far, 51.5f},
+ {v_templeturna, i_templeturna, f_templeturna, 8, M_templeTurnA_far, 51.5f},
+ {v_templeturnb, i_templeturnb, f_templeturnb, 8, M_templeTurnB_far, 51.5f},
+ {v_templeturnc, i_templeturnc, f_templeturnc, 8, M_templeTurnC_far, 51.5f},
+ {v_templeturnd, i_templeturnd, f_templeturnd, 8, M_templeTurnD_far, 51.5f},
+ {v_templetleft, i_templetleft, f_templetleft, 11, M_templeTLeft_far, 51.5f},
+ {v_templetright, i_templetright, f_templetright, 11, M_templeTRight_far, 51.5f},
+ {v_templetup, i_templetup, f_templetup, 9, M_templeTUp_far, 51.5f},
+ {v_templetdown, i_templetdown, f_templetdown, 9, M_templeTDown_far, 51.5f},
+ {v_templestraightholevert, i_templestraightholevert, f_templestraightholevert, 8, M_templeStraightHoleVert_far, 51.5f},
+ {v_templestraightholelongavert, i_templestraightholelongavert, f_templestraightholelongavert, 4, M_templeStraightHoleLongAVert_far, 51.5f},
+ {v_templestraightholelongbvert, i_templestraightholelongbvert, f_templestraightholelongbvert, 4, M_templeStraightHoleLongBVert_far, 51.5f},
+ {v_templestraightholehorz, i_templestraightholehorz, f_templestraightholehorz, 10, M_templeStraightHoleHorz_far, 51.5f},
+ {v_templestraightholelongahorz, i_templestraightholelongahorz, f_templestraightholelongahorz, 5, M_templeStraightHoleLongAHorz_far, 51.5f},
+ {v_templestraightholelongbhorz, i_templestraightholelongbhorz, f_templestraightholelongbhorz, 5, M_templeStraightHoleLongBHorz_far, 51.5f},
+ {v_templestraightnarrowsmallleftvert, i_templestraightnarrowsmallleftvert, f_templestraightnarrowsmallleftvert, 24, M_templeStraightNarrowSmallLeftVert_far, 51.5f},
+ {v_templestraightnarrowsmallrightvert, i_templestraightnarrowsmallrightvert, f_templestraightnarrowsmallrightvert, 24, M_templeStraightNarrowSmallRightVert_far, 51.5f},
+ {v_templestraightnarrowsmalldownhorz, i_templestraightnarrowsmalldownhorz, f_templestraightnarrowsmalldownhorz, 21, M_templeStraightNarrowSmallDownHorz_far, 51.5f},
+ {v_templestraightnarrowlongleftvert, i_templestraightnarrowlongleftvert, f_templestraightnarrowlongleftvert, 8, M_templeStraightNarrowLongLeftVert_far, 51.5f},
+ {v_templestraightnarrowlongleftavert, i_templestraightnarrowlongleftavert, f_templestraightnarrowlongleftavert, 20, M_templeStraightNarrowLongLeftAVert_far, 51.5f},
+ {v_templestraightnarrowlongleftbvert, i_templestraightnarrowlongleftbvert, f_templestraightnarrowlongleftbvert, 20, M_templeStraightNarrowLongLeftBVert_far, 51.5f},
+ {v_templestraightnarrowlongrightvert, i_templestraightnarrowlongrightvert, f_templestraightnarrowlongrightvert, 8, M_templeStraightNarrowLongRightVert_far, 51.5f},
+ {v_templestraightnarrowlongrightavert, i_templestraightnarrowlongrightavert, f_templestraightnarrowlongrightavert, 20, M_templeStraightNarrowLongRightAVert_far, 51.5f},
+ {v_templestraightnarrowlongrightbvert, i_templestraightnarrowlongrightbvert, f_templestraightnarrowlongrightbvert, 20, M_templeStraightNarrowLongRightBVert_far, 51.5f},
+ {v_templestraightnarrowlonguphorz, i_templestraightnarrowlonguphorz, f_templestraightnarrowlonguphorz, 3, M_templeStraightNarrowLongUpHorz_far, 51.5f},
+ {v_templestraightnarrowlongupahorz, i_templestraightnarrowlongupahorz, f_templestraightnarrowlongupahorz, 15, M_templeStraightNarrowLongUpAHorz_far, 51.5f},
+ {v_templestraightnarrowlongupbhorz, i_templestraightnarrowlongupbhorz, f_templestraightnarrowlongupbhorz, 15, M_templeStraightNarrowLongUpBHorz_far, 51.5f},
+ {v_templestraightnarrowlongdownhorz, i_templestraightnarrowlongdownhorz, f_templestraightnarrowlongdownhorz, 3, M_templeStraightNarrowLongDownHorz_far, 51.5f},
+ {v_templestraightnarrowlongdownahorz, i_templestraightnarrowlongdownahorz, f_templestraightnarrowlongdownahorz, 15, M_templeStraightNarrowLongDownAHorz_far, 51.5f},
+ {v_templestraightnarrowlongdownbhorz, i_templestraightnarrowlongdownbhorz, f_templestraightnarrowlongdownbhorz, 15, M_templeStraightNarrowLongDownBHorz_far, 51.5f},
+ {v_templestraightflametowerhighvert, i_templestraightflametowerhighvert, f_templestraightflametowerhighvert, 20, M_templeStraightFlameTowerHighVert_far, 51.5f},
+ {v_templestraightflametowerhighhorz, i_templestraightflametowerhighhorz, f_templestraightflametowerhighhorz, 16, M_templeStraightFlameTowerHighHorz_far, 51.5f},
+ {v_templetoplankcapavert, i_templetoplankcapavert, f_templetoplankcapavert, 6, M_templeToPlankCapAVert_far, 51.5f},
+ {v_templetoplankcapahorz, i_templetoplankcapahorz, f_templetoplankcapahorz, 5, M_templeToPlankCapAHorz_far, 51.5f},
+ {v_templetoplankcapbvert, i_templetoplankcapbvert, f_templetoplankcapbvert, 6, M_templeToPlankCapBVert_far, 51.5f},
+ {v_templetoplankcapbhorz, i_templetoplankcapbhorz, f_templetoplankcapbhorz, 5, M_templeToPlankCapBHorz_far, 51.5f},
+ {v_templestraighttreetripleftvert, i_templestraighttreetripleftvert, f_templestraighttreetripleftvert, 13, M_templeStraightTreeTripLeftVert_far, 51.5f},
+ {v_templestraighttreetriprightvert, i_templestraighttreetriprightvert, f_templestraighttreetriprightvert, 13, M_templeStraightTreeTripRightVert_far, 51.5f},
+ {v_templestraighttreetripuphorz, i_templestraighttreetripuphorz, f_templestraighttreetripuphorz, 9, M_templeStraightTreeTripUpHorz_far, 51.5f},
+ {v_templestraighttreetripdownhorz, i_templestraighttreetripdownhorz, f_templestraighttreetripdownhorz, 9, M_templeStraightTreeTripDownHorz_far, 51.5f},
+ {v_templestraighttreejumpleftvert, i_templestraighttreejumpleftvert, f_templestraighttreejumpleftvert, 13, M_templeStraightTreeJumpLeftVert_far, 51.5f},
+ {v_templestraighttreejumprightvert, i_templestraighttreejumprightvert, f_templestraighttreejumprightvert, 13, M_templeStraightTreeJumpRightVert_far, 51.5f},
+ {v_templestraighttreejumpuphorz, i_templestraighttreejumpuphorz, f_templestraighttreejumpuphorz, 9, M_templeStraightTreeJumpUpHorz_far, 51.5f},
+ {v_templestraighttreejumpdownhorz, i_templestraighttreejumpdownhorz, f_templestraighttreejumpdownhorz, 9, M_templeStraightTreeJumpDownHorz_far, 51.5f},
+ {v_templestraighttreeslidevert, i_templestraighttreeslidevert, f_templestraighttreeslidevert, 19, M_templeStraightTreeSlideVert_far, 51.5f},
+ {v_templestraighttreeslidehorz, i_templestraighttreeslidehorz, f_templestraighttreeslidehorz, 15, M_templeStraightTreeSlideHorz_far, 51.5f},
+ {v_temple, i_temple, f_temple, 19, M_temple_far, 79.0f},
+ {v_plankstraightvert, i_plankstraightvert, f_plankstraightvert, 8, M_plankStraightVert_far, 63.9f},
+ {v_plankstraighthorz, i_plankstraighthorz, f_plankstraighthorz, 4, M_plankStraightHorz_far, 63.9f},
+ {v_plankturna, i_plankturna, f_plankturna, 8, M_plankTurnA_far, 63.9f},
+ {v_plankturnb, i_plankturnb, f_plankturnb, 8, M_plankTurnB_far, 63.9f},
+ {v_plankturnc, i_plankturnc, f_plankturnc, 8, M_plankTurnC_far, 63.9f},
+ {v_plankturnd, i_plankturnd, f_plankturnd, 8, M_plankTurnD_far, 63.9f},
+ {v_planktleft, i_planktleft, f_planktleft, 11, M_plankTLeft_far, 63.9f},
+ {v_planktright, i_planktright, f_planktright, 11, M_plankTRight_far, 63.9f},
+ {v_planktup, i_planktup, f_planktup, 9, M_plankTUp_far, 63.9f},
+ {v_planktdown, i_planktdown, f_planktdown, 9, M_plankTDown_far, 63.9f},
+ {v_plankstraightholevert, i_plankstraightholevert, f_plankstraightholevert, 0, M_plankStraightHoleVert_far, 0.5f},
+ {v_plankstraightholehorz, i_plankstraightholehorz, f_plankstraightholehorz, 0, M_plankStraightHoleHorz_far, 0.5f},
+ {v_plankstraighttowervert, i_plankstraighttowervert, f_plankstraighttowervert, 20, M_plankStraightTowerVert_far, 63.9f},
+ {v_plankstraighttowerhorz, i_plankstraighttowerhorz, f_plankstraighttowerhorz, 16, M_plankStraightTowerHorz_far, 63.9f},
+ {v_cliffstraightvert, i_cliffstraightvert, f_cliffstraightvert, 8, M_cliffStraightVert_far, 51.1f},
+ {v_cliffstraighthorz, i_cliffstraighthorz, f_cliffstraighthorz, 4, M_cliffStraightHorz_far, 51.1f},
+ {v_cliffturna, i_cliffturna, f_cliffturna, 9, M_cliffTurnA_far, 51.1f},
+ {v_cliffturnb, i_cliffturnb, f_cliffturnb, 9, M_cliffTurnB_far, 51.1f},
+ {v_cliffturnc, i_cliffturnc, f_cliffturnc, 9, M_cliffTurnC_far, 51.1f},
+ {v_cliffturnd, i_cliffturnd, f_cliffturnd, 12, M_cliffTurnD_far, 51.1f},
+ {v_clifftleft, i_clifftleft, f_clifftleft, 13, M_cliffTLeft_far, 51.1f},
+ {v_clifftright, i_clifftright, f_clifftright, 13, M_cliffTRight_far, 51.1f},
+ {v_clifftup, i_clifftup, f_clifftup, 10, M_cliffTUp_far, 51.1f},
+ {v_clifftdown, i_clifftdown, f_clifftdown, 10, M_cliffTDown_far, 51.1f},
+ {v_clifftotemplecapavert, i_clifftotemplecapavert, f_clifftotemplecapavert, 9, M_cliffToTempleCapAVert_far, 51.1f},
+ {v_clifftotemplecapahorz, i_clifftotemplecapahorz, f_clifftotemplecapahorz, 8, M_cliffToTempleCapAHorz_far, 51.1f},
+ {v_clifftotemplecapbvert, i_clifftotemplecapbvert, f_clifftotemplecapbvert, 9, M_cliffToTempleCapBVert_far, 51.1f},
+ {v_clifftotemplecapbhorz, i_clifftotemplecapbhorz, f_clifftotemplecapbhorz, 8, M_cliffToTempleCapBHorz_far, 51.1f},
+ {v_cliffstraighttreevert, i_cliffstraighttreevert, f_cliffstraighttreevert, 29, M_cliffStraightTreeVert_far, 51.1f},
+ {v_cliffstraighttreehorz, i_cliffstraighttreehorz, f_cliffstraighttreehorz, 25, M_cliffStraightTreeHorz_far, 51.1f},
+ {v_templestraightvert_far, i_templestraightvert_far, f_templestraightvert_far, 3, -1, 51.5f},
+ {v_templestraightvert2_far, i_templestraightvert2_far, f_templestraightvert2_far, 3, -1, 51.5f},
+ {v_templestraightvert3_far, i_templestraightvert3_far, f_templestraightvert3_far, 3, -1, 51.5f},
+ {v_templestraightvert4_far, i_templestraightvert4_far, f_templestraightvert4_far, 3, -1, 51.5f},
+ {v_templestraightvert5_far, i_templestraightvert5_far, f_templestraightvert5_far, 3, -1, 51.5f},
+ {v_templestraighttowervert_far, i_templestraighttowervert_far, f_templestraighttowervert_far, 3, -1, 51.5f},
+ {v_templestraighthorz_far, i_templestraighthorz_far, f_templestraighthorz_far, 3, -1, 51.5f},
+ {v_templestraighthorz2_far, i_templestraighthorz2_far, f_templestraighthorz2_far, 3, -1, 51.5f},
+ {v_templestraighthorz3_far, i_templestraighthorz3_far, f_templestraighthorz3_far, 3, -1, 51.5f},
+ {v_templestraighthorz4_far, i_templestraighthorz4_far, f_templestraighthorz4_far, 3, -1, 51.5f},
+ {v_templestraighthorz5_far, i_templestraighthorz5_far, f_templestraighthorz5_far, 3, -1, 51.5f},
+ {v_templestraighttowerhorz_far, i_templestraighttowerhorz_far, f_templestraighttowerhorz_far, 3, -1, 51.5f},
+ {v_templeturna_far, i_templeturna_far, f_templeturna_far, 6, -1, 51.5f},
+ {v_templeturnb_far, i_templeturnb_far, f_templeturnb_far, 6, -1, 51.5f},
+ {v_templeturnc_far, i_templeturnc_far, f_templeturnc_far, 6, -1, 51.5f},
+ {v_templeturnd_far, i_templeturnd_far, f_templeturnd_far, 6, -1, 51.5f},
+ {v_templetleft_far, i_templetleft_far, f_templetleft_far, 8, -1, 51.5f},
+ {v_templetright_far, i_templetright_far, f_templetright_far, 8, -1, 51.5f},
+ {v_templetup_far, i_templetup_far, f_templetup_far, 7, -1, 51.5f},
+ {v_templetdown_far, i_templetdown_far, f_templetdown_far, 7, -1, 51.5f},
+ {v_templestraightholevert_far, i_templestraightholevert_far, f_templestraightholevert_far, 8, -1, 51.5f},
+ {v_templestraightholelongavert_far, i_templestraightholelongavert_far, f_templestraightholelongavert_far, 4, -1, 51.5f},
+ {v_templestraightholelongbvert_far, i_templestraightholelongbvert_far, f_templestraightholelongbvert_far, 4, -1, 51.5f},
+ {v_templestraightholehorz_far, i_templestraightholehorz_far, f_templestraightholehorz_far, 8, -1, 51.5f},
+ {v_templestraightholelongahorz_far, i_templestraightholelongahorz_far, f_templestraightholelongahorz_far, 4, -1, 51.5f},
+ {v_templestraightholelongbhorz_far, i_templestraightholelongbhorz_far, f_templestraightholelongbhorz_far, 4, -1, 51.5f},
+ {v_templestraightnarrowsmallleftvert_far, i_templestraightnarrowsmallleftvert_far, f_templestraightnarrowsmallleftvert_far, 21, -1, 51.5f},
+ {v_templestraightnarrowsmallrightvert_far, i_templestraightnarrowsmallrightvert_far, f_templestraightnarrowsmallrightvert_far, 21, -1, 51.5f},
+ {v_templestraightnarrowsmalldownhorz_far, i_templestraightnarrowsmalldownhorz_far, f_templestraightnarrowsmalldownhorz_far, 21, -1, 51.5f},
+ {v_templestraightnarrowlongleftvert_far, i_templestraightnarrowlongleftvert_far, f_templestraightnarrowlongleftvert_far, 3, -1, 51.5f},
+ {v_templestraightnarrowlongleftavert_far, i_templestraightnarrowlongleftavert_far, f_templestraightnarrowlongleftavert_far, 15, -1, 51.5f},
+ {v_templestraightnarrowlongleftbvert_far, i_templestraightnarrowlongleftbvert_far, f_templestraightnarrowlongleftbvert_far, 15, -1, 51.5f},
+ {v_templestraightnarrowlongrightvert_far, i_templestraightnarrowlongrightvert_far, f_templestraightnarrowlongrightvert_far, 3, -1, 51.5f},
+ {v_templestraightnarrowlongrightavert_far, i_templestraightnarrowlongrightavert_far, f_templestraightnarrowlongrightavert_far, 15, -1, 51.5f},
+ {v_templestraightnarrowlongrightbvert_far, i_templestraightnarrowlongrightbvert_far, f_templestraightnarrowlongrightbvert_far, 15, -1, 51.5f},
+ {v_templestraightnarrowlonguphorz_far, i_templestraightnarrowlonguphorz_far, f_templestraightnarrowlonguphorz_far, 3, -1, 51.5f},
+ {v_templestraightnarrowlongupahorz_far, i_templestraightnarrowlongupahorz_far, f_templestraightnarrowlongupahorz_far, 15, -1, 51.5f},
+ {v_templestraightnarrowlongupbhorz_far, i_templestraightnarrowlongupbhorz_far, f_templestraightnarrowlongupbhorz_far, 15, -1, 51.5f},
+ {v_templestraightnarrowlongdownhorz_far, i_templestraightnarrowlongdownhorz_far, f_templestraightnarrowlongdownhorz_far, 3, -1, 51.5f},
+ {v_templestraightnarrowlongdownahorz_far, i_templestraightnarrowlongdownahorz_far, f_templestraightnarrowlongdownahorz_far, 15, -1, 51.5f},
+ {v_templestraightnarrowlongdownbhorz_far, i_templestraightnarrowlongdownbhorz_far, f_templestraightnarrowlongdownbhorz_far, 15, -1, 51.5f},
+ {v_templestraightflametowerhighvert_far, i_templestraightflametowerhighvert_far, f_templestraightflametowerhighvert_far, 3, -1, 51.5f},
+ {v_templestraightflametowerhighhorz_far, i_templestraightflametowerhighhorz_far, f_templestraightflametowerhighhorz_far, 3, -1, 51.5f},
+ {v_templetoplankcapavert_far, i_templetoplankcapavert_far, f_templetoplankcapavert_far, 4, -1, 51.5f},
+ {v_templetoplankcapahorz_far, i_templetoplankcapahorz_far, f_templetoplankcapahorz_far, 4, -1, 51.5f},
+ {v_templetoplankcapbvert_far, i_templetoplankcapbvert_far, f_templetoplankcapbvert_far, 4, -1, 51.5f},
+ {v_templetoplankcapbhorz_far, i_templetoplankcapbhorz_far, f_templetoplankcapbhorz_far, 4, -1, 51.5f},
+ {v_templestraighttreetripleftvert_far, i_templestraighttreetripleftvert_far, f_templestraighttreetripleftvert_far, 3, -1, 51.5f},
+ {v_templestraighttreetriprightvert_far, i_templestraighttreetriprightvert_far, f_templestraighttreetriprightvert_far, 3, -1, 51.5f},
+ {v_templestraighttreetripuphorz_far, i_templestraighttreetripuphorz_far, f_templestraighttreetripuphorz_far, 3, -1, 51.5f},
+ {v_templestraighttreetripdownhorz_far, i_templestraighttreetripdownhorz_far, f_templestraighttreetripdownhorz_far, 3, -1, 51.5f},
+ {v_templestraighttreejumpleftvert_far, i_templestraighttreejumpleftvert_far, f_templestraighttreejumpleftvert_far, 3, -1, 51.5f},
+ {v_templestraighttreejumprightvert_far, i_templestraighttreejumprightvert_far, f_templestraighttreejumprightvert_far, 3, -1, 51.5f},
+ {v_templestraighttreejumpuphorz_far, i_templestraighttreejumpuphorz_far, f_templestraighttreejumpuphorz_far, 3, -1, 51.5f},
+ {v_templestraighttreejumpdownhorz_far, i_templestraighttreejumpdownhorz_far, f_templestraighttreejumpdownhorz_far, 3, -1, 51.5f},
+ {v_templestraighttreeslidevert_far, i_templestraighttreeslidevert_far, f_templestraighttreeslidevert_far, 3, -1, 51.5f},
+ {v_templestraighttreeslidehorz_far, i_templestraighttreeslidehorz_far, f_templestraighttreeslidehorz_far, 3, -1, 51.5f},
+ {v_temple_far, i_temple_far, f_temple_far, 3, -1, 51.5f},
+ {v_plankstraightvert_far, i_plankstraightvert_far, f_plankstraightvert_far, 3, -1, 63.9f},
+ {v_plankstraighthorz_far, i_plankstraighthorz_far, f_plankstraighthorz_far, 3, -1, 63.9f},
+ {v_plankturna_far, i_plankturna_far, f_plankturna_far, 6, -1, 63.9f},
+ {v_plankturnb_far, i_plankturnb_far, f_plankturnb_far, 6, -1, 63.9f},
+ {v_plankturnc_far, i_plankturnc_far, f_plankturnc_far, 6, -1, 63.9f},
+ {v_plankturnd_far, i_plankturnd_far, f_plankturnd_far, 6, -1, 63.9f},
+ {v_planktleft_far, i_planktleft_far, f_planktleft_far, 8, -1, 63.9f},
+ {v_planktright_far, i_planktright_far, f_planktright_far, 8, -1, 63.9f},
+ {v_planktup_far, i_planktup_far, f_planktup_far, 7, -1, 63.9f},
+ {v_planktdown_far, i_planktdown_far, f_planktdown_far, 7, -1, 63.9f},
+ {v_plankstraightholevert_far, i_plankstraightholevert_far, f_plankstraightholevert_far, 0, -1, 0.5f},
+ {v_plankstraightholehorz_far, i_plankstraightholehorz_far, f_plankstraightholehorz_far, 0, -1, 0.5f},
+ {v_plankstraighttowervert_far, i_plankstraighttowervert_far, f_plankstraighttowervert_far, 3, -1, 63.9f},
+ {v_plankstraighttowerhorz_far, i_plankstraighttowerhorz_far, f_plankstraighttowerhorz_far, 3, -1, 63.9f},
+ {v_cliffstraightvert_far, i_cliffstraightvert_far, f_cliffstraightvert_far, 3, -1, 51.1f},
+ {v_cliffstraighthorz_far, i_cliffstraighthorz_far, f_cliffstraighthorz_far, 3, -1, 51.1f},
+ {v_cliffturna_far, i_cliffturna_far, f_cliffturna_far, 6, -1, 51.1f},
+ {v_cliffturnb_far, i_cliffturnb_far, f_cliffturnb_far, 6, -1, 51.1f},
+ {v_cliffturnc_far, i_cliffturnc_far, f_cliffturnc_far, 6, -1, 51.1f},
+ {v_cliffturnd_far, i_cliffturnd_far, f_cliffturnd_far, 9, -1, 51.1f},
+ {v_clifftleft_far, i_clifftleft_far, f_clifftleft_far, 8, -1, 51.1f},
+ {v_clifftright_far, i_clifftright_far, f_clifftright_far, 8, -1, 51.1f},
+ {v_clifftup_far, i_clifftup_far, f_clifftup_far, 7, -1, 51.1f},
+ {v_clifftdown_far, i_clifftdown_far, f_clifftdown_far, 7, -1, 51.1f},
+ {v_clifftotemplecapavert_far, i_clifftotemplecapavert_far, f_clifftotemplecapavert_far, 7, -1, 51.1f},
+ {v_clifftotemplecapahorz_far, i_clifftotemplecapahorz_far, f_clifftotemplecapahorz_far, 7, -1, 51.1f},
+ {v_clifftotemplecapbvert_far, i_clifftotemplecapbvert_far, f_clifftotemplecapbvert_far, 7, -1, 51.1f},
+ {v_clifftotemplecapbhorz_far, i_clifftotemplecapbhorz_far, f_clifftotemplecapbhorz_far, 7, -1, 51.1f},
+ {v_cliffstraighttreevert_far, i_cliffstraighttreevert_far, f_cliffstraighttreevert_far, 13, -1, 51.1f},
+ {v_cliffstraighttreehorz_far, i_cliffstraighttreehorz_far, f_cliffstraighttreehorz_far, 13, -1, 51.1f},
{v_runner_run0, i_runner_run0, f_runner_run0, 69, -1, 10.3f},
{v_runner_run1, i_runner_run1, f_runner_run1, 69, -1, 10.0f},
{v_runner_run2, i_runner_run2, f_runner_run2, 69, -1, 10.3f},
@@ -300,73 +812,10 @@ const Mesh meshes[M_COUNT] = {
{v_pursuer_run1, i_pursuer_run1, f_pursuer_run1, 51, -1, 8.7f},
{v_pursuer_run2, i_pursuer_run2, f_pursuer_run2, 51, -1, 9.0f},
{v_pursuer_run3, i_pursuer_run3, f_pursuer_run3, 51, -1, 8.7f},
- {v_temple_straight, i_temple_straight, f_temple_straight, 18, M_TEMPLE_STRAIGHT_FAR, 53.1f},
- {v_temple_straight_far, i_temple_straight_far, f_temple_straight_far, 3, -1, 40.2f},
- {v_temple_hole, i_temple_hole, f_temple_hole, 28, M_TEMPLE_HOLE_FAR, 53.1f},
- {v_temple_hole_far, i_temple_hole_far, f_temple_hole_far, 4, -1, 40.2f},
- {v_temple_hole_long, i_temple_hole_long, f_temple_hole_long, 28, M_TEMPLE_HOLE_LONG_FAR, 53.1f},
- {v_temple_hole_long_far, i_temple_hole_long_far, f_temple_hole_long_far, 4, -1, 40.2f},
- {v_temple_narrow_l, i_temple_narrow_l, f_temple_narrow_l, 17, M_TEMPLE_NARROW_L_FAR, 53.1f},
- {v_temple_narrow_l_far, i_temple_narrow_l_far, f_temple_narrow_l_far, 1, -1, 32.1f},
- {v_temple_narrow_r, i_temple_narrow_r, f_temple_narrow_r, 17, M_TEMPLE_NARROW_R_FAR, 53.1f},
- {v_temple_narrow_r_far, i_temple_narrow_r_far, f_temple_narrow_r_far, 1, -1, 32.1f},
- {v_temple_corner_l, i_temple_corner_l, f_temple_corner_l, 30, M_TEMPLE_CORNER_L_FAR, 53.1f},
- {v_temple_corner_l_far, i_temple_corner_l_far, f_temple_corner_l_far, 2, -1, 32.1f},
- {v_temple_corner_r, i_temple_corner_r, f_temple_corner_r, 30, M_TEMPLE_CORNER_R_FAR, 53.1f},
- {v_temple_corner_r_far, i_temple_corner_r_far, f_temple_corner_r_far, 2, -1, 32.1f},
- {v_temple_t, i_temple_t, f_temple_t, 38, M_TEMPLE_T_FAR, 53.1f},
- {v_temple_t_far, i_temple_t_far, f_temple_t_far, 2, -1, 32.1f},
- {v_temple_step_up, i_temple_step_up, f_temple_step_up, 20, M_TEMPLE_STEP_UP_FAR, 53.1f},
- {v_temple_step_up_far, i_temple_step_up_far, f_temple_step_up_far, 1, -1, 35.5f},
- {v_temple_step_down, i_temple_step_down, f_temple_step_down, 15, M_TEMPLE_STEP_DOWN_FAR, 53.1f},
- {v_temple_step_down_far, i_temple_step_down_far, f_temple_step_down_far, 1, -1, 34.3f},
- {v_plank_straight, i_plank_straight, f_plank_straight, 58, M_PLANK_STRAIGHT_FAR, 53.1f},
- {v_plank_straight_far, i_plank_straight_far, f_plank_straight_far, 3, -1, 40.2f},
- {v_plank_hole, i_plank_hole, f_plank_hole, 108, M_PLANK_HOLE_FAR, 53.1f},
- {v_plank_hole_far, i_plank_hole_far, f_plank_hole_far, 4, -1, 40.2f},
- {v_plank_hole_long, i_plank_hole_long, f_plank_hole_long, 108, M_PLANK_HOLE_LONG_FAR, 53.1f},
- {v_plank_hole_long_far, i_plank_hole_long_far, f_plank_hole_long_far, 4, -1, 40.2f},
- {v_plank_narrow_l, i_plank_narrow_l, f_plank_narrow_l, 37, M_PLANK_NARROW_L_FAR, 53.1f},
- {v_plank_narrow_l_far, i_plank_narrow_l_far, f_plank_narrow_l_far, 1, -1, 32.1f},
- {v_plank_narrow_r, i_plank_narrow_r, f_plank_narrow_r, 37, M_PLANK_NARROW_R_FAR, 53.1f},
- {v_plank_narrow_r_far, i_plank_narrow_r_far, f_plank_narrow_r_far, 1, -1, 32.1f},
- {v_plank_corner_l, i_plank_corner_l, f_plank_corner_l, 110, M_PLANK_CORNER_L_FAR, 53.1f},
- {v_plank_corner_l_far, i_plank_corner_l_far, f_plank_corner_l_far, 2, -1, 32.1f},
- {v_plank_corner_r, i_plank_corner_r, f_plank_corner_r, 110, M_PLANK_CORNER_R_FAR, 53.1f},
- {v_plank_corner_r_far, i_plank_corner_r_far, f_plank_corner_r_far, 2, -1, 32.1f},
- {v_plank_t, i_plank_t, f_plank_t, 138, M_PLANK_T_FAR, 53.1f},
- {v_plank_t_far, i_plank_t_far, f_plank_t_far, 2, -1, 32.1f},
- {v_plank_step_up, i_plank_step_up, f_plank_step_up, 20, M_PLANK_STEP_UP_FAR, 53.1f},
- {v_plank_step_up_far, i_plank_step_up_far, f_plank_step_up_far, 1, -1, 35.5f},
- {v_plank_step_down, i_plank_step_down, f_plank_step_down, 15, M_PLANK_STEP_DOWN_FAR, 53.1f},
- {v_plank_step_down_far, i_plank_step_down_far, f_plank_step_down_far, 1, -1, 34.3f},
- {v_cliff_straight, i_cliff_straight, f_cliff_straight, 18, M_CLIFF_STRAIGHT_FAR, 53.1f},
- {v_cliff_straight_far, i_cliff_straight_far, f_cliff_straight_far, 3, -1, 40.2f},
- {v_cliff_hole, i_cliff_hole, f_cliff_hole, 28, M_CLIFF_HOLE_FAR, 53.1f},
- {v_cliff_hole_far, i_cliff_hole_far, f_cliff_hole_far, 4, -1, 40.2f},
- {v_cliff_hole_long, i_cliff_hole_long, f_cliff_hole_long, 28, M_CLIFF_HOLE_LONG_FAR, 53.1f},
- {v_cliff_hole_long_far, i_cliff_hole_long_far, f_cliff_hole_long_far, 4, -1, 40.2f},
- {v_cliff_narrow_l, i_cliff_narrow_l, f_cliff_narrow_l, 17, M_CLIFF_NARROW_L_FAR, 53.1f},
- {v_cliff_narrow_l_far, i_cliff_narrow_l_far, f_cliff_narrow_l_far, 1, -1, 32.1f},
- {v_cliff_narrow_r, i_cliff_narrow_r, f_cliff_narrow_r, 17, M_CLIFF_NARROW_R_FAR, 53.1f},
- {v_cliff_narrow_r_far, i_cliff_narrow_r_far, f_cliff_narrow_r_far, 1, -1, 32.1f},
- {v_cliff_corner_l, i_cliff_corner_l, f_cliff_corner_l, 30, M_CLIFF_CORNER_L_FAR, 53.1f},
- {v_cliff_corner_l_far, i_cliff_corner_l_far, f_cliff_corner_l_far, 2, -1, 32.1f},
- {v_cliff_corner_r, i_cliff_corner_r, f_cliff_corner_r, 30, M_CLIFF_CORNER_R_FAR, 53.1f},
- {v_cliff_corner_r_far, i_cliff_corner_r_far, f_cliff_corner_r_far, 2, -1, 32.1f},
- {v_cliff_t, i_cliff_t, f_cliff_t, 38, M_CLIFF_T_FAR, 53.1f},
- {v_cliff_t_far, i_cliff_t_far, f_cliff_t_far, 2, -1, 32.1f},
- {v_cliff_step_up, i_cliff_step_up, f_cliff_step_up, 20, M_CLIFF_STEP_UP_FAR, 53.1f},
- {v_cliff_step_up_far, i_cliff_step_up_far, f_cliff_step_up_far, 1, -1, 35.5f},
- {v_cliff_step_down, i_cliff_step_down, f_cliff_step_down, 15, M_CLIFF_STEP_DOWN_FAR, 53.1f},
- {v_cliff_step_down_far, i_cliff_step_down_far, f_cliff_step_down_far, 1, -1, 34.3f},
- {v_root_low, i_root_low, f_root_low, 15, -1, 10.7f},
- {v_tree_jump, i_tree_jump, f_tree_jump, 15, -1, 15.5f},
- {v_branch_slide, i_branch_slide, f_branch_slide, 34, -1, 16.0f},
- {v_fire0, i_fire0, f_fire0, 27, -1, 7.8f},
- {v_fire1, i_fire1, f_fire1, 27, -1, 8.1f},
- {v_fire2, i_fire2, f_fire2, 27, -1, 7.9f},
- {v_fire3, i_fire3, f_fire3, 27, -1, 8.3f},
+ {v_fire0, i_fire0, f_fire0, 8, -1, 12.0f},
+ {v_fire1, i_fire1, f_fire1, 8, -1, 12.3f},
+ {v_fire2, i_fire2, f_fire2, 8, -1, 11.8f},
+ {v_fire3, i_fire3, f_fire3, 8, -1, 12.0f},
{v_coin_y, i_coin_y, f_coin_y, 2, -1, 5.1f},
{v_coin_r, i_coin_r, f_coin_r, 2, -1, 5.1f},
{v_coin_b, i_coin_b, f_coin_b, 2, -1, 5.1f},
@@ -379,6 +828,5 @@ const Mesh meshes[M_COUNT] = {
{v_jungle_tall, i_jungle_tall, f_jungle_tall, 17, M_JUNGLE_TALL_FAR, 70.6f},
{v_jungle_tall_far, i_jungle_tall_far, f_jungle_tall_far, 7, -1, 52.1f},
{v_pillar, i_pillar, f_pillar, 11, -1, 50.7f},
- {v_cliff_wall, i_cliff_wall, f_cliff_wall, 2, -1, 50.1f},
- {v_temple, i_temple, f_temple, 11, -1, 79.0f},
+ {v_cliff_wall, i_cliff_wall, f_cliff_wall, 2, -1, 47.4f},
};
diff --git a/games/templerun/src/data.h b/games/templerun/src/data.h
index 10bc2d78..79a78534 100644
--- a/games/templerun/src/data.h
+++ b/games/templerun/src/data.h
@@ -5,6 +5,182 @@
#include "r3d.h"
enum {
+ M_templeStraightVert,
+ M_templeStraightVert2,
+ M_templeStraightVert3,
+ M_templeStraightVert4,
+ M_templeStraightVert5,
+ M_templeStraightTowerVert,
+ M_templeStraightHorz,
+ M_templeStraightHorz2,
+ M_templeStraightHorz3,
+ M_templeStraightHorz4,
+ M_templeStraightHorz5,
+ M_templeStraightTowerHorz,
+ M_templeTurnA,
+ M_templeTurnB,
+ M_templeTurnC,
+ M_templeTurnD,
+ M_templeTLeft,
+ M_templeTRight,
+ M_templeTUp,
+ M_templeTDown,
+ M_templeStraightHoleVert,
+ M_templeStraightHoleLongAVert,
+ M_templeStraightHoleLongBVert,
+ M_templeStraightHoleHorz,
+ M_templeStraightHoleLongAHorz,
+ M_templeStraightHoleLongBHorz,
+ M_templeStraightNarrowSmallLeftVert,
+ M_templeStraightNarrowSmallRightVert,
+ M_templeStraightNarrowSmallDownHorz,
+ M_templeStraightNarrowLongLeftVert,
+ M_templeStraightNarrowLongLeftAVert,
+ M_templeStraightNarrowLongLeftBVert,
+ M_templeStraightNarrowLongRightVert,
+ M_templeStraightNarrowLongRightAVert,
+ M_templeStraightNarrowLongRightBVert,
+ M_templeStraightNarrowLongUpHorz,
+ M_templeStraightNarrowLongUpAHorz,
+ M_templeStraightNarrowLongUpBHorz,
+ M_templeStraightNarrowLongDownHorz,
+ M_templeStraightNarrowLongDownAHorz,
+ M_templeStraightNarrowLongDownBHorz,
+ M_templeStraightFlameTowerHighVert,
+ M_templeStraightFlameTowerHighHorz,
+ M_templeToPlankCapAVert,
+ M_templeToPlankCapAHorz,
+ M_templeToPlankCapBVert,
+ M_templeToPlankCapBHorz,
+ M_templeStraightTreeTripLeftVert,
+ M_templeStraightTreeTripRightVert,
+ M_templeStraightTreeTripUpHorz,
+ M_templeStraightTreeTripDownHorz,
+ M_templeStraightTreeJumpLeftVert,
+ M_templeStraightTreeJumpRightVert,
+ M_templeStraightTreeJumpUpHorz,
+ M_templeStraightTreeJumpDownHorz,
+ M_templeStraightTreeSlideVert,
+ M_templeStraightTreeSlideHorz,
+ M_temple,
+ M_plankStraightVert,
+ M_plankStraightHorz,
+ M_plankTurnA,
+ M_plankTurnB,
+ M_plankTurnC,
+ M_plankTurnD,
+ M_plankTLeft,
+ M_plankTRight,
+ M_plankTUp,
+ M_plankTDown,
+ M_plankStraightHoleVert,
+ M_plankStraightHoleHorz,
+ M_plankStraightTowerVert,
+ M_plankStraightTowerHorz,
+ M_cliffStraightVert,
+ M_cliffStraightHorz,
+ M_cliffTurnA,
+ M_cliffTurnB,
+ M_cliffTurnC,
+ M_cliffTurnD,
+ M_cliffTLeft,
+ M_cliffTRight,
+ M_cliffTUp,
+ M_cliffTDown,
+ M_cliffToTempleCapAVert,
+ M_cliffToTempleCapAHorz,
+ M_cliffToTempleCapBVert,
+ M_cliffToTempleCapBHorz,
+ M_cliffStraightTreeVert,
+ M_cliffStraightTreeHorz,
+ M_templeStraightVert_far,
+ M_templeStraightVert2_far,
+ M_templeStraightVert3_far,
+ M_templeStraightVert4_far,
+ M_templeStraightVert5_far,
+ M_templeStraightTowerVert_far,
+ M_templeStraightHorz_far,
+ M_templeStraightHorz2_far,
+ M_templeStraightHorz3_far,
+ M_templeStraightHorz4_far,
+ M_templeStraightHorz5_far,
+ M_templeStraightTowerHorz_far,
+ M_templeTurnA_far,
+ M_templeTurnB_far,
+ M_templeTurnC_far,
+ M_templeTurnD_far,
+ M_templeTLeft_far,
+ M_templeTRight_far,
+ M_templeTUp_far,
+ M_templeTDown_far,
+ M_templeStraightHoleVert_far,
+ M_templeStraightHoleLongAVert_far,
+ M_templeStraightHoleLongBVert_far,
+ M_templeStraightHoleHorz_far,
+ M_templeStraightHoleLongAHorz_far,
+ M_templeStraightHoleLongBHorz_far,
+ M_templeStraightNarrowSmallLeftVert_far,
+ M_templeStraightNarrowSmallRightVert_far,
+ M_templeStraightNarrowSmallDownHorz_far,
+ M_templeStraightNarrowLongLeftVert_far,
+ M_templeStraightNarrowLongLeftAVert_far,
+ M_templeStraightNarrowLongLeftBVert_far,
+ M_templeStraightNarrowLongRightVert_far,
+ M_templeStraightNarrowLongRightAVert_far,
+ M_templeStraightNarrowLongRightBVert_far,
+ M_templeStraightNarrowLongUpHorz_far,
+ M_templeStraightNarrowLongUpAHorz_far,
+ M_templeStraightNarrowLongUpBHorz_far,
+ M_templeStraightNarrowLongDownHorz_far,
+ M_templeStraightNarrowLongDownAHorz_far,
+ M_templeStraightNarrowLongDownBHorz_far,
+ M_templeStraightFlameTowerHighVert_far,
+ M_templeStraightFlameTowerHighHorz_far,
+ M_templeToPlankCapAVert_far,
+ M_templeToPlankCapAHorz_far,
+ M_templeToPlankCapBVert_far,
+ M_templeToPlankCapBHorz_far,
+ M_templeStraightTreeTripLeftVert_far,
+ M_templeStraightTreeTripRightVert_far,
+ M_templeStraightTreeTripUpHorz_far,
+ M_templeStraightTreeTripDownHorz_far,
+ M_templeStraightTreeJumpLeftVert_far,
+ M_templeStraightTreeJumpRightVert_far,
+ M_templeStraightTreeJumpUpHorz_far,
+ M_templeStraightTreeJumpDownHorz_far,
+ M_templeStraightTreeSlideVert_far,
+ M_templeStraightTreeSlideHorz_far,
+ M_temple_far,
+ M_plankStraightVert_far,
+ M_plankStraightHorz_far,
+ M_plankTurnA_far,
+ M_plankTurnB_far,
+ M_plankTurnC_far,
+ M_plankTurnD_far,
+ M_plankTLeft_far,
+ M_plankTRight_far,
+ M_plankTUp_far,
+ M_plankTDown_far,
+ M_plankStraightHoleVert_far,
+ M_plankStraightHoleHorz_far,
+ M_plankStraightTowerVert_far,
+ M_plankStraightTowerHorz_far,
+ M_cliffStraightVert_far,
+ M_cliffStraightHorz_far,
+ M_cliffTurnA_far,
+ M_cliffTurnB_far,
+ M_cliffTurnC_far,
+ M_cliffTurnD_far,
+ M_cliffTLeft_far,
+ M_cliffTRight_far,
+ M_cliffTUp_far,
+ M_cliffTDown_far,
+ M_cliffToTempleCapAVert_far,
+ M_cliffToTempleCapAHorz_far,
+ M_cliffToTempleCapBVert_far,
+ M_cliffToTempleCapBHorz_far,
+ M_cliffStraightTreeVert_far,
+ M_cliffStraightTreeHorz_far,
M_RUNNER_RUN0,
M_RUNNER_RUN1,
M_RUNNER_RUN2,
@@ -18,69 +194,6 @@ enum {
M_PURSUER_RUN1,
M_PURSUER_RUN2,
M_PURSUER_RUN3,
- M_TEMPLE_STRAIGHT,
- M_TEMPLE_STRAIGHT_FAR,
- M_TEMPLE_HOLE,
- M_TEMPLE_HOLE_FAR,
- M_TEMPLE_HOLE_LONG,
- M_TEMPLE_HOLE_LONG_FAR,
- M_TEMPLE_NARROW_L,
- M_TEMPLE_NARROW_L_FAR,
- M_TEMPLE_NARROW_R,
- M_TEMPLE_NARROW_R_FAR,
- M_TEMPLE_CORNER_L,
- M_TEMPLE_CORNER_L_FAR,
- M_TEMPLE_CORNER_R,
- M_TEMPLE_CORNER_R_FAR,
- M_TEMPLE_T,
- M_TEMPLE_T_FAR,
- M_TEMPLE_STEP_UP,
- M_TEMPLE_STEP_UP_FAR,
- M_TEMPLE_STEP_DOWN,
- M_TEMPLE_STEP_DOWN_FAR,
- M_PLANK_STRAIGHT,
- M_PLANK_STRAIGHT_FAR,
- M_PLANK_HOLE,
- M_PLANK_HOLE_FAR,
- M_PLANK_HOLE_LONG,
- M_PLANK_HOLE_LONG_FAR,
- M_PLANK_NARROW_L,
- M_PLANK_NARROW_L_FAR,
- M_PLANK_NARROW_R,
- M_PLANK_NARROW_R_FAR,
- M_PLANK_CORNER_L,
- M_PLANK_CORNER_L_FAR,
- M_PLANK_CORNER_R,
- M_PLANK_CORNER_R_FAR,
- M_PLANK_T,
- M_PLANK_T_FAR,
- M_PLANK_STEP_UP,
- M_PLANK_STEP_UP_FAR,
- M_PLANK_STEP_DOWN,
- M_PLANK_STEP_DOWN_FAR,
- M_CLIFF_STRAIGHT,
- M_CLIFF_STRAIGHT_FAR,
- M_CLIFF_HOLE,
- M_CLIFF_HOLE_FAR,
- M_CLIFF_HOLE_LONG,
- M_CLIFF_HOLE_LONG_FAR,
- M_CLIFF_NARROW_L,
- M_CLIFF_NARROW_L_FAR,
- M_CLIFF_NARROW_R,
- M_CLIFF_NARROW_R_FAR,
- M_CLIFF_CORNER_L,
- M_CLIFF_CORNER_L_FAR,
- M_CLIFF_CORNER_R,
- M_CLIFF_CORNER_R_FAR,
- M_CLIFF_T,
- M_CLIFF_T_FAR,
- M_CLIFF_STEP_UP,
- M_CLIFF_STEP_UP_FAR,
- M_CLIFF_STEP_DOWN,
- M_CLIFF_STEP_DOWN_FAR,
- M_ROOT_LOW,
- M_TREE_JUMP,
- M_BRANCH_SLIDE,
M_FIRE0,
M_FIRE1,
M_FIRE2,
@@ -98,7 +211,7 @@ enum {
M_JUNGLE_TALL_FAR,
M_PILLAR,
M_CLIFF_WALL,
- M_TEMPLE,
- M_COUNT
+ M_COUNT,
+ M_PIECES = 88 /* (the path pieces: floor.c's, in its order) */
};
#endif
diff --git a/games/templerun/src/floor.c b/games/templerun/src/floor.c
new file mode 100644
index 00000000..5b798c38
--- /dev/null
+++ b/games/templerun/src/floor.c
@@ -0,0 +1,168 @@
+/* Made by tools/floor.py from Temple Run's own Android package: each path piece's ground and obstacles, from
+ * the regions its prefab carries (Region2D). Ground: a bit a 2 x 2 cell, row r from z = -30 + 2 r, bit k from
+ * x = -30 + 2 k. Obstacles: their polygons (units x 4), the height to jump over (the game's, absolute). */
+#include "floor.h"
+
+static const uint32_t g0[FLOOR_CELLS] = {0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00};
+static const uint32_t g1[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g2[FLOOR_CELLS] = {0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g3[FLOOR_CELLS] = {0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g4[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00};
+static const uint32_t g5[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00};
+static const uint32_t g6[FLOOR_CELLS] = {0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFFFF, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00};
+static const uint32_t g7[FLOOR_CELLS] = {0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x3FFFFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00};
+static const uint32_t g8[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00};
+static const uint32_t g9[FLOOR_CELLS] = {0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g10[FLOOR_CELLS] = {0x000FFC00, 0x000FFC00, 0x000FFC00, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000FFC00, 0x000FFC00, 0x000FFC00};
+static const uint32_t g11[FLOOR_CELLS] = {0x000FFC00, 0x000FFC00, 0x000FFC00, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g12[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000FFC00, 0x000FFC00, 0x000FFC00};
+static const uint32_t g13[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x38000007, 0x38000007, 0x38000007, 0x38000007, 0x38000007, 0x38000007, 0x38000007, 0x38000007, 0x38000007, 0x38000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g14[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000007, 0x00000007, 0x00000007, 0x00000007, 0x00000007, 0x00000007, 0x00000007, 0x00000007, 0x00000007, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g15[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x38000000, 0x38000000, 0x38000000, 0x38000000, 0x38000000, 0x38000000, 0x38000000, 0x38000000, 0x38000000, 0x38000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g16[FLOOR_CELLS] = {0x000FFC00, 0x0007FC00, 0x0000FC00, 0x0000FC00, 0x0000FC00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x0000FC00, 0x0000FC00, 0x0000FC00, 0x0007FC00, 0x000FFC00};
+static const uint32_t g17[FLOOR_CELLS] = {0x000FFC00, 0x000FF800, 0x000FC000, 0x000FC000, 0x000FC000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000FC000, 0x000FC000, 0x000FC000, 0x000FF800, 0x000FFC00};
+static const uint32_t g18[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3E00001F, 0x30000003, 0x30000003, 0x30000003, 0x20000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g19[FLOOR_CELLS] = {0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00};
+static const uint32_t g20[FLOOR_CELLS] = {0x000FFC00, 0x0007FC00, 0x0000FC00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00};
+static const uint32_t g21[FLOOR_CELLS] = {0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00003C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x00007C00, 0x0000FC00, 0x0007FC00, 0x000FFC00};
+static const uint32_t g22[FLOOR_CELLS] = {0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000};
+static const uint32_t g23[FLOOR_CELLS] = {0x000FFC00, 0x000FF800, 0x000FC000, 0x000FC000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000};
+static const uint32_t g24[FLOOR_CELLS] = {0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F0000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000F8000, 0x000FC000, 0x000FC000, 0x000FF800, 0x000FFC00};
+static const uint32_t g25[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g26[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000003, 0x00000003, 0x00000003, 0x00000007, 0x000000FF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g27[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x20000000, 0x30000000, 0x30000000, 0x30000000, 0x3C000000, 0x3FE00000, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g28[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g29[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x000000FF, 0x00000007, 0x00000003, 0x00000003, 0x00000003, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g30[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FE00000, 0x3C000000, 0x30000000, 0x30000000, 0x30000000, 0x20000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g31[FLOOR_CELLS] = {0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g32[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00007FFF, 0x00007FFF, 0x00007FFF, 0x00007FFF, 0x00007FFF, 0x00007FFF, 0x00007FFF, 0x00007FFF, 0x00007FFF, 0x00007FFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g33[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00};
+static const uint32_t g34[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFF8000, 0x3FFF8000, 0x3FFF8000, 0x3FFF8000, 0x3FFF8000, 0x3FFF8000, 0x3FFF8000, 0x3FFF8000, 0x3FFF8000, 0x3FFF8000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g35[FLOOR_CELLS] = {0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800};
+static const uint32_t g36[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g37[FLOOR_CELLS] = {0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g38[FLOOR_CELLS] = {0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g39[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800};
+static const uint32_t g40[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFFF000, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800};
+static const uint32_t g41[FLOOR_CELLS] = {0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003FFFF, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800};
+static const uint32_t g42[FLOOR_CELLS] = {0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x3FFFF800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800};
+static const uint32_t g43[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800};
+static const uint32_t g44[FLOOR_CELLS] = {0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g45[FLOOR_CELLS] = {0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g46[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000FFF, 0x00001FFF, 0x00001FFF, 0x00001FFF, 0x00001FFF, 0x00001FFF, 0x00001FFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g47[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0003F000, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800};
+static const uint32_t g48[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3FFC0000, 0x3FFE0000, 0x3FFE0000, 0x3FFE0000, 0x3FFE0000, 0x3FFE0000, 0x3FFE0000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+static const uint32_t g49[FLOOR_CELLS] = {0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x000FFC00, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800, 0x0003F800};
+static const uint32_t g50[FLOOR_CELLS] = {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0001E000, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, 0x0001E000, 0x0001E000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
+
+const uint32_t *const floor_cells[FLOOR_PIECES] = {
+ g0, /* templeStraightVert */
+ g0, /* templeStraightVert2 */
+ g0, /* templeStraightVert3 */
+ g0, /* templeStraightVert4 */
+ g0, /* templeStraightVert5 */
+ g0, /* templeStraightTowerVert */
+ g1, /* templeStraightHorz */
+ g1, /* templeStraightHorz2 */
+ g1, /* templeStraightHorz3 */
+ g1, /* templeStraightHorz4 */
+ g1, /* templeStraightHorz5 */
+ g1, /* templeStraightTowerHorz */
+ g2, /* templeTurnA */
+ g3, /* templeTurnB */
+ g4, /* templeTurnC */
+ g5, /* templeTurnD */
+ g6, /* templeTLeft */
+ g7, /* templeTRight */
+ g8, /* templeTUp */
+ g9, /* templeTDown */
+ g10, /* templeStraightHoleVert */
+ g11, /* templeStraightHoleLongAVert */
+ g12, /* templeStraightHoleLongBVert */
+ g13, /* templeStraightHoleHorz */
+ g14, /* templeStraightHoleLongAHorz */
+ g15, /* templeStraightHoleLongBHorz */
+ g16, /* templeStraightNarrowSmallLeftVert */
+ g17, /* templeStraightNarrowSmallRightVert */
+ g18, /* templeStraightNarrowSmallDownHorz */
+ g19, /* templeStraightNarrowLongLeftVert */
+ g20, /* templeStraightNarrowLongLeftAVert */
+ g21, /* templeStraightNarrowLongLeftBVert */
+ g22, /* templeStraightNarrowLongRightVert */
+ g23, /* templeStraightNarrowLongRightAVert */
+ g24, /* templeStraightNarrowLongRightBVert */
+ g25, /* templeStraightNarrowLongUpHorz */
+ g26, /* templeStraightNarrowLongUpAHorz */
+ g27, /* templeStraightNarrowLongUpBHorz */
+ g28, /* templeStraightNarrowLongDownHorz */
+ g29, /* templeStraightNarrowLongDownAHorz */
+ g30, /* templeStraightNarrowLongDownBHorz */
+ g0, /* templeStraightFlameTowerHighVert */
+ g1, /* templeStraightFlameTowerHighHorz */
+ g31, /* templeToPlankCapAVert */
+ g32, /* templeToPlankCapAHorz */
+ g33, /* templeToPlankCapBVert */
+ g34, /* templeToPlankCapBHorz */
+ g0, /* templeStraightTreeTripLeftVert */
+ g0, /* templeStraightTreeTripRightVert */
+ g1, /* templeStraightTreeTripUpHorz */
+ g1, /* templeStraightTreeTripDownHorz */
+ g0, /* templeStraightTreeJumpLeftVert */
+ g0, /* templeStraightTreeJumpRightVert */
+ g1, /* templeStraightTreeJumpUpHorz */
+ g1, /* templeStraightTreeJumpDownHorz */
+ g0, /* templeStraightTreeSlideVert */
+ g1, /* templeStraightTreeSlideHorz */
+ g0, /* temple */
+ g0, /* plankStraightVert */
+ g1, /* plankStraightHorz */
+ g2, /* plankTurnA */
+ g3, /* plankTurnB */
+ g4, /* plankTurnC */
+ g5, /* plankTurnD */
+ g6, /* plankTLeft */
+ g7, /* plankTRight */
+ g8, /* plankTUp */
+ g9, /* plankTDown */
+ NULL, /* plankStraightHoleVert */
+ NULL, /* plankStraightHoleHorz */
+ g0, /* plankStraightTowerVert */
+ g1, /* plankStraightTowerHorz */
+ g35, /* cliffStraightVert */
+ g36, /* cliffStraightHorz */
+ g37, /* cliffTurnA */
+ g38, /* cliffTurnB */
+ g39, /* cliffTurnC */
+ g40, /* cliffTurnD */
+ g41, /* cliffTLeft */
+ g42, /* cliffTRight */
+ g43, /* cliffTUp */
+ g44, /* cliffTDown */
+ g45, /* cliffToTempleCapAVert */
+ g46, /* cliffToTempleCapAHorz */
+ g47, /* cliffToTempleCapBVert */
+ g48, /* cliffToTempleCapBHorz */
+ g49, /* cliffStraightTreeVert */
+ g50, /* cliffStraightTreeHorz */
+};
+
+const FloorObstacle floor_obstacles[17] = {
+ {41, 7, 4, 0, 8.00f, {{40, -10}, {40, 10}, {-40, 10}, {-40, -10}}}, /* templeStraightFlameTowerHighVert */
+ {42, 7, 4, 0, 8.00f, {{-10, 40}, {10, 40}, {10, -40}, {-10, -40}}}, /* templeStraightFlameTowerHighHorz */
+ {47, 1, 4, 0, 1.00f, {{-40, -4}, {20, -4}, {20, 4}, {-40, 4}}}, /* templeStraightTreeTripLeftVert */
+ {48, 1, 4, 0, 0.00f, {{40, -120}, {40, 120}, {-40, 120}, {-40, -120}}}, /* templeStraightTreeTripRightVert */
+ {48, 1, 4, 0, 1.00f, {{-20, -4}, {40, -4}, {40, 4}, {-20, 4}}}, /* templeStraightTreeTripRightVert */
+ {49, 1, 4, 0, 1.00f, {{4, -20}, {4, 40}, {-4, 40}, {-4, -20}}}, /* templeStraightTreeTripUpHorz */
+ {50, 1, 4, 0, 1.00f, {{4, -40}, {4, 20}, {-4, 20}, {-4, -40}}}, /* templeStraightTreeTripDownHorz */
+ {51, 5, 4, 0, 6.00f, {{40, 12}, {-40, 12}, {-40, 28}, {40, 28}}}, /* templeStraightTreeJumpLeftVert */
+ {52, 5, 4, 0, 6.00f, {{40, 12}, {-40, 12}, {-40, 28}, {40, 28}}}, /* templeStraightTreeJumpRightVert */
+ {53, 5, 4, 0, 6.00f, {{-28, -40}, {-28, 40}, {-12, 40}, {-12, -40}}}, /* templeStraightTreeJumpUpHorz */
+ {54, 5, 4, 0, 6.00f, {{-28, -40}, {-28, 40}, {-12, 40}, {-12, -40}}}, /* templeStraightTreeJumpDownHorz */
+ {55, 6, 4, 0, 8.00f, {{40, -12}, {-40, -12}, {-40, 12}, {40, 12}}}, /* templeStraightTreeSlideVert */
+ {56, 6, 4, 0, 8.00f, {{12, -40}, {12, 40}, {-12, 40}, {-12, -40}}}, /* templeStraightTreeSlideHorz */
+ {70, 7, 4, 0, -8.00f, {{40, -10}, {40, 10}, {-40, 10}, {-40, -10}}}, /* plankStraightTowerVert */
+ {71, 7, 4, 0, -8.00f, {{-10, 40}, {10, 40}, {10, -40}, {-10, -40}}}, /* plankStraightTowerHorz */
+ {86, 6, 4, 0, 23.00f, {{40, -12}, {-40, -12}, {-40, 12}, {40, 12}}}, /* cliffStraightTreeVert */
+ {87, 6, 4, 0, 23.00f, {{12, -40}, {12, 40}, {-12, 40}, {-12, -40}}}, /* cliffStraightTreeHorz */
+};
+const int floor_nobstacles = 17;
diff --git a/games/templerun/src/floor.h b/games/templerun/src/floor.h
new file mode 100644
index 00000000..0a2b56ed
--- /dev/null
+++ b/games/templerun/src/floor.h
@@ -0,0 +1,19 @@
+/* Temple Run: the path pieces' ground and obstacles (floor.c, made by tools/floor.py). */
+#ifndef TR_FLOOR_H
+#define TR_FLOOR_H
+#include <stddef.h>
+#include <stdint.h>
+
+#define FLOOR_PIECES 88 /* (data.h's first meshes, in the same order) */
+#define FLOOR_CELLS 30
+enum { FO_JUMP = 1, FO_SLIDE = 2, FO_KILL = 4 }; /* jumped over, slid under; kills */
+typedef struct {
+ uint8_t piece, flags, n, pad;
+ float height;
+ int16_t p[8][2];
+} FloorObstacle;
+/* a piece's ground cells (NULL: none) */
+extern const uint32_t *const floor_cells[FLOOR_PIECES];
+extern const FloorObstacle floor_obstacles[];
+extern const int floor_nobstacles;
+#endif
diff --git a/games/templerun/src/game.c b/games/templerun/src/game.c
index bfb7b067..a4d1d805 100644
--- a/games/templerun/src/game.c
+++ b/games/templerun/src/game.c
@@ -11,10 +11,6 @@
Progress pg;
Runner pl;
RunStats run;
-Tile path[NTILES];
-int path_first, path_count;
-Tile stub[2][NSTUB];
-bool stub_on;
Fly fly[NFLY];
Pursuer pursuers[NPURSUERS];
bool pursuers_on;
@@ -23,12 +19,9 @@ bool pursuers_on;
#define START_V 100.0f
#define MAX_V 210.0f
#define GRAVITY 250.0f
-#define AHEAD 16 /* tiles laid ahead of the runner */
-#define BEHIND 4
#define BOX 1.75f /* the runner's half width; it is 9.59 tall (sliding: 4) */
static const int8_t DX[4] = {0, 1, 0, -1}, DZ[4] = {1, 0, -1, 0};
-static const float LEVEL_Y[TH_COUNT] = {0, -15, 15};
static inline float fabsf_(float x) { return x < 0 ? -x : x; }
static inline float minf(float a, float b) { return a < b ? a : b; }
@@ -41,279 +34,6 @@ static float sqrtf_(float x) {
return r;
}
-/* ---------------------------------------------------------------- laying the path */
-static struct {
- int main_dir; /* the path never heads back against this */
- int since_turn, since_obstacle, back_to_back, since_coins, since_bonus;
- int theme, want_theme;
- int coin_left, coin_layout, coin_kind;
- float since_level, since_section;
- bool fast;
- /* by distance (the game's pacing) */
- int gap_coins, gap_turns, gap_obs;
- float dbl;
- bool branches, fire, narrows;
- float level_temple, level_other, turn_section;
- float red_at, blue_at;
-} gen;
-
-float game_tile_cx(const Tile *t) { return t->gx * TILE; }
-float game_tile_cz(const Tile *t) { return t->gz * TILE; }
-
-static int exit_dir(const Tile *t) {
- if (t->kind == PK_CORNER_L) return (t->dir + 3) & 3;
- if (t->kind == PK_CORNER_R) return (t->dir + 1) & 3;
- return t->dir;
-}
-
-static float exit_y(const Tile *t) {
- return t->y + (t->kind == PK_STEP_UP ? 15.0f : t->kind == PK_STEP_DOWN ? -15.0f : 0.0f);
-}
-
-static bool is_turn(const Tile *t) { return t->kind == PK_CORNER_L || t->kind == PK_CORNER_R || t->kind == PK_T; }
-
-static void push_tile(const Tile *t) {
- if (path_count == NTILES) {
- path_first = (path_first + 1) % NTILES;
- path_count--;
- pl.tile--;
- }
- path[(path_first + path_count) % NTILES] = *t;
- path_count++;
-}
-
-static void pacing(void) {
- float d = run.dist;
- if (d < 250) gen.gap_coins = 12, gen.gap_turns = 12, gen.gap_obs = 6, gen.dbl = 0;
- else if (d < 500) gen.gap_coins = 10, gen.gap_turns = 10, gen.gap_obs = 5, gen.dbl = 0;
- else if (d < 1000) gen.gap_coins = 9, gen.gap_turns = 8, gen.gap_obs = 4, gen.dbl = 0.05f;
- else if (d < 1500) gen.gap_coins = 8, gen.gap_turns = 6, gen.gap_obs = 4, gen.dbl = 0.05f;
- else if (d < 2000) gen.gap_coins = 7, gen.gap_turns = 5, gen.gap_obs = 3, gen.dbl = 0.1f;
- else if (d < 3250) gen.gap_coins = 6, gen.gap_turns = 4, gen.gap_obs = 3, gen.dbl = 0.15f;
- else if (d < 4500) gen.gap_coins = 6, gen.gap_turns = 3, gen.gap_obs = 3, gen.dbl = 0.175f;
- else gen.gap_coins = 6, gen.gap_turns = 2, gen.gap_obs = 2, gen.dbl = 0.2f;
- gen.branches = gen.fire = d >= 500;
- gen.narrows = d >= 1500;
- if (d >= 3250) gen.level_temple = 375, gen.level_other = 300, gen.turn_section = 750;
- else if (d >= 1000) gen.level_temple = 450, gen.level_other = 250, gen.turn_section = 850;
- else gen.level_temple = 500, gen.level_other = 200, gen.turn_section = 1000;
- if (gen.fast) {
- gen.gap_turns = (int)(gen.gap_turns * 0.65f);
- if (gen.gap_turns < 2) gen.gap_turns = 2;
- gen.gap_coins = 0;
- }
-}
-
-static void coin_value_level(void) {
- static const float red[6] = {1e9f, 1500, 1000, 1000, 1000, 1000}, blue[6] = {1e9f, 1e9f, 1e9f, 3000, 2500, 2000};
- int l = pg.up[UP_COIN_VALUE] > 5 ? 5 : pg.up[UP_COIN_VALUE];
- gen.red_at = red[l], gen.blue_at = blue[l];
-}
-
-static void change_level(void) {
- if (gen.theme == TH_PLANK) gen.want_theme = TH_TEMPLE;
- else if (gen.theme == TH_TEMPLE) gen.want_theme = rnd(2) == 0 ? TH_PLANK : TH_CLIFF;
- else gen.want_theme = rnd(2) != 0 ? TH_PLANK : TH_TEMPLE;
-}
-
-static void scenery(Tile *t) {
- t->scenery = 0;
- if (t->kind != PK_STRAIGHT && t->kind != PK_HOLE && t->kind != PK_HOLE_LONG) return;
- if (t->theme != TH_CLIFF && rnd(10) < 3) t->scenery |= 1;
- if (rnd(10) < 3) t->scenery |= 2;
- if (rnd(3) == 0) t->scenery |= 4;
- if (t->theme == TH_TEMPLE && rnd(6) == 0) t->scenery |= 8;
-}
-
-static void coins_for(Tile *t) {
- t->coin = COIN_NONE, t->coins = 0;
- if (t->kind == PK_STEP_UP || t->kind == PK_STEP_DOWN || t->item) return;
- if (gen.coin_left <= 0) {
- if (gen.since_coins < gen.gap_coins) return;
- gen.coin_left = 1 + rnd(3);
- static const uint8_t layouts[6] = {COIN_CENTRE, COIN_CENTRE, COIN_LEFT, COIN_RIGHT, COIN_SLANT_L, COIN_SLANT_R};
- gen.coin_layout = layouts[rnd(6)];
- uint8_t kinds[3] = {1, 0, 0};
- int n = 1;
- if (run.dist >= gen.red_at) kinds[n++] = 2;
- if (run.dist >= gen.blue_at) kinds[n++] = 3;
- gen.coin_kind = kinds[rnd(n)];
- }
- gen.coin_left--;
- gen.since_coins = 0;
- if (t->ob == OB_BRANCH || t->kind == PK_NARROW_L || t->kind == PK_NARROW_R) return;
- t->coin_kind = (uint8_t)gen.coin_kind;
- if (t->ob != OB_NONE || t->kind == PK_HOLE || t->kind == PK_HOLE_LONG) t->coin = COIN_ARC;
- else if (is_turn(t)) t->coin = COIN_CENTRE;
- else t->coin = (uint8_t)gen.coin_layout;
- t->coins = t->kind == PK_T ? 0x07 : 0x1F;
-}
-
-/* the next tile after the last (false: the last is a junction not yet taken) */
-static bool lay(void) {
- const Tile *last = tile_at(path_count - 1);
- if (last->kind == PK_T) return false;
- int dir = exit_dir(last);
- Tile t;
- memset(&t, 0, sizeof t);
- t.gx = (int16_t)(last->gx + DX[dir]), t.gz = (int16_t)(last->gz + DZ[dir]);
- t.dir = (uint8_t)dir, t.y = exit_y(last), t.kind = PK_STRAIGHT, t.theme = (uint8_t)gen.theme;
- gen.since_turn++, gen.since_obstacle++, gen.since_coins++, gen.since_bonus++;
- if (gen.want_theme != gen.theme) {
- /* a change of place: up or down the steps between them, on a quiet stretch */
- if (gen.since_turn > 2 && gen.since_obstacle > 2) {
- float wy = LEVEL_Y[gen.want_theme];
- if (wy > t.y + 1) t.kind = PK_STEP_UP;
- else if (wy < t.y - 1) t.kind = PK_STEP_DOWN;
- if (fabsf_(exit_y(&t) - wy) < 1) gen.theme = gen.want_theme;
- }
- scenery(&t);
- push_tile(&t);
- gen.back_to_back = 0;
- return true;
- }
- bool can_turn = gen.since_turn >= gen.gap_turns;
- bool can_obs = gen.since_turn != 1 && gen.back_to_back < 2 &&
- (gen.since_obstacle >= gen.gap_obs || (float)rnd(1000) < 1000.0f * gen.dbl);
- uint8_t cand[8];
- int n = 0;
- cand[n++] = PK_STRAIGHT;
- if (can_turn) {
- int rel = (dir - gen.main_dir) & 3;
- if (rel == 0) cand[n++] = PK_CORNER_L, cand[n++] = PK_CORNER_R, cand[n++] = PK_T;
- else if (rel == 1) cand[n++] = PK_CORNER_L;
- else cand[n++] = PK_CORNER_R;
- }
- if (can_obs) {
- if (rnd(2)) cand[n++] = run.dist >= 500 && rnd(2) ? PK_HOLE_LONG : PK_HOLE;
- if (gen.fire && gen.theme != TH_CLIFF && rnd(2)) cand[n++] = 100; /* (fire) */
- if (gen.narrows && gen.theme == TH_TEMPLE && gen.since_turn >= 2 && rnd(2)) cand[n++] = rnd(2) ? PK_NARROW_L : PK_NARROW_R;
- }
- int k = cand[rnd(n)];
- if (k == 100) t.kind = PK_STRAIGHT, t.ob = OB_FIRE;
- else t.kind = (uint8_t)k;
- if (t.kind == PK_STRAIGHT && t.ob == OB_NONE && can_obs && rnd(2)) {
- uint8_t obs[3];
- int m = 0;
- if (gen.theme == TH_TEMPLE) obs[m++] = OB_ROOT, obs[m++] = OB_TREE;
- if (gen.branches && gen.theme != TH_PLANK) obs[m++] = OB_BRANCH;
- if (m) t.ob = obs[rnd(m)];
- }
- bool obstacle = t.ob != OB_NONE || t.kind == PK_HOLE || t.kind == PK_HOLE_LONG || t.kind == PK_NARROW_L ||
- t.kind == PK_NARROW_R;
- if (is_turn(&t)) gen.since_turn = 0;
- if (obstacle) gen.since_obstacle = 0, gen.back_to_back++;
- else gen.back_to_back = 0;
- /* a power-up, now and then, where nothing else is */
- if (!obstacle && t.kind == PK_STRAIGHT && gen.since_bonus >= 50 && pl.since_power >= 15 && rnd(2)) {
- uint8_t items[4];
- int m = 0;
- if (pg.up[UP_COIN_BONUS]) items[m++] = IT_COIN_BONUS;
- if (pg.up[UP_INVISIBILITY]) items[m++] = IT_INVISIBILITY;
- if (pg.up[UP_MAGNET]) items[m++] = IT_MAGNET;
- if (pg.up[UP_BOOST]) items[m++] = IT_BOOST;
- if (m) t.item = items[rnd(m)], gen.since_bonus = 0;
- }
- coins_for(&t);
- scenery(&t);
- push_tile(&t);
- if (t.kind == PK_T) {
- /* its two ways, plain, until one is taken */
- for (int s = 0; s < 2; s++) {
- int d = (dir + (s ? 1 : 3)) & 3;
- for (int i = 0; i < NSTUB; i++) {
- Tile *u = &stub[s][i];
- memset(u, 0, sizeof *u);
- u->gx = (int16_t)(t.gx + DX[d] * (i + 1)), u->gz = (int16_t)(t.gz + DZ[d] * (i + 1));
- u->dir = (uint8_t)d, u->kind = PK_STRAIGHT, u->theme = t.theme, u->y = t.y;
- scenery(u);
- }
- }
- stub_on = true;
- }
- return true;
-}
-
-static void lay_ahead(void) {
- while (path_count - 1 - pl.tile < AHEAD && lay()) {
- }
-}
-
-/* ---------------------------------------------------------------- the floor */
-static bool on_floor(const Tile *t, float a, float s, float *h) {
- float as = fabsf_(s), aa = fabsf_(a);
- *h = t->y;
- switch (t->kind) {
- case PK_HOLE: return as <= HALF_W && aa >= 10;
- case PK_HOLE_LONG: return as <= HALF_W && aa >= 17;
- case PK_NARROW_L: return (s >= -HALF_W && s <= -2) || (as <= HALF_W && aa >= 26);
- case PK_NARROW_R: return (s >= 2 && s <= HALF_W) || (as <= HALF_W && aa >= 26);
- case PK_CORNER_R: return (as <= HALF_W && a <= HALF_W) || (s >= HALF_W && s <= 30 && aa <= HALF_W);
- case PK_CORNER_L: return (as <= HALF_W && a <= HALF_W) || (s <= -HALF_W && s >= -30 && aa <= HALF_W);
- case PK_T: return (as <= HALF_W && a <= -HALF_W) || (aa <= HALF_W && as <= 30);
- case PK_STEP_UP:
- case PK_STEP_DOWN: {
- int i = (int)((a + 30) / 12);
- if (i < 0) i = 0;
- if (i > 4) i = 4;
- *h = t->y + (t->kind == PK_STEP_UP ? 3.0f * (float)(i + 1) : -3.0f * (float)i);
- return as <= HALF_W;
- }
- default: return as <= HALF_W;
- }
-}
-
-static void local(const Tile *t, float x, float z, float *a, float *s) {
- float dx = x - game_tile_cx(t), dz = z - game_tile_cz(t);
- *a = dx * DX[t->dir] + dz * DZ[t->dir];
- *s = dx * DZ[t->dir] - dz * DX[t->dir];
-}
-
-static const Tile *find_tile(int gx, int gz) {
- for (int i = path_count - 1; i >= 0; i--) {
- const Tile *t = tile_at(i);
- if (t->gx == gx && t->gz == gz) return t;
- }
- if (stub_on)
- for (int s = 0; s < 2; s++)
- for (int i = 0; i < NSTUB; i++)
- if (stub[s][i].gx == gx && stub[s][i].gz == gz) return &stub[s][i];
- return NULL;
-}
-
-static int round_(float v) { return (int)(v >= 0 ? v + 0.5f : v - 0.5f); }
-
-bool game_floor(float x, float z, float *y, const Tile **found) {
- const Tile *t = find_tile(round_(x / TILE), round_(z / TILE));
- if (found) *found = t;
- if (!t) return false;
- float a, s;
- local(t, x, z, &a, &s);
- return on_floor(t, a, s, y);
-}
-
-bool game_coin_pos(const Tile *t, int k, float *x, float *y, float *z) {
- if (t->coin == COIN_NONE || !(t->coins >> k & 1)) return false;
- float a = -25 + 12.5f * (float)k, s = 0, h = 0;
- switch (t->coin) {
- case COIN_LEFT: s = -6; break;
- case COIN_RIGHT: s = 6; break;
- case COIN_SLANT_L: s = 6 - 3.0f * (float)k; break;
- case COIN_SLANT_R: s = -6 + 3.0f * (float)k; break;
- case COIN_ARC: h = 10 * (1 - (a / 30) * (a / 30)); break;
- default: break;
- }
- if (is_turn(t) && k >= 3) {
- a = 0;
- s = (t->kind == PK_CORNER_L ? -12.5f : 12.5f) * (float)(k - 2);
- }
- int d = t->dir;
- *x = game_tile_cx(t) + a * DX[d] + s * DZ[d];
- *z = game_tile_cz(t) + a * DZ[d] - s * DX[d];
- *y = t->y + h;
- return true;
-}
-
/* ---------------------------------------------------------------- the pursuers' trail */
#define NTRAIL 128
static struct {
@@ -443,22 +163,29 @@ static void slide(void) {
pl.slide_len = minf(pl.v * 0.007f, 0.75f);
}
-/* the wings bring it back on the next quiet tile ahead (false: none near) */
+/* ResurrectPlayer: the wings bring it back on the next quiet piece ahead (false: none near) */
static bool resurrect(void) {
- for (int i = pl.tile + 1; i < path_count && i <= pl.tile + 10; i++) {
- const Tile *t = tile_at(i);
- if (t->kind != PK_STRAIGHT || t->ob != OB_NONE) continue;
- pl.x = game_tile_cx(t) - 20 * DX[t->dir], pl.z = game_tile_cz(t) - 20 * DZ[t->dir];
- pl.y = pl.ground = t->y, pl.vy = 0, pl.dir = t->dir, pl.tile = i;
- pl.death_v = pl.v > START_V ? pl.v : 0;
- pl.v = START_V;
- pl.jumping = pl.falling = pl.sliding = pl.stumbling = false;
- pl.on_ground = pl.over = true;
- pl.wings = 0, pl.wings_recharge = 45, pl.stumble_timer = 10;
- run.saved++;
- trail_n = 0;
- used_powers();
- return true;
+ int i = path_root, chain[12], n = 0;
+ for (int k = 0; k < 10 && i >= 0; k++) {
+ const Tile *t = &tiles[i];
+ if (k && !t->has_obstacles && !path_is_turn(t) && t->mesh >= 0) {
+ for (int j = 0; j < n; j++) path_advance(chain[j]);
+ path_advance(i);
+ pl.x = path_cx(t) - 20 * DX[t->dir], pl.z = path_cz(t) - 20 * DZ[t->dir];
+ pl.y = pl.ground = t->y, pl.vy = 0, pl.dir = t->dir;
+ pl.death_v = pl.v > START_V ? pl.v : 0;
+ pl.v = START_V;
+ pl.jumping = pl.falling = pl.sliding = pl.stumbling = pl.higher = false;
+ pl.on_ground = pl.over = true;
+ pl.wings = 0, pl.wings_recharge = 45, pl.stumble_timer = 10;
+ run.saved++;
+ trail_n = 0;
+ used_powers();
+ return true;
+ }
+ if (k) chain[n++] = i;
+ if (path_is_turn(t) && k) break;
+ i = path_next(i, pl.dir);
}
return false;
}
@@ -475,71 +202,36 @@ static void die(int how) {
if (how != DEATH_FALL) pl.vy = 0;
}
-/* pressed Left or Right: turn at the next corner (if it is reached within a second) */
+/* pressed Left or Right: turn at the next corner (if it is reached within a second), where the piece opens that way */
static void try_turn(void) {
- const Tile *t = tile_at(pl.tile);
- if (!is_turn(t) || (t->hit & 2) || t->dir != pl.dir) return;
- float dx = pl.x - game_tile_cx(t), dz = pl.z - game_tile_cz(t);
+ Tile *t = &tiles[path_root];
+ if (!path_is_turn(t) || t->turned) return;
+ float dx = pl.x - path_cx(t), dz = pl.z - path_cz(t);
float r = pl.ground > 7.5f ? 6.5f : 10.0f;
if (dx * dx + dz * dz > r * r) return;
+ int left = (pl.dir + 3) & 3, right = (pl.dir + 1) & 3;
+ bool can_l = path_opens(t, left), can_r = path_opens(t, right);
int want = pl.turn_wish;
#ifdef TR_PERF
if (true)
#else
if (pl.boost)
#endif
- want = t->kind == PK_CORNER_L ? -1 : t->kind == PK_CORNER_R ? 1 : (rnd(2) ? 1 : -1);
- if (!want) return;
- if ((want < 0 && t->kind == PK_CORNER_R) || (want > 0 && t->kind == PK_CORNER_L)) return;
- pl.dir = (uint8_t)((pl.dir + (want > 0 ? 1 : 3)) & 3);
+ want = can_l && can_r ? (rnd(2) ? 1 : -1) : can_l ? -1 : can_r ? 1 : 0;
+ if (!want || (want < 0 && !can_l) || (want > 0 && !can_r)) return;
+ pl.dir = (uint8_t)(want > 0 ? right : left);
pl.turn_wish = 0;
run.turns++;
- tile_at(pl.tile)->hit |= 2;
- if (t->kind == PK_T) {
- for (int i = 0; i < NSTUB; i++) push_tile(&stub[want > 0][i]);
- stub_on = false;
- gen.since_turn = 0;
- lay_ahead();
- }
+ t->turned = 1;
}
-static void follow_tile(void) {
- for (int i = pl.tile - 1; i <= pl.tile + 2 && i < path_count; i++) {
- if (i < 0) continue;
- const Tile *t = tile_at(i);
- if (t->gx == round_(pl.x / TILE) && t->gz == round_(pl.z / TILE)) {
- pl.tile = i;
- break;
- }
- }
- while (pl.tile > BEHIND) {
- path_first = (path_first + 1) % NTILES;
- path_count--;
- pl.tile--;
- }
- lay_ahead();
-}
-
-static void obstacles(float a0, float a1) {
- Tile *t = tile_at(pl.tile);
- if (t->ob == OB_NONE || (t->hit & 1)) return;
- float lo = minf(a0, a1), hi = maxf(a0, a1);
- static const float depth[5] = {0, 0.9f, 1.8f, 1.3f, 1.4f};
- float d = depth[t->ob] + BOX;
- if (hi < -d || lo > d) return;
- float feet = pl.y - t->y, top = feet + (pl.sliding ? 4.0f : 9.59f);
- bool hit = false;
- switch (t->ob) {
- case OB_ROOT: hit = feet < 1.9f; break;
- case OB_TREE: hit = feet < 4.2f; break;
- case OB_BRANCH: hit = top > 5.2f && feet < 7.4f; break;
- case OB_FIRE: hit = feet < 4.0f; break;
- default: break;
- }
- if (!hit || pl.invis > 0 || pl.boost) return;
- t->hit |= 1;
- if (t->ob == OB_ROOT) stumble();
- else die(t->ob == OB_TREE ? DEATH_TREE : t->ob == OB_BRANCH ? DEATH_BRANCH : DEATH_FIRE);
+/* the obstacles of the piece under it: what the step from (x0, z0) ran into */
+static void obstacles(const Tile *t, float x0, float z0) {
+ int h = path_hit(t, x0, z0, pl.x, pl.z, pl.y, pl.sliding);
+ if (!h || pl.invis > 0) return;
+ if (!(h & FO_KILL)) stumble();
+ else if ((h & FO_JUMP) && (h & FO_SLIDE)) die(t->level == TH_PLANK ? DEATH_TANGLE : DEATH_FIRE);
+ else die(h & FO_JUMP ? DEATH_TREE : DEATH_BRANCH);
}
static bool box_hits(float x, float y, float z, float r) {
@@ -556,12 +248,14 @@ static void collect(void) {
mult = m[pg.up[UP_MAGNET] > 5 ? 5 : pg.up[UP_MAGNET]];
}
float cy = pl.y + 4.8f;
- for (int i = pl.tile - 1; i <= pl.tile + 3 && i < path_count; i++) {
- if (i < 0) continue;
- Tile *t = tile_at(i);
+ for (int i = 0; i < NTILES; i++) {
+ Tile *t = &tiles[i];
+ if (!t->alive || (!t->coins && !t->item)) continue;
+ float tx = path_cx(t) - pl.x, tz = path_cz(t) - pl.z;
+ if (tx * tx + tz * tz > 150.0f * 150.0f) continue;
for (int k = 0; k < 5; k++) {
float x, y, z;
- if (!game_coin_pos(t, k, &x, &y, &z)) continue;
+ if (!path_coin_pos(t, k, &x, &y, &z)) continue;
y += 3;
if (box_hits(x, y, z, t->coin_kind == 1 ? 3.0f : 2.25f)) {
t->coins &= (uint8_t)~(1 << k);
@@ -582,7 +276,7 @@ static void collect(void) {
}
}
if (t->item) {
- float x = game_tile_cx(t), z = game_tile_cz(t);
+ float x = path_cx(t), z = path_cz(t);
float r = t->item == IT_INVISIBILITY || t->item == IT_MAGNET ? 3.0f : 2.25f;
if (box_hits(x, t->y + 4.2f, z, r)) {
int it = t->item, l = pg.up[it == IT_COIN_BONUS ? UP_COIN_BONUS : it == IT_INVISIBILITY ? UP_INVISIBILITY : it == IT_MAGNET ? UP_MAGNET : UP_BOOST];
@@ -629,24 +323,14 @@ static void collect(void) {
void game_new_run(void) {
memset(&pl, 0, sizeof pl);
memset(&run, 0, sizeof run);
- memset(&gen, 0, sizeof gen);
memset(fly, 0, sizeof fly);
memset(power_len, 0, sizeof power_len);
if (pg.multiplier < 10) pg.multiplier = 10;
- path_first = path_count = 0;
- stub_on = false;
- gen.theme = gen.want_theme = TH_TEMPLE;
- coin_value_level();
- pacing();
- Tile t;
- memset(&t, 0, sizeof t);
- t.kind = PK_STRAIGHT;
- push_tile(&t);
- pl.tile = 0;
+ path_start();
+ pl.dir = D_N;
pl.v = START_V, pl.z = -20, pl.on_ground = pl.over = true;
pl.stumble_timer = 7;
pl.since_power = 15;
- lay_ahead();
trail_n = 0, trail_head = 0, trail_gap = 0;
for (int i = 0; i < 40; i++) {
trail_add();
@@ -703,49 +387,65 @@ void game_step(uint32_t in) {
if (acc > 0 && pl.v > maxv) pl.v = maxv;
}
try_turn();
- /* along, and across toward the path's middle (and the lean) */
- const Tile *t = tile_at(pl.tile);
- float a0, s0;
- local(t, pl.x, pl.z, &a0, &s0);
+ /* along, and across toward the middle of the piece under it (and the lean) */
+ const Tile *t = &tiles[path_root];
+ float x0 = pl.x, z0 = pl.z;
float fx = (float)DX[pl.dir], fz = (float)DZ[pl.dir], rx = fz, rz = -fx;
pl.x += fx * pl.v * DT, pl.z += fz * pl.v * DT;
if (!pl.falling) {
- float side = (pl.x - game_tile_cx(t)) * rx + (pl.z - game_tile_cz(t)) * rz;
+ float side = (pl.x - path_cx(t)) * rx + (pl.z - path_cz(t)) * rz;
float move = (pl.lean - side) * 0.1f * 50 * 1.125f * DT;
pl.x += rx * move, pl.z += rz * move;
}
pl.vy -= GRAVITY * DT;
pl.y += pl.vy * DT;
- follow_tile();
- t = tile_at(pl.tile);
- float a1, s1;
- local(t, pl.x, pl.z, &a1, &s1);
- if (a1 - a0 > 20 || a0 - a1 > 20) a0 = a1; /* (a new tile) */
- /* the floor */
- float fy;
- bool over = game_floor(pl.x, pl.z, &fy, NULL);
+ /* the piece under it (the root moves on, what is behind and the ways not taken pruned, the path laid on) */
+ int ni = path_at(pl.x, pl.z);
+ if (ni >= 0 && ni != path_root) path_advance(ni), ni = path_root;
+ t = ni >= 0 ? &tiles[ni] : NULL;
+ /* over ground: inside the piece's ground, or invisible (then over everything) */
+ bool inv = pl.invis > 0, over = inv || (t && path_ground(t, pl.x, pl.z));
#ifdef TR_PERF
- if (!over) over = true, fy = pl.ground;
+ over = true;
#endif
- if (!over && pl.boost && !pl.falling) over = true, fy = pl.ground; /* (the boost carries it over gaps) */
+ if (over) {
+ float g = t ? t->y : pl.ground;
+ if (inv && t) {
+ /* (the game's safety net: over gaps and level changes the ground goes from one level to the next) */
+ int f = t->next[pl.dir];
+ const Tile *n = f >= 0 ? &tiles[f] : NULL;
+ if (t->obst == OB_HOLE || t->obst == OB_NARROW || t->obst == OB_LEVEL || (n && n->obst == OB_LEVEL && t->level != TH_CLIFF)) {
+ float a = (pl.x - path_cx(t)) * fx + (pl.z - path_cz(t)) * fz;
+ g = t->y + (a / TILE + 0.5f) * ((n ? n->y : t->y) - t->y);
+ }
+ }
+ if ((pl.ground < g || !pl.over) && pl.y < g - 6 && !inv) {
+ die(DEATH_LEDGE); /* (into the side of the higher ground) */
+ if (pl.dead) {
+ pursue();
+ return;
+ }
+ }
+ if (g > pl.ground) pl.higher = true;
+ pl.ground = g;
+ }
pl.over = over;
- if (over && pl.y <= fy + 0.001f && pl.y >= fy - 4) {
- pl.y = fy, pl.vy = 0;
- pl.on_ground = true, pl.jumping = false, pl.falling = false;
- pl.ground = fy;
- } else {
+ float g = pl.ground;
+ if (over && ((!pl.falling && pl.y <= g) || (pl.falling && pl.y <= g && pl.y >= g - 6))) {
+ pl.jumping = false;
+ if (pl.falling && pl.y < g - 2 && !inv) stumble(); /* (caught the edge) */
+ if (pl.higher && pl.y >= g - 6 && pl.y < g - 2 && !inv && !pl.dead) stumble(); /* (up onto a step) */
+ pl.y = g, pl.vy = 0;
+ pl.on_ground = true, pl.higher = false;
+ } else
pl.on_ground = false;
- if (!over || pl.y < fy - 4) {
- if (!pl.falling) pl.falling = true, pl.t_fall = 0, pl.sliding = false;
- pl.t_fall += DT;
- } else if (over && !pl.jumping)
- pl.ground = fy;
- }
- if (pl.y < pl.ground - 40) {
- die(DEATH_FALL);
- if (pl.dead) return;
- }
- obstacles(a0, a1);
+ if (pl.y < g) {
+ if (!pl.falling) pl.falling = true, pl.t_fall = 0, pl.sliding = false;
+ pl.t_fall += DT;
+ } else
+ pl.falling = false;
+ if (!pl.dead && pl.y < -35) die(DEATH_FALL);
+ if (!pl.dead && t) obstacles(t, x0, z0);
if (pl.dead) {
pursue();
return;
@@ -764,16 +464,7 @@ void game_step(uint32_t in) {
if (run.coins == 0) run.dist_no_coins = run.dist;
run.since_trip += d;
if (run.since_trip > run.dist_no_trip) run.dist_no_trip = run.since_trip;
- gen.since_level += d, gen.since_section += d;
- if (gen.since_level > (gen.theme == TH_TEMPLE ? gen.level_temple : gen.level_other)) {
- gen.since_level = 0;
- if (rnd(4) <= 2 && gen.want_theme == gen.theme) change_level();
- }
- if ((!gen.fast && gen.since_section > gen.turn_section) || (gen.fast && gen.since_section > 100)) {
- gen.since_section = 0;
- if (rnd(4) <= 2) gen.fast = !gen.fast;
- }
- pacing();
+ path_pace(run.dist, pl.since_power, d);
}
collect();
pl.anim += DT * pl.v / 22.0f;
diff --git a/games/templerun/src/game.h b/games/templerun/src/game.h
index ec674a5c..b0ad3939 100644
--- a/games/templerun/src/game.h
+++ b/games/templerun/src/game.h
@@ -1,40 +1,19 @@
-/* Temple Run: the run (game.c) - the path, the runner, the pursuers, coins and power-ups - and the progress
+/* Temple Run: the run (game.c) - the runner, the pursuers, coins and power-ups - and the progress
* kept between runs. The numbers are the game's own (its Android version 1.0.8), in its units: a path tile
- * is 60 across, the runner 9.6 tall, speeds in units a second. */
+ * is 60 across, the runner 9.6 tall, speeds in units a second. The path is path.h's. */
#ifndef TR_GAME_H
#define TR_GAME_H
#include <stdbool.h>
#include <stdint.h>
-#define TILE 60.0f
-#define HALF_W 10.0f /* half the walkway */
-#define NTILES 40 /* the path kept: behind, under and ahead of the runner */
-#define NSTUB 2 /* a junction's two ways, this many tiles each, until one is taken */
+#include "path.h"
-enum { TH_TEMPLE, TH_PLANK, TH_CLIFF, TH_COUNT };
-enum { PK_STRAIGHT, PK_HOLE, PK_HOLE_LONG, PK_NARROW_L, PK_NARROW_R, PK_CORNER_L, PK_CORNER_R, PK_T, PK_STEP_UP,
- PK_STEP_DOWN, PK_COUNT };
-enum { OB_NONE, OB_ROOT, OB_TREE, OB_BRANCH, OB_FIRE };
-enum { IT_NONE, IT_COIN_BONUS, IT_INVISIBILITY, IT_MAGNET, IT_BOOST };
-enum { COIN_NONE, COIN_CENTRE, COIN_LEFT, COIN_RIGHT, COIN_SLANT_L, COIN_SLANT_R, COIN_ARC };
-enum { DEATH_NONE, DEATH_FALL, DEATH_TREE, DEATH_BRANCH, DEATH_FIRE, DEATH_CAUGHT };
+enum { DEATH_NONE, DEATH_FALL, DEATH_TREE, DEATH_BRANCH, DEATH_FIRE, DEATH_CAUGHT, DEATH_LEDGE, DEATH_TANGLE };
/* upgrades (levels 0..5) and things to use (counts) */
enum { UP_MAGNET, UP_INVISIBILITY, UP_COIN_BONUS, UP_COIN_VALUE, UP_BOOST, UP_COUNT };
enum { USE_WINGS, USE_HEADSTART, USE_MEGA, USE_COUNT };
#define UP_MAX 5
-typedef struct {
- int16_t gx, gz; /* its square: centre (gx, gz) x 60 */
- uint8_t dir; /* the way the run goes into it: 0 +z, 1 +x, 2 -z, 3 -x */
- uint8_t kind, theme, ob;
- uint8_t coin, coin_kind; /* how its coins lie (COIN_*), and which (1 yellow, 2 red, 3 blue) */
- uint8_t coins; /* the ones still there (bits) */
- uint8_t item; /* a power-up at its middle (IT_*) */
- uint8_t scenery; /* 1 a jungle tree left, 2 right, 4 a tall one, 8 a pillar */
- uint8_t hit; /* its obstacle already hit (one stumble a root) */
- float y; /* the floor where the run comes in */
-} Tile;
-
typedef struct {
float x, y, z; /* feet */
float v; /* run speed */
@@ -43,6 +22,7 @@ typedef struct {
float lean; /* -6 left, 0, 6 right: where it keeps across the path (4 and 6) */
float ground; /* the floor under it */
bool over, on_ground, jumping, falling, sliding, stumbling, dead;
+ bool higher; /* the ground just rose under it */
float t_slide, slide_len, t_stumble, stumble_len, t_fall;
float stumble_timer; /* time since the last stumble: under 10, another one gets it caught */
int death;
@@ -55,7 +35,6 @@ typedef struct {
float since_power;
int turn_wish; /* -1 left, 1 right: pressed before the corner (kept 1 s) */
float t_wish;
- int tile; /* the tile it is on (an index in path) */
float anim; /* the run cycle */
} Runner;
@@ -88,10 +67,6 @@ typedef struct {
extern Progress pg;
extern Runner pl;
extern RunStats run;
-extern Tile path[NTILES];
-extern int path_first, path_count; /* the oldest tile, and how many */
-extern Tile stub[2][NSTUB]; /* a junction's ways, left [0] and right [1], until one is taken */
-extern bool stub_on;
/* coins flying to the runner (the coin magnet) */
#define NFLY 24
@@ -109,18 +84,11 @@ typedef struct {
extern Pursuer pursuers[NPURSUERS];
extern bool pursuers_on;
-static inline Tile *tile_at(int i) { return &path[(path_first + i) % NTILES]; }
void game_new_run(void);
/* a 60th of a second: keys held (lean) and pressed (turn, jump, slide) */
enum { IN_LEFT = 1, IN_RIGHT = 2, IN_JUMP = 4, IN_SLIDE = 8, IN_LEAN_L = 16, IN_LEAN_R = 32, IN_WINGS = 64,
IN_HEADSTART = 128, IN_MEGA = 256 };
void game_step(uint32_t in);
-/* the floor at a world point (false: none there); *t: the tile found (or NULL) */
-bool game_floor(float x, float z, float *y, const Tile **t);
-/* where a tile's coin k is (world), false if it has none there */
-bool game_coin_pos(const Tile *t, int k, float *x, float *y, float *z);
-float game_tile_cx(const Tile *t);
-float game_tile_cz(const Tile *t);
/* can a head start be used now, which (1 head start, 3 mega: bits) */
int game_headstart_ok(void);
bool game_wings_ok(void);
diff --git a/games/templerun/src/path.c b/games/templerun/src/path.c
new file mode 100644
index 00000000..2eb516c6
--- /dev/null
+++ b/games/templerun/src/path.c
@@ -0,0 +1,543 @@
+#if defined(__GNUC__) && !defined(__clang__)
+#pragma GCC optimize("Os")
+#endif
+/* The path (path.h), laid as the game's PathElement lays it: which piece types may follow which on each side,
+ * when turns, gaps, narrow paths, fire and trees may come (the game's spacing, kept piece by piece from the
+ * parent), how two gaps make a long one, how a change of place drops the path down a level or makes the runner
+ * jump up one, and which of the game's prefabs each piece is. */
+#include <string.h>
+#include "data.h"
+#include "game.h"
+#include "path.h"
+#include "plat.h"
+
+_Static_assert(M_PIECES == FLOOR_PIECES, "data.h and floor.c list the same pieces");
+
+Tile tiles[NTILES];
+int path_root = -1;
+static int root_origin = D_S; /* the side of the root the runner came in by */
+
+static const int8_t DX[4] = {0, 1, 0, -1}, DZ[4] = {1, 0, -1, 0};
+static const float LEVEL_Y[TH_COUNT] = {0, -15, 15};
+#define OPP(d) ((d) ^ 2)
+#define B(t) (1ull << (t))
+#define DEPTH 10 /* pieces laid ahead along every way (GameController: AddRandomPath(10)) */
+
+static int rnd(int n) { return n > 1 ? (int)(plat_random() % (uint32_t)n) : 0; }
+static bool half(void) { return rnd(2) == 0; }
+
+/* ---------------------------------------------------------------- the game's switches (PathElement's statics) */
+static struct {
+ int level; /* sPathLevel: where the path goes */
+ bool fast; /* a fast turn section */
+ bool slide, flames, narrows, bonus;
+ int gap_turns, gap_obs, gap_coins;
+ float dbl;
+ float since_level, since_section, red_at, blue_at;
+} ps;
+
+/* GameController's HandlePacing: what may come, how far apart, by the distance run */
+void path_pace(float d, float since_power, float dd) {
+ float level_temple = 500, level_other = 200, section = 1000;
+ if (d < 250) ps.gap_coins = 12, ps.gap_turns = 12, ps.gap_obs = 6, ps.dbl = 0;
+ else if (d < 500) ps.gap_coins = 10, ps.gap_turns = 10, ps.gap_obs = 5, ps.dbl = 0;
+ else if (d < 1000) ps.gap_coins = 9, ps.gap_turns = 8, ps.gap_obs = 4, ps.dbl = 0.05f;
+ else if (d < 1500) ps.gap_coins = 8, ps.gap_turns = 6, ps.gap_obs = 4, ps.dbl = 0.05f;
+ else if (d < 2000) ps.gap_coins = 7, ps.gap_turns = 5, ps.gap_obs = 3, ps.dbl = 0.1f;
+ else if (d < 3250) ps.gap_coins = 6, ps.gap_turns = 4, ps.gap_obs = 3, ps.dbl = 0.15f;
+ else if (d < 4500) ps.gap_coins = 6, ps.gap_turns = 3, ps.gap_obs = 3, ps.dbl = 0.175f;
+ else ps.gap_coins = 6, ps.gap_turns = 2, ps.gap_obs = 2, ps.dbl = 0.2f;
+ if (d >= 3250) level_temple = 375, level_other = 300, section = 750;
+ else if (d >= 1000) level_temple = 450, level_other = 250, section = 850;
+ ps.slide = ps.flames = d >= 500;
+ ps.narrows = d >= 1500;
+ ps.bonus = since_power >= 15;
+ /* a change of place now and then, fast turn sections */
+ ps.since_level += dd, ps.since_section += dd;
+ if (ps.since_level > (ps.level == TH_TEMPLE ? level_temple : level_other)) {
+ ps.since_level = 0;
+ if (rnd(4) <= 2) {
+ if (ps.level == TH_PLANK) ps.level = TH_TEMPLE;
+ else if (ps.level == TH_TEMPLE) ps.level = half() ? TH_PLANK : TH_CLIFF;
+ else ps.level = half() ? TH_TEMPLE : TH_PLANK;
+ }
+ }
+ if ((!ps.fast && ps.since_section > section) || (ps.fast && ps.since_section > 100)) {
+ ps.since_section = 0;
+ if (rnd(4) <= 2) ps.fast = !ps.fast;
+ }
+ if (ps.fast) {
+ ps.gap_turns = (int)((float)ps.gap_turns * 0.65f);
+ if (ps.gap_turns < 2) ps.gap_turns = 2;
+ ps.gap_coins = 0;
+ }
+ static const float red[6] = {1e9f, 1500, 1000, 1000, 1000, 1000}, blue[6] = {1e9f, 1e9f, 1e9f, 3000, 2500, 2000};
+ int l = pg.up[UP_COIN_VALUE] > 5 ? 5 : pg.up[UP_COIN_VALUE];
+ ps.red_at = red[l], ps.blue_at = blue[l];
+}
+
+/* ---------------------------------------------------------------- the types */
+static bool is_vert(int t) {
+ return t == PT_STRAIGHT_V || (t >= PT_HOLE_V && t <= PT_HOLE_LB_V) || t == PT_NARROW_V ||
+ (t >= PT_NL_LEFT_V && t <= PT_NL_RIGHT_B_V) || t == PT_FLAME_V || t == PT_CAP_A_V || t == PT_CAP_B_V ||
+ t == PT_TEMPLE;
+}
+static bool is_horz(int t) {
+ return t == PT_STRAIGHT_H || (t >= PT_HOLE_H && t <= PT_HOLE_LB_H) || t == PT_NARROW_H ||
+ (t >= PT_NL_UP_H && t <= PT_NL_DOWN_B_H) || t == PT_FLAME_H || t == PT_CAP_A_H || t == PT_CAP_B_H;
+}
+static bool turn_type(int t) { return t >= PT_TURN_A && t <= PT_T_DOWN; }
+static bool hole_type(int t) { return t >= PT_HOLE_V && t <= PT_HOLE_LB_H; }
+static bool narrow_type(int t) { return t >= PT_NARROW_V && t <= PT_NL_DOWN_B_H; }
+static bool cap_type(int t) { return t >= PT_CAP_A_H && t <= PT_CAP_B_V; }
+static bool obstacle_type(int t) { return t >= PT_HOLE_V && t <= PT_CAP_B_V; }
+
+/* CanPathExtendOnSide: the sides a type opens on */
+static uint8_t opens(int t) {
+ if (is_vert(t)) return 1 << D_N | 1 << D_S;
+ if (is_horz(t)) return 1 << D_E | 1 << D_W;
+ switch (t) {
+ case PT_TURN_A: return 1 << D_W | 1 << D_S;
+ case PT_TURN_B: return 1 << D_E | 1 << D_S;
+ case PT_TURN_C: return 1 << D_W | 1 << D_N;
+ case PT_TURN_D: return 1 << D_E | 1 << D_N;
+ case PT_T_RIGHT: return 1 << D_N | 1 << D_E | 1 << D_S;
+ case PT_T_LEFT: return 1 << D_N | 1 << D_S | 1 << D_W;
+ case PT_T_UP: return 1 << D_N | 1 << D_E | 1 << D_W;
+ case PT_T_DOWN: return 1 << D_E | 1 << D_S | 1 << D_W;
+ default: return 0;
+ }
+}
+
+/* the long narrow paths: the middle piece, its two ends (A at the south or west end) */
+static const uint8_t narrow_groups[4][3] = {{PT_NL_LEFT_V, PT_NL_LEFT_A_V, PT_NL_LEFT_B_V},
+ {PT_NL_RIGHT_V, PT_NL_RIGHT_A_V, PT_NL_RIGHT_B_V},
+ {PT_NL_UP_H, PT_NL_UP_A_H, PT_NL_UP_B_H},
+ {PT_NL_DOWN_H, PT_NL_DOWN_A_H, PT_NL_DOWN_B_H}};
+
+/* ACertainTypeCheck: both pieces of the same long narrow path */
+static bool same_narrow(int a, int b) {
+ for (int g = 0; g < 4; g++) {
+ const uint8_t *n = narrow_groups[g];
+ if ((a == n[0] || a == n[1] || a == n[2]) && (b == n[0] || b == n[1] || b == n[2])) return true;
+ }
+ return false;
+}
+
+/* WillPieceTypeConnectOnSide: the types that may follow a piece of type p on side d */
+static uint64_t may_follow(int p, int d) {
+ static const uint64_t follow[4] = {
+ B(PT_STRAIGHT_V) | B(PT_TURN_A) | B(PT_TURN_B) | B(PT_T_RIGHT) | B(PT_T_LEFT) | B(PT_T_DOWN) | B(PT_HOLE_V) |
+ B(PT_HOLE_LA_V) | B(PT_NARROW_V) | B(PT_NL_LEFT_A_V) | B(PT_NL_RIGHT_A_V) | B(PT_FLAME_V) | B(PT_CAP_A_V) |
+ B(PT_CAP_B_V) | B(PT_TEMPLE),
+ B(PT_STRAIGHT_H) | B(PT_TURN_A) | B(PT_TURN_C) | B(PT_T_LEFT) | B(PT_T_UP) | B(PT_T_DOWN) | B(PT_HOLE_H) |
+ B(PT_HOLE_LA_H) | B(PT_NARROW_H) | B(PT_NL_UP_A_H) | B(PT_NL_DOWN_A_H) | B(PT_FLAME_H) | B(PT_CAP_A_H) |
+ B(PT_CAP_B_H),
+ B(PT_STRAIGHT_V) | B(PT_TURN_C) | B(PT_TURN_D) | B(PT_T_RIGHT) | B(PT_T_LEFT) | B(PT_T_UP) | B(PT_HOLE_V) |
+ B(PT_HOLE_LB_V) | B(PT_NARROW_V) | B(PT_NL_LEFT_B_V) | B(PT_NL_RIGHT_B_V) | B(PT_FLAME_V) | B(PT_CAP_A_V) |
+ B(PT_CAP_B_V) | B(PT_TEMPLE),
+ B(PT_STRAIGHT_H) | B(PT_TURN_B) | B(PT_TURN_D) | B(PT_T_RIGHT) | B(PT_T_UP) | B(PT_T_DOWN) | B(PT_HOLE_H) |
+ B(PT_HOLE_LB_H) | B(PT_NARROW_H) | B(PT_NL_UP_B_H) | B(PT_NL_DOWN_B_H) | B(PT_FLAME_H) | B(PT_CAP_A_H) |
+ B(PT_CAP_B_H)};
+ bool vert = d == D_N || d == D_S;
+ for (int g = 0; g < 4; g++) {
+ const uint8_t *n = narrow_groups[g];
+ if ((g < 2) != vert) continue;
+ int first = d == D_N || d == D_E ? n[1] : n[2], last = d == D_N || d == D_E ? n[2] : n[1];
+ if (p == first || p == n[0]) return B(n[0]) | B(last);
+ if (p == last) return B(vert ? PT_STRAIGHT_V : PT_STRAIGHT_H);
+ }
+ if ((p == PT_NARROW_V && vert) || (p == PT_NARROW_H && !vert)) return B(vert ? PT_STRAIGHT_V : PT_STRAIGHT_H);
+ if (d == D_N && p == PT_HOLE_LA_V) return B(PT_STRAIGHT_V) | B(PT_HOLE_LB_V);
+ if (d == D_S && p == PT_HOLE_LB_V) return B(PT_STRAIGHT_V) | B(PT_HOLE_LA_V);
+ if (d == D_E && p == PT_HOLE_LA_H) return B(PT_STRAIGHT_H) | B(PT_HOLE_LB_H);
+ if (d == D_W && p == PT_HOLE_LB_H) return B(PT_STRAIGHT_H) | B(PT_HOLE_LA_H);
+ return follow[d];
+}
+
+/* GetPrefabNameForType: the prefab of a type in a place (-1: none) */
+static int prefab(int t, int level) {
+ if (level == TH_PLANK) {
+ if (t == PT_STRAIGHT_V) return M_plankStraightVert;
+ if (t == PT_STRAIGHT_H) return M_plankStraightHorz;
+ if (t >= PT_TURN_A && t <= PT_TURN_D) return M_plankTurnA + (t - PT_TURN_A);
+ if (t >= PT_T_LEFT && t <= PT_T_DOWN) return M_plankTLeft + (t - PT_T_LEFT);
+ if (t >= PT_HOLE_V && t <= PT_HOLE_LB_V) return M_plankStraightHoleVert;
+ if (t >= PT_HOLE_H && t <= PT_HOLE_LB_H) return M_plankStraightHoleHorz;
+ if (t == PT_FLAME_H) return M_plankStraightTowerHorz;
+ if (t == PT_FLAME_V) return M_plankStraightTowerVert;
+ return -1;
+ }
+ if (level == TH_CLIFF) {
+ if (t == PT_STRAIGHT_V) return M_cliffStraightVert;
+ if (t == PT_STRAIGHT_H) return M_cliffStraightHorz;
+ if (t >= PT_TURN_A && t <= PT_TURN_D) return M_cliffTurnA + (t - PT_TURN_A);
+ if (t >= PT_T_LEFT && t <= PT_T_DOWN) return M_cliffTLeft + (t - PT_T_LEFT);
+ if (t == PT_HOLE_LA_V || t == PT_CAP_A_V) return M_cliffToTempleCapAVert;
+ if (t == PT_HOLE_LB_V || t == PT_CAP_B_V) return M_cliffToTempleCapBVert;
+ if (t == PT_HOLE_LA_H || t == PT_CAP_A_H) return M_cliffToTempleCapAHorz;
+ if (t == PT_HOLE_LB_H || t == PT_CAP_B_H) return M_cliffToTempleCapBHorz;
+ return -1;
+ }
+ switch (t) {
+ case PT_STRAIGHT_V:
+ case PT_STRAIGHT_H: {
+ bool v = t == PT_STRAIGHT_V;
+ if (rnd(20) == 0) return v ? M_templeStraightTowerVert : M_templeStraightTowerHorz;
+ int n = rnd(10);
+ if (n <= 5) return v ? M_templeStraightVert : M_templeStraightHorz;
+ return (v ? M_templeStraightVert2 : M_templeStraightHorz2) + (n - 6);
+ }
+ case PT_HOLE_V: return M_templeStraightHoleVert;
+ case PT_HOLE_LA_V: return M_templeStraightHoleLongAVert;
+ case PT_HOLE_LB_V: return M_templeStraightHoleLongBVert;
+ case PT_HOLE_H: return M_templeStraightHoleHorz;
+ case PT_HOLE_LA_H: return M_templeStraightHoleLongAHorz;
+ case PT_HOLE_LB_H: return M_templeStraightHoleLongBHorz;
+ case PT_NARROW_V: return half() ? M_templeStraightNarrowSmallRightVert : M_templeStraightNarrowSmallLeftVert;
+ case PT_NARROW_H: return M_templeStraightNarrowSmallDownHorz;
+ case PT_FLAME_H: return M_templeStraightFlameTowerHighHorz;
+ case PT_FLAME_V: return M_templeStraightFlameTowerHighVert;
+ case PT_CAP_A_V: return M_templeToPlankCapAVert;
+ case PT_CAP_A_H: return M_templeToPlankCapAHorz;
+ case PT_CAP_B_V: return M_templeToPlankCapBVert;
+ case PT_CAP_B_H: return M_templeToPlankCapBHorz;
+ case PT_TEMPLE: return M_temple;
+ default:
+ if (t >= PT_TURN_A && t <= PT_TURN_D) return M_templeTurnA + (t - PT_TURN_A);
+ if (t >= PT_T_LEFT && t <= PT_T_DOWN) return M_templeTLeft + (t - PT_T_LEFT);
+ if (t >= PT_NL_LEFT_V && t <= PT_NL_DOWN_B_H) return M_templeStraightNarrowLongLeftVert + (t - PT_NL_LEFT_V);
+ return -1;
+ }
+}
+
+/* SetPathType and SetupTerrain: a piece's type, its prefab, and what that makes it */
+static void set_type(Tile *t, int type, int level) {
+ t->type = (uint8_t)type, t->level = (uint8_t)level;
+ t->y = LEVEL_Y[level];
+ t->mesh = (int16_t)prefab(type, level);
+ if (t->mesh < 0) return;
+ if (obstacle_type(type)) t->has_obstacles = 1;
+ if (hole_type(type)) t->obst = OB_HOLE;
+ else if (narrow_type(type)) t->obst = OB_NARROW;
+ else if (type == PT_FLAME_H || type == PT_FLAME_V) t->obst = OB_FLAME;
+ else if (cap_type(type)) t->obst = OB_LEVEL;
+}
+
+/* AddObstacle: a tree on a plain straight piece (its prefab becomes the tree's) */
+static void add_obstacle(Tile *t, int ob) {
+ if (t->has_obstacles || ob == OB_NONE || ob == OB_HOLE || ob == OB_NARROW || ob == OB_LEVEL || ob == OB_FLAME ||
+ (t->type != PT_STRAIGHT_V && t->type != PT_STRAIGHT_H))
+ return;
+ bool v = t->type == PT_STRAIGHT_V;
+ if (ob == OB_STUMBLE)
+ t->mesh = v ? (half() ? M_templeStraightTreeTripLeftVert : M_templeStraightTreeTripRightVert)
+ : (half() ? M_templeStraightTreeTripUpHorz : M_templeStraightTreeTripDownHorz);
+ else if (ob == OB_JUMP)
+ t->mesh = v ? (half() ? M_templeStraightTreeJumpLeftVert : M_templeStraightTreeJumpRightVert)
+ : (half() ? M_templeStraightTreeJumpUpHorz : M_templeStraightTreeJumpDownHorz);
+ else if (t->level != TH_TEMPLE)
+ t->mesh = v ? M_cliffStraightTreeVert : M_cliffStraightTreeHorz;
+ else
+ t->mesh = v ? M_templeStraightTreeSlideVert : M_templeStraightTreeSlideHorz;
+ t->obst = (uint8_t)ob;
+ t->has_obstacles = 1;
+}
+
+static bool sides_have_obstacles(const Tile *t) {
+ for (int d = 0; d < 4; d++)
+ if (t->next[d] >= 0 && tiles[t->next[d]].has_obstacles) return true;
+ return false;
+}
+
+/* ---------------------------------------------------------------- coins, power-ups, scenery */
+static void coins_for(Tile *t, const Tile *p) {
+ if (t->mesh < 0 || t->obst == OB_SLIDE || t->obst == OB_NARROW || t->obst == OB_LEVEL) return;
+ if (!p->coin_count && p->since_coins < ps.gap_coins) return;
+ if (t->obst == OB_FLAME && half()) return;
+ if (p->coin_count && p->coin_kind) {
+ t->coin_kind = p->coin_kind;
+ t->coin = p->coin == COIN_ARC ? COIN_CENTRE : p->coin;
+ } else {
+ static const uint8_t lay[3] = {COIN_CENTRE, COIN_LEFT, COIN_RIGHT};
+ uint8_t kinds[3] = {1, 0, 0};
+ int n = 1;
+ if (run.dist >= ps.red_at) kinds[n++] = 2;
+ if (run.dist >= ps.blue_at) kinds[n++] = 3;
+ t->coin_kind = kinds[rnd(n)];
+ t->coin = lay[rnd(3)];
+ }
+ if (t->has_obstacles) t->coin = COIN_ARC;
+ else if (path_is_turn(t)) t->coin = COIN_CENTRE;
+ t->coins = path_is_turn(t) ? 0x07 : 0x1F;
+}
+
+/* AddBonusItems: a power-up now and then on a plain straight piece */
+static void bonus_for(Tile *t, const Tile *p) {
+ if (!path_is_straight(t) || t->coins || !ps.bonus || p->since_bonus < 50) return;
+ uint8_t items[4];
+ int m = 0;
+ if (pg.up[UP_COIN_BONUS]) items[m++] = IT_COIN_BONUS;
+ if (pg.up[UP_INVISIBILITY]) items[m++] = IT_INVISIBILITY;
+ if (pg.up[UP_MAGNET]) items[m++] = IT_MAGNET;
+ if (pg.up[UP_BOOST]) items[m++] = IT_BOOST;
+ if (m && half()) t->item = items[rnd(m)];
+ else t->skipped_item = 1;
+}
+
+static void scenery(Tile *t) {
+ t->scenery = 0;
+ if (!path_is_straight(t) && t->obst != OB_HOLE) return;
+ if (t->level != TH_CLIFF && rnd(10) < 3) t->scenery |= 1;
+ if (rnd(10) < 3) t->scenery |= 2;
+ if (rnd(3) == 0) t->scenery |= 4;
+ if (t->level == TH_TEMPLE && rnd(6) == 0) t->scenery |= 8;
+}
+
+static uint8_t inc(uint8_t v) { return v < 255 ? (uint8_t)(v + 1) : v; }
+
+/* UpdatePathDescription: the spacing, from the parent on */
+static void describe(Tile *t, const Tile *p) {
+ t->since_turn = turn_type(t->type) ? 0 : inc(p->since_turn);
+ if (t->has_obstacles) {
+ t->since_obstacle = 0;
+ if (sides_have_obstacles(t)) t->back_to_back = inc(p->back_to_back); /* (its sides are empty yet) */
+ if (t->obst == OB_SLIDE || t->obst == OB_FLAME) t->since_turn = 0;
+ } else
+ t->since_obstacle = inc(p->since_obstacle), t->back_to_back = 0;
+ if (t->coins) {
+ t->coin_count = inc(p->coin_count);
+ t->since_coins = t->coin_count >= 5 ? 0 : p->since_coins;
+ } else
+ t->since_coins = inc(p->since_coins), t->coin_count = 0;
+ if (t->item) t->since_bonus = 0, t->since_turn = 0, t->since_obstacle = 0;
+ else if (t->skipped_item) t->since_bonus = 0;
+ else t->since_bonus = inc(p->since_bonus);
+ if (cap_type(t->type) || cap_type(p->type)) t->since_obstacle = 0, t->since_turn = 0;
+}
+
+/* ---------------------------------------------------------------- laying */
+static int alloc(void) {
+ for (int i = 0; i < NTILES; i++)
+ if (!tiles[i].alive) {
+ memset(&tiles[i], 0, sizeof tiles[i]);
+ for (int d = 0; d < 4; d++) tiles[i].next[d] = -1;
+ tiles[i].alive = 1;
+ return i;
+ }
+ return -1;
+}
+
+/* GetRandomPathElementForSide: the next piece on side d of piece pi (-1: none) */
+static int lay(int pi, int d) {
+ Tile *p = &tiles[pi];
+ if (p->next[d] >= 0 || !(opens(p->type) >> d & 1)) return -1;
+ bool turn_ok = p->since_turn >= ps.gap_turns, level_change = false, obs_ok = true, side_clean = false, flame_ok = true;
+ if (p->since_turn == 1) obs_ok = false;
+ if (p->back_to_back >= 2) obs_ok = false;
+ if (p->since_obstacle < ps.gap_obs && (float)rnd(1000) >= 1000.0f * ps.dbl) obs_ok = false;
+ int ptype = p->type, level = ps.level, plevel = p->level;
+ if (ptype >= PT_TURN_A && ptype <= PT_TURN_D) obs_ok = false;
+ else if (ptype >= PT_T_LEFT && ptype <= PT_T_DOWN) {
+ if (sides_have_obstacles(p)) obs_ok = false;
+ else side_clean = true;
+ }
+ if (p->has_obstacles) {
+ turn_ok = flame_ok = false; /* (no turns right after an obstacle) */
+ if (p->obst == OB_SLIDE || p->obst == OB_FLAME) obs_ok = false;
+ }
+ if (plevel != ps.level) {
+ turn_ok = obs_ok = flame_ok = side_clean = false;
+ if ((ptype == PT_STRAIGHT_V || ptype == PT_STRAIGHT_H) && !p->has_obstacles && p->since_turn > 2 && p->since_obstacle > 2) {
+ /* a change of place: the piece before ends here (a cap at its level) */
+ level_change = true;
+ int cap = d == D_E ? PT_CAP_A_H : d == D_W ? PT_CAP_B_H : d == D_N ? PT_CAP_A_V : PT_CAP_B_V;
+ if ((plevel == TH_TEMPLE && ps.level == TH_CLIFF) || (plevel == TH_CLIFF && ps.level != TH_CLIFF) ||
+ (plevel == TH_TEMPLE && ps.level == TH_PLANK)) {
+ set_type(p, cap, plevel);
+ p->coins = 0, p->item = 0;
+ }
+ } else
+ level = plevel;
+ }
+ if (p->obst == OB_LEVEL || level_change) turn_ok = flame_ok = obs_ok = side_clean = false;
+ if (ps.fast) flame_ok = obs_ok = side_clean = false;
+ uint64_t ok = may_follow(p->type, d);
+ uint8_t cand[PT_MAX];
+ int n = 0;
+ for (int i = 1; i < PT_TEMPLE + 1; i++) {
+ if (!(ok >> i & 1)) continue;
+ if (!turn_ok && turn_type(i)) continue;
+ if (ptype == PT_STRAIGHT_V && (i == PT_T_LEFT || i == PT_T_RIGHT)) continue; /* (no side paths) */
+ if (ptype == PT_STRAIGHT_H && (i == PT_T_UP || i == PT_T_DOWN)) continue;
+ bool same = same_narrow(i, ptype);
+ if (!obs_ok) {
+ if (!same && obstacle_type(i)) continue;
+ } else if (i == PT_HOLE_V || i == PT_HOLE_H) {
+ if (half()) continue;
+ } else if (i == PT_FLAME_H || i == PT_FLAME_V) {
+ if (!ps.flames || level == TH_CLIFF || !flame_ok || side_clean || half()) continue;
+ } else if (narrow_type(i) && (!ps.narrows || level != TH_TEMPLE || p->since_turn < 2 || side_clean || half()) && !same)
+ continue;
+ if (i == PT_HOLE_LA_V || i == PT_HOLE_LB_V || i == PT_HOLE_LA_H || i == PT_HOLE_LB_H || i >= PT_CAP_A_H) continue;
+ cand[n++] = (uint8_t)i;
+ }
+ if (!n) return -1;
+ int pick = cand[rnd(n)], ob = OB_NONE;
+ if (pick == PT_HOLE_V || pick == PT_HOLE_H) ob = OB_HOLE;
+ else if (narrow_type(pick)) ob = OB_NARROW;
+ if (obs_ok && !side_clean && (pick == PT_STRAIGHT_V || pick == PT_STRAIGHT_H) && half()) {
+ int ch[3], m = 0;
+ if (level == TH_TEMPLE) ch[m++] = OB_STUMBLE, ch[m++] = OB_JUMP;
+ if (ps.slide && flame_ok && level != TH_PLANK) ch[m++] = OB_SLIDE;
+ if (m) ob = ch[rnd(m)];
+ }
+ /* a gap on the cliffs goes on into the next piece; two gaps make a long one */
+ if (p->obst == OB_HOLE && level == TH_CLIFF && (ptype == PT_HOLE_H || ptype == PT_HOLE_V)) pick = ptype;
+ if (p->obst == OB_HOLE && (ptype == PT_HOLE_H || ptype == PT_HOLE_V) && (pick == PT_HOLE_H || pick == PT_HOLE_V)) {
+ bool fwd = d == D_E || d == D_N;
+ if (pick == PT_HOLE_H) set_type(p, fwd ? PT_HOLE_LA_H : PT_HOLE_LB_H, level), pick = fwd ? PT_HOLE_LB_H : PT_HOLE_LA_H;
+ else set_type(p, fwd ? PT_HOLE_LA_V : PT_HOLE_LB_V, level), pick = fwd ? PT_HOLE_LB_V : PT_HOLE_LA_V;
+ }
+ /* after a change of place, a cap where the new level begins (the runner drops to it, or jumps up to it) */
+ if (level_change && ((plevel == TH_CLIFF && level == TH_TEMPLE) || (plevel == TH_TEMPLE && level == TH_CLIFF) ||
+ (plevel == TH_PLANK && level == TH_TEMPLE)))
+ pick = d == D_E ? PT_CAP_B_H : d == D_W ? PT_CAP_A_H : d == D_N ? PT_CAP_B_V : PT_CAP_A_V;
+ int ni = alloc();
+ if (ni < 0) return -1;
+ p = &tiles[pi];
+ Tile *t = &tiles[ni];
+ t->gx = (int16_t)(p->gx + DX[d]), t->gz = (int16_t)(p->gz + DZ[d]);
+ t->dir = (uint8_t)d;
+ set_type(t, pick, level);
+ if (ob == OB_HOLE || ob == OB_NARROW) t->obst = (uint8_t)ob;
+ else add_obstacle(t, ob);
+ if (!side_clean) {
+ coins_for(t, p);
+ bonus_for(t, p);
+ }
+ describe(t, p);
+ scenery(t);
+ p->next[d] = (int8_t)ni;
+ t->next[OPP(d)] = (int8_t)pi;
+ return ni;
+}
+
+/* AddRandomPath: every way from a piece, depth pieces on */
+static void grow(int pi, int depth, int origin) {
+ if (!depth) return;
+ for (int d = 0; d < 4; d++) {
+ if (d == origin || !(opens(tiles[pi].type) >> d & 1)) continue;
+ int c = tiles[pi].next[d];
+ if (c < 0) c = lay(pi, d);
+ if (c >= 0) grow(c, depth - 1, OPP(d));
+ }
+}
+
+static void destroy(int i, int from) {
+ for (int d = 0; d < 4; d++)
+ if (d != from && tiles[i].next[d] >= 0) destroy(tiles[i].next[d], OPP(d));
+ tiles[i].alive = 0;
+}
+
+void path_start(void) {
+ memset(tiles, 0, sizeof tiles);
+ memset(&ps, 0, sizeof ps);
+ ps.level = TH_TEMPLE;
+ path_pace(0, 15, 0);
+ int i = alloc();
+ set_type(&tiles[i], PT_TEMPLE, TH_TEMPLE);
+ tiles[i].dir = D_N;
+ path_root = i, root_origin = D_S;
+ grow(i, DEPTH, root_origin);
+}
+
+void path_advance(int to) {
+ int r = path_root, d = -1;
+ for (int k = 0; k < 4; k++)
+ if (tiles[r].next[k] == to) d = k;
+ if (d < 0) return;
+ for (int k = 0; k < 4; k++)
+ if (k != d && tiles[r].next[k] >= 0) {
+ destroy(tiles[r].next[k], OPP(k));
+ tiles[r].next[k] = -1;
+ }
+ path_root = to, root_origin = OPP(d);
+ grow(to, DEPTH, root_origin);
+}
+
+/* ---------------------------------------------------------------- the ground */
+static int round_(float v) { return (int)(v >= 0 ? v + 0.5f : v - 0.5f); }
+
+int path_at(float x, float z) {
+ int gx = round_(x / TILE), gz = round_(z / TILE), r = path_root;
+ if (r < 0) return -1;
+ if (tiles[r].gx == gx && tiles[r].gz == gz) return r;
+ for (int d = 0; d < 4; d++) {
+ int c = tiles[r].next[d];
+ if (c >= 0 && tiles[c].gx == gx && tiles[c].gz == gz) return c;
+ }
+ return -1;
+}
+
+bool path_ground(const Tile *t, float x, float z) {
+ if (t->mesh < 0 || t->mesh >= FLOOR_PIECES || !floor_cells[t->mesh]) return false;
+ float lx = x - path_cx(t) + 30, lz = z - path_cz(t) + 30;
+ if (lx < -0.5f || lz < -0.5f || lx > 60.5f || lz > 60.5f) return false;
+ lx = lx < 0 ? 0 : lx > 59.9f ? 59.9f : lx; /* (on the edge between two squares) */
+ lz = lz < 0 ? 0 : lz > 59.9f ? 59.9f : lz;
+ return floor_cells[t->mesh][(int)(lz * 0.5f)] >> (int)(lx * 0.5f) & 1;
+}
+
+bool path_opens(const Tile *t, int side) { return opens(t->type) >> side & 1; }
+bool path_is_turn(const Tile *t) { return turn_type(t->type); }
+bool path_is_straight(const Tile *t) { return (t->type == PT_STRAIGHT_V || t->type == PT_STRAIGHT_H) && !t->has_obstacles; }
+int path_next(int i, int d) { return i >= 0 ? tiles[i].next[d] : -1; }
+
+/* ---------------------------------------------------------------- obstacles */
+static bool inside(const FloorObstacle *o, float x, float z) {
+ bool c = false;
+ for (int i = 0, j = o->n - 1; i < o->n; j = i++) {
+ float xi = o->p[i][0] * 0.25f, zi = o->p[i][1] * 0.25f, xj = o->p[j][0] * 0.25f, zj = o->p[j][1] * 0.25f;
+ if ((zi > z) != (zj > z) && x < (xj - xi) * (z - zi) / (zj - zi) + xi) c = !c;
+ }
+ return c;
+}
+
+static bool crosses(float ax, float az, float bx, float bz, float cx, float cz, float dx, float dz) {
+ float d1 = (dx - cx) * (az - cz) - (dz - cz) * (ax - cx), d2 = (dx - cx) * (bz - cz) - (dz - cz) * (bx - cx);
+ float d3 = (bx - ax) * (cz - az) - (bz - az) * (cx - ax), d4 = (bx - ax) * (dz - az) - (bz - az) * (dx - ax);
+ return ((d1 > 0) != (d2 > 0)) && ((d3 > 0) != (d4 > 0));
+}
+
+/* HandleCollisionWithObstacles: the step from (x0, z0) to (x1, z1) across an obstacle's edge, unless it is jumped
+ * (the feet at its height) or slid under, or the step starts inside it */
+int path_hit(const Tile *t, float x0, float z0, float x1, float z1, float y, bool sliding) {
+ if (t->mesh < 0) return 0;
+ float cx = path_cx(t), cz = path_cz(t);
+ x0 -= cx, z0 -= cz, x1 -= cx, z1 -= cz;
+ for (int k = 0; k < floor_nobstacles; k++) {
+ const FloorObstacle *o = &floor_obstacles[k];
+ if (o->piece != t->mesh || inside(o, x0, z0)) continue;
+ if ((o->flags & FO_JUMP) && y >= o->height) continue;
+ if ((o->flags & FO_SLIDE) && sliding) continue;
+ for (int i = 0, j = o->n - 1; i < o->n; j = i++)
+ if (crosses(x0, z0, x1, z1, o->p[j][0] * 0.25f, o->p[j][1] * 0.25f, o->p[i][0] * 0.25f, o->p[i][1] * 0.25f))
+ return o->flags | 8;
+ }
+ return 0;
+}
+
+/* ---------------------------------------------------------------- coins */
+bool path_coin_pos(const Tile *t, int k, float *x, float *y, float *z) {
+ if (t->coin == COIN_NONE || !(t->coins >> k & 1)) return false;
+ float a = -25 + 12.5f * (float)k, s = 0, h = 0;
+ if (t->coin == COIN_LEFT) s = -6;
+ else if (t->coin == COIN_RIGHT) s = 6;
+ else if (t->coin == COIN_ARC) h = 10 * (1 - (a / 30) * (a / 30));
+ int d = t->dir;
+ *x = path_cx(t) + a * DX[d] + s * DZ[d];
+ *z = path_cz(t) + a * DZ[d] - s * DX[d];
+ *y = t->y + h;
+ return true;
+}
diff --git a/games/templerun/src/path.h b/games/templerun/src/path.h
new file mode 100644
index 00000000..a8d2e521
--- /dev/null
+++ b/games/templerun/src/path.h
@@ -0,0 +1,64 @@
+/* Temple Run: the path (path.c), laid as the game's PathElement lays it: a tree of pieces of 60 x 60, each the
+ * game's prefab for its type and place (data.h's first meshes, floor.c's ground and obstacles), grown ten pieces
+ * deep along every way from the piece under the runner, the ways not taken pruned as it goes. Pieces are laid as
+ * they are, unturned: "V" ones run along z, "H" ones along x. */
+#ifndef TR_PATH_H
+#define TR_PATH_H
+#include <stdbool.h>
+#include <stdint.h>
+#include "floor.h"
+
+#define TILE 60.0f
+#define NTILES 128
+
+/* the game's PathType, in its order */
+enum {
+ PT_NONE, PT_STRAIGHT_V, PT_STRAIGHT_H, PT_TURN_A, PT_TURN_B, PT_TURN_C, PT_TURN_D, PT_T_LEFT, PT_T_RIGHT, PT_T_UP,
+ PT_T_DOWN, PT_HOLE_V, PT_HOLE_LA_V, PT_HOLE_LB_V, PT_HOLE_H, PT_HOLE_LA_H, PT_HOLE_LB_H, PT_NARROW_V, PT_NARROW_H,
+ PT_NL_LEFT_V, PT_NL_LEFT_A_V, PT_NL_LEFT_B_V, PT_NL_RIGHT_V, PT_NL_RIGHT_A_V, PT_NL_RIGHT_B_V, PT_NL_UP_H,
+ PT_NL_UP_A_H, PT_NL_UP_B_H, PT_NL_DOWN_H, PT_NL_DOWN_A_H, PT_NL_DOWN_B_H, PT_FLAME_H, PT_FLAME_V, PT_CAP_A_H,
+ PT_CAP_B_H, PT_CAP_A_V, PT_CAP_B_V, PT_TEMPLE, PT_MAX
+};
+/* the places (the game's PathLevel), and their heights */
+enum { TH_TEMPLE, TH_PLANK, TH_CLIFF, TH_COUNT };
+/* the game's ObstacleType */
+enum { OB_NONE, OB_HOLE, OB_NARROW, OB_STUMBLE, OB_JUMP, OB_SLIDE, OB_FLAME, OB_LEVEL };
+enum { D_N, D_E, D_S, D_W }; /* +z, +x, -z, -x */
+enum { COIN_NONE, COIN_CENTRE, COIN_LEFT, COIN_RIGHT, COIN_ARC };
+enum { IT_NONE, IT_COIN_BONUS, IT_INVISIBILITY, IT_MAGNET, IT_BOOST };
+
+typedef struct {
+ int16_t gx, gz; /* its square: centre (gx, gz) x 60 */
+ uint8_t alive, type, level;
+ int16_t mesh; /* its prefab (data.h), -1: none (a gap) */
+ uint8_t obst, has_obstacles;
+ uint8_t dir; /* the way the run goes into it */
+ int8_t next[4]; /* the pieces on its sides (N E S W), -1 */
+ /* the game's spacing, from its parent on */
+ uint8_t since_turn, since_obstacle, back_to_back, since_coins, coin_count, since_bonus;
+ uint8_t coin, coin_kind, coins; /* how its coins lie (COIN_*), which (1 yellow, 2 red, 3 blue), those still there */
+ uint8_t item, skipped_item;
+ uint8_t scenery; /* 1 a jungle tree left, 2 right, 4 a tall one, 8 a pillar */
+ uint8_t turned;
+ float y; /* its level's height */
+} Tile;
+
+extern Tile tiles[NTILES];
+extern int path_root; /* the piece under the runner */
+
+/* the game's pacing (GameController's HandlePacing): by distance run, the time since the last power-up */
+void path_pace(float dist, float since_power, float dd);
+void path_start(void); /* the temple, and the path from it */
+void path_advance(int to); /* the runner is on the piece next to the root: the rest pruned, laid on */
+int path_at(float x, float z); /* the piece at a point: the root or one next to it (-1: none) */
+bool path_ground(const Tile *t, float x, float z); /* inside the piece's ground */
+bool path_opens(const Tile *t, int side);
+bool path_is_turn(const Tile *t);
+bool path_is_straight(const Tile *t); /* a plain straight piece (no obstacle) */
+int path_next(int i, int d); /* the piece on that side (-1) */
+/* the obstacle the runner's step from (x0, z0) to (x1, z1) runs into (FO_* | 8, 0: none); its feet at y */
+int path_hit(const Tile *t, float x0, float z0, float x1, float z1, float y, bool sliding);
+bool path_coin_pos(const Tile *t, int k, float *x, float *y, float *z);
+static inline float path_cx(const Tile *t) { return t->gx * TILE; }
+static inline float path_cz(const Tile *t) { return t->gz * TILE; }
+#endif
diff --git a/games/templerun/src/scene.c b/games/templerun/src/scene.c
index 6e41e88a..f80278b1 100644
--- a/games/templerun/src/scene.c
+++ b/games/templerun/src/scene.c
@@ -79,34 +79,29 @@ void scene_mesh(int m, float ox, float oy, float oz, float yaw, int alpha) {
}
}
-static int path_mesh(const Tile *t) {
- static const uint8_t base[TH_COUNT] = {M_TEMPLE_STRAIGHT, M_PLANK_STRAIGHT, M_CLIFF_STRAIGHT};
- return base[t->theme] + 2 * t->kind; /* (data.c: each kind, then its far version) */
-}
-
static void draw_tile(const Tile *t, bool ahead) {
- float x = game_tile_cx(t), z = game_tile_cz(t), yaw = dir_yaw(t->dir);
+ float x = path_cx(t), z = path_cz(t), yaw = dir_yaw(t->dir);
float dx = x - cx_, dz = z - cz_;
if (dx * cs + dz * cc < -60 || dx * dx + dz * dz > (VIEW + 60) * (VIEW + 60)) return;
- scene_mesh(path_mesh(t), x, t->y, z, yaw, 255);
+ /* the piece: the game's prefab, laid unturned (its far version: data.c's next block) */
+ if (t->mesh >= 0) scene_mesh(t->mesh, x, 0, z, 0, 255);
/* the cliffs' rock wall: only along the way the runner goes (it would stand in the camera's way) */
- if (t->theme == TH_CLIFF && t->kind <= PK_HOLE_LONG && ahead && t->dir == pl.dir) scene_mesh(M_CLIFF_WALL, x, t->y, z, yaw, 255);
+ if (t->level == TH_CLIFF && path_is_straight(t) && ahead && t->dir == pl.dir) scene_mesh(M_CLIFF_WALL, x, t->y, z, yaw, 255);
int d = t->dir;
float rx = (float)(d == 0 ? 1 : d == 2 ? -1 : 0), rz = (float)(d == 1 ? -1 : d == 3 ? 1 : 0);
float fx = -rz, fz = rx;
if (t->scenery & 1) scene_mesh(t->scenery & 4 ? M_JUNGLE_TALL : M_JUNGLE_TREE, x - rx * 27 + fx * 8, t->y, z - rz * 27 + fz * 8, yaw, 255);
if (t->scenery & 2) scene_mesh(t->scenery & 4 ? M_JUNGLE_TREE : M_JUNGLE_TALL, x + rx * 27 - fx * 10, t->y, z + rz * 27 - fz * 10, yaw, 255);
if (t->scenery & 8) scene_mesh(M_PILLAR, x - rx * 15 + fx * 18, t->y, z - rz * 15 + fz * 18, yaw, 255);
- if (t->ob) {
- static const uint8_t ob[5] = {0, M_ROOT_LOW, M_TREE_JUMP, M_BRANCH_SLIDE, M_FIRE0};
- int m = ob[t->ob];
- if (t->ob == OB_FIRE) m += ((int)(t_anim * 8)) & 3;
- scene_mesh(m, x, t->y, z, yaw, 255);
+ if (t->obst == OB_FLAME) {
+ /* the fire across the flame tower (a vertical piece's runs along x) */
+ bool v = t->type == PT_FLAME_V;
+ scene_mesh(M_FIRE0 + (((int)(t_anim * 8)) & 3), x, t->y, z, v ? 0 : PI / 2, 255);
}
static const uint8_t coin[4] = {M_COIN_Y, M_COIN_Y, M_COIN_R, M_COIN_B};
for (int k = 0; k < 5; k++) {
float px, py, pz;
- if (game_coin_pos(t, k, &px, &py, &pz)) scene_mesh(coin[t->coin_kind & 3], px, py, pz, t_anim * 4.5f + (float)k, 255);
+ if (path_coin_pos(t, k, &px, &py, &pz)) scene_mesh(coin[t->coin_kind & 3], px, py, pz, t_anim * 4.5f + (float)k, 255);
}
if (t->item) {
static const uint8_t item[5] = {0, M_COIN_BONUS, M_INVISIBILITY, M_MAGNET, M_BOOST};
@@ -176,11 +171,13 @@ void scene_draw(r_band_fn overlay, bool on_title) {
r_camera(0, 0, 0, pitch, 205, 160, 120);
float sx, sy;
sky_rows(r_project((V3){0, 0, 600}, &sx, &sy) ? (int)sy : 0);
- for (int i = 0; i < path_count; i++) draw_tile(tile_at(i), i >= pl.tile);
- if (stub_on)
- for (int s = 0; s < 2; s++)
- for (int i = 0; i < NSTUB; i++) draw_tile(&stub[s][i], false);
- scene_mesh(M_TEMPLE, 0, 0, 0, 0, 255);
+ /* the pieces: the one under the runner and those ahead (the one behind it too, for the camera) */
+ for (int i = 0; i < NTILES; i++)
+ if (tiles[i].alive) {
+ const Tile *t = &tiles[i];
+ float a = (path_cx(t) - pl.x) * (float)(pl.dir == 1 ? 1 : pl.dir == 3 ? -1 : 0) + (path_cz(t) - pl.z) * (float)(pl.dir == 0 ? 1 : pl.dir == 2 ? -1 : 0);
+ draw_tile(t, a > -30);
+ }
for (int f = 0; f < NFLY; f++)
if (fly[f].on) scene_mesh(fly[f].kind == 3 ? M_COIN_B : fly[f].kind == 2 ? M_COIN_R : M_COIN_Y, fly[f].x, fly[f].y - 3, fly[f].z, t_anim * 6, 255);
/* the runner's shadow on the floor */
diff --git a/games/templerun/tests/check.py b/games/templerun/tests/check.py
index 66b966af..4f99a80f 100644
--- a/games/templerun/tests/check.py
+++ b/games/templerun/tests/check.py
@@ -2,7 +2,8 @@
"""Plays Temple Run on a computer (tests/play.c, built with the sanitizers) and checks it:
- a first start shows how to play, then the title; Home saves (templerun.sav and its copy, templerun_saves.py);
-- runs played by the bot on many seeds: corners turned, obstacles jumped and slid under, the score adds up;
+- runs played by the bot on many seeds, on the game's own path: corners turned, gaps jumped, steps up a level jumped,
+ roots and trunks jumped, branches and fire slid under, narrow paths leaned along; the score adds up;
- a missed corner is a fall; a stumble in the first seconds, or two close together, and they catch you;
- long runs where nothing hurts, with every power-up: minutes of path, no fault;
- the store: upgrades and things to use bought, coins taken, all kept, the upgrade objectives met;
@@ -24,7 +25,7 @@ PLAY = sys.argv[1] if len(sys.argv) > 1 else "build/play"
FMT = "<3I" + "6I" + "5BBBx" + "3HH" + "2I"
FIELDS = ["magic", "version", "size", "coins", "best", "best_dist", "runs", "life_coins", "life_dist",
"u0", "u1", "u2", "u3", "u4", "help", "mult", "wings", "headstarts", "megas", "pad", "done0", "done1"]
-FALL, TREE, BRANCH, FIRE, CAUGHT = 1, 2, 3, 4, 5
+FALL, TREE, BRANCH, FIRE, CAUGHT, LEDGE, TANGLE = 1, 2, 3, 4, 5, 6, 7
failed = []
@@ -90,10 +91,10 @@ def bot_runs(d):
def missed_corner(d):
- # nothing pressed and nothing hurts but the path's edge: the first corner (or gap) is a fall
+ # nothing pressed, plain pieces up to the first corner: the runner runs off it and falls
for seed in (1, 2, 3):
fresh(d)
- st = play(d, "--seed", str(seed), "--invis", "--frames", "2400", "--keys", "30:ok,90:ok")
+ st = play(d, "--seed", str(seed), "--plain", "100", "--frames", "2400", "--keys", "30:ok,90:ok")
assert st["dead"] == 1 and st["death"] == FALL and st["turns"] == 0, (seed, st)
diff --git a/games/templerun/tests/play.c b/games/templerun/tests/play.c
index c0a4f8bc..75c2a9cb 100644
--- a/games/templerun/tests/play.c
+++ b/games/templerun/tests/play.c
@@ -10,13 +10,15 @@
* (Home never). --god: nothing hurts (invisible, and the wings always on). --up N: every upgrade at level N;
* --use N: N of each thing to use. Screenshots are DIR/shot_<frame>.ppm; --raw keeps frames FROM..TO as raw
* RGB565 files for tools/record.py --frames. --invis: always invisible (obstacles pass, gaps and corners don't).
- * --root F: at frame F the next tiles are plain (up to a corner) and the next one has a root across it; --calm F:
- * at frame F the last stumble is long ago. */
+ * --root F: at frame F the next pieces are plain (up to a corner) and the next one has a root across it; --calm F:
+ * at frame F the last stumble is long ago; --plain F: from frame F on, the pieces ahead are plain (up to a corner).
+ * --trace F prints the runner and the pieces under and ahead of it from frame F on. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "../src/app.h"
+#include "../src/data.h"
#include "../src/game.h"
#include "../src/r3d.h"
#include "../src/save.h"
@@ -58,59 +60,114 @@ static void parse_keys(const char *spec) {
/* ---------------------------------------------------------------- the bot */
static const int DX[4] = {0, 1, 0, -1}, DZ[4] = {1, 0, -1, 0};
+/* ground at a point, on any piece laid */
+static bool ground_at(float x, float z) {
+ int gx = (int)(x / TILE + (x >= 0 ? 0.5f : -0.5f)), gz = (int)(z / TILE + (z >= 0 ? 0.5f : -0.5f));
+ for (int i = 0; i < NTILES; i++)
+ if (tiles[i].alive && tiles[i].gx == gx && tiles[i].gz == gz && path_ground(&tiles[i], x, z)) return true;
+ return false;
+}
+
+/* how far ahead the ground goes on, at lean l */
+static float ground_ahead(float l, float upto) {
+ int d = pl.dir;
+ float fx = (float)DX[d], fz = (float)DZ[d], rx = fz, rz = -fx;
+ const Tile *t = &tiles[path_root];
+ float s = (pl.x - path_cx(t)) * rx + (pl.z - path_cz(t)) * rz;
+ for (float a = 1; a <= upto; a += 2)
+ if (!ground_at(pl.x + fx * a + rx * (l - s), pl.z + fz * a + rz * (l - s))) return a;
+ return upto + 1;
+}
+
static uint32_t bot(void) {
- static int wait, side;
+ static int wait, at_gx = 1 << 20, at_gz, side;
if (pl.dead) return 0;
uint32_t k = 0;
- float fx = (float)DX[pl.dir], fz = (float)DZ[pl.dir];
- /* lean along narrow paths (and toward coins off the middle) */
- for (int i = pl.tile; i < path_count && i <= pl.tile + 1; i++) {
- const Tile *t = tile_at(i);
- if (t->dir != pl.dir) break;
- if (t->kind == PK_NARROW_L) k |= K_LEAN_L;
- if (t->kind == PK_NARROW_R) k |= K_LEAN_R;
- if (!k && i == pl.tile && t->coins && (t->coin == COIN_LEFT || t->coin == COIN_RIGHT)) k |= t->coin == COIN_LEFT ? K_LEAN_L : K_LEAN_R;
+ int d = pl.dir;
+ float fx = (float)DX[d], fz = (float)DZ[d];
+ /* lean where the ground goes on farthest (narrow paths) */
+ bool narrow = tiles[path_root].obst == OB_NARROW || (path_next(path_root, d) >= 0 && tiles[path_next(path_root, d)].obst == OB_NARROW);
+ if (narrow) {
+ float g0 = ground_ahead(0, 60), gl = ground_ahead(-6, 60), gr = ground_ahead(6, 60);
+ if (g0 < 50 && (gl > g0 + 4 || gr > g0 + 4)) k |= gl >= gr ? K_LEAN_L : K_LEAN_R;
}
if (wait > 0) {
wait--;
return k;
}
- for (int i = pl.tile; i < path_count && i <= pl.tile + 3; i++) {
- const Tile *t = tile_at(i);
- float d = (game_tile_cx(t) - pl.x) * fx + (game_tile_cz(t) - pl.z) * fz;
- if (t->dir != pl.dir || d < -4) continue;
- if (t->kind == PK_CORNER_L || t->kind == PK_CORNER_R || t->kind == PK_T) {
- if (d < pl.v * 0.4f && !(t->hit & 2)) {
- side = t->kind == PK_CORNER_L ? -1 : t->kind == PK_CORNER_R ? 1 : (side ? side : 1);
- wait = 10;
- return k | (side < 0 ? K_LEFT : K_RIGHT);
+ /* corners and junctions: turn where the path goes on (straight on, if it does) */
+ for (int i = path_root, n = 0; i >= 0 && n < 3; i = path_next(i, d), n++) {
+ const Tile *t = &tiles[i];
+ if (!path_is_turn(t) || t->turned) continue;
+ float a = (path_cx(t) - pl.x) * fx + (path_cz(t) - pl.z) * fz;
+ if (a > pl.v * 0.4f || a < -6) break;
+ if (path_opens(t, d)) break;
+ bool l = path_opens(t, (d + 3) & 3), r = path_opens(t, (d + 1) & 3);
+ if (at_gx != t->gx || at_gz != t->gz) at_gx = t->gx, at_gz = t->gz, side = l && r ? (rand() & 1 ? 1 : -1) : l ? -1 : 1;
+ wait = 10;
+ return k | (side < 0 ? K_LEFT : K_RIGHT);
+ }
+ /* obstacles: jump the roots and trunks, slide under branches and fire */
+ for (int i = path_root, n = 0; i >= 0 && n < 2; i = path_next(i, d), n++) {
+ const Tile *t = &tiles[i];
+ for (int o = 0; o < floor_nobstacles; o++) {
+ const FloorObstacle *ob = &floor_obstacles[o];
+ if (ob->piece != t->mesh || ob->height <= t->y + 0.01f) continue;
+ float lo = 1e9f, hi = -1e9f;
+ for (int p = 0; p < ob->n; p++) {
+ float a = (path_cx(t) + ob->p[p][0] * 0.25f - pl.x) * fx + (path_cz(t) + ob->p[p][1] * 0.25f - pl.z) * fz;
+ lo = a < lo ? a : lo, hi = a > hi ? a : hi;
+ }
+ if (hi < 0) continue;
+ if (ob->flags & FO_SLIDE) {
+ float len = pl.v * 0.007f > 0.75f ? 0.75f : pl.v * 0.007f;
+ if (lo < pl.v * len * 0.5f && !pl.sliding && !pl.jumping) {
+ wait = 6;
+ return k | K_DOWN;
+ }
+ } else if (lo < 4 + pl.v * 0.06f && pl.on_ground && !pl.stumbling) {
+ wait = 12;
+ return k | K_UP;
}
- break;
}
- /* a jump just before it: in the air long enough for two in a row */
- float edge = t->kind == PK_HOLE ? 10 : t->kind == PK_HOLE_LONG ? 17 : t->ob == OB_TREE ? 3.6f : 3.2f;
- bool jumpy = t->ob == OB_ROOT || t->ob == OB_TREE || t->ob == OB_FIRE || t->kind == PK_HOLE || t->kind == PK_HOLE_LONG;
- if (jumpy && d - edge < 4 + pl.v * 0.06f && d - edge > -2 && pl.on_ground && !pl.stumbling) {
+ }
+ /* gaps, and steps up: jump at the edge */
+ float lean = (k & K_LEAN_L) ? -6 : (k & K_LEAN_R) ? 6 : 0;
+ float edge = ground_ahead(lean, 40);
+ if (edge < 4 + pl.v * 0.05f && pl.on_ground && !pl.stumbling) {
+ int next = path_next(path_root, d);
+ const Tile *t = &tiles[path_root];
+ bool corner = path_is_turn(t) && !path_opens(t, d);
+ if (!corner && !(next >= 0 && tiles[next].y < t->y - 1 && tiles[next].obst != OB_HOLE)) {
wait = 12;
return k | K_UP;
}
- if (t->ob == OB_BRANCH && !pl.sliding) {
- float len = pl.v * 0.007f;
- if (len > 0.75f) len = 0.75f;
- if (d < pl.v * len * 0.5f + 3 && d > 4) {
- wait = 6;
- return k | K_DOWN;
- }
- }
}
return k;
}
+/* the test's own path: plain straight pieces ahead (up to a corner), and a root across the next one */
+static void plain_ahead(bool root) {
+ int d = pl.dir, i = path_next(path_root, d);
+ for (int n = 0; i >= 0 && n < 8; i = path_next(i, d), n++) {
+ Tile *t = &tiles[i];
+ if (path_is_turn(t) || t->obst == OB_LEVEL || t->level != TH_TEMPLE) break;
+ bool v = d == D_N || d == D_S;
+ t->type = v ? PT_STRAIGHT_V : PT_STRAIGHT_H;
+ t->mesh = v ? M_templeStraightVert : M_templeStraightHorz;
+ t->obst = OB_NONE, t->has_obstacles = 0;
+ if (root && n == 0) {
+ t->mesh = v ? M_templeStraightTreeTripLeftVert : M_templeStraightTreeTripUpHorz;
+ t->obst = OB_STUMBLE, t->has_obstacles = 1;
+ }
+ }
+}
+
int main(int argc, char **argv) {
int frames = 600, draw_every = 1, bot_from = -1, fuzz_from = -1, coins = -1, up = -1, use = -1, raw_from = 0, raw_to = -1;
const char *shots = "", *out = "build/shots", *saves = "build/host-saves", *raw = NULL;
bool stats = false, all = false, god = false, invis = false;
- int roots[8], nroots = 0, calm = -1;
+ int roots[8], nroots = 0, calm = -1, trace = -1, plain = -1;
static char rawdir[512];
for (int i = 1; i < argc; i++) {
const char *a = argv[i], *v = i + 1 < argc ? argv[i + 1] : "";
@@ -135,6 +192,8 @@ int main(int argc, char **argv) {
else if (!strcmp(a, "--invis")) invis = true;
else if (!strcmp(a, "--root") && nroots < 8) roots[nroots++] = atoi(v), i++;
else if (!strcmp(a, "--calm")) calm = atoi(v), i++;
+ else if (!strcmp(a, "--trace")) trace = atoi(v), i++;
+ else if (!strcmp(a, "--plain")) plain = atoi(v), i++;
else if (!strcmp(a, "--stats")) stats = true;
}
if (draw_every < 1) draw_every = 1;
@@ -171,26 +230,26 @@ int main(int argc, char **argv) {
}
if (f == calm) pl.stumble_timer = 10;
for (int i = 0; i < nroots; i++)
- if (f == roots[i]) {
- for (int j = pl.tile + 1; j < path_count && j <= pl.tile + 8; j++) {
- Tile *t = tile_at(j);
- if (t->kind == PK_CORNER_L || t->kind == PK_CORNER_R || t->kind == PK_T) break;
- if (t->kind != PK_STEP_UP && t->kind != PK_STEP_DOWN) t->kind = PK_STRAIGHT;
- t->ob = OB_NONE, t->hit = 0;
- }
- tile_at(pl.tile + 1)->ob = OB_ROOT;
- }
+ if (f == roots[i]) plain_ahead(true);
+ if (plain >= 0 && f >= plain && f % 20 == 0) plain_ahead(false);
if (invis && pl.invis < 1) pl.invis = 1;
if (god) {
if (pl.invis < 1) pl.invis = 1;
pl.wings = 30;
}
+ if (trace >= 0 && f >= trace && f % 3 == 0) {
+ const Tile *t = &tiles[path_root];
+ int n = path_next(path_root, pl.dir);
+ printf("%d: wish %d dir %d x %.1f z %.1f y %.1f ground %.1f over %d fall %d jump %d v %.0f | root %d type %d level %d mesh %d (%d,%d) | next type %d level %d mesh %d\n", f, pl.turn_wish, pl.dir, pl.x, pl.z, pl.y,
+ pl.ground, pl.over, pl.falling, pl.jumping, pl.v, path_root, t->type, t->level, t->mesh, t->gx, t->gz, n >= 0 ? tiles[n].type : -1,
+ n >= 0 ? tiles[n].level : -1, n >= 0 ? tiles[n].mesh : -1);
+ }
bool was_dead = pl.dead;
app_step(k, k & ~prev);
prev = k;
if (pl.dead && !was_dead) {
deaths++, last_death = pl.death;
- if (stats) printf("dead at frame %d: death %d dist %.0f tile kind %d ob %d feet %.1f v %.0f vy %.0f jumping %d ground %d\n", f, pl.death, run.dist, tile_at(pl.tile)->kind, tile_at(pl.tile)->ob, pl.y - tile_at(pl.tile)->y, pl.v, pl.vy, pl.jumping, pl.on_ground);
+ if (stats) printf("dead at frame %d: death %d dist %.0f piece %d type %d obstacle %d feet %.1f v %.0f jumping %d\n", f, pl.death, run.dist, tiles[path_root].mesh, tiles[path_root].type, tiles[path_root].obst, pl.y - pl.ground, pl.v, pl.jumping);
}
host_time += (f % 3 == 2) ? 17 : 16;
char name[64], list[8192];
diff --git a/games/templerun/tools/floor.py b/games/templerun/tools/floor.py
new file mode 100644
index 00000000..162755ae
--- /dev/null
+++ b/games/templerun/tools/floor.py
@@ -0,0 +1,169 @@
+#!/usr/bin/env python3
+"""Makes src/floor.c: where the runner has ground under it on each of the game's path pieces, and their obstacles.
+
+The game decides both with the regions its prefabs carry (Region2D: polygons in the piece's own space). The runner
+is over ground while its feet are inside one of the piece's ground regions; the floor's height is the piece's
+level (the game's GetPathHeight), so only where it is matters. An obstacle is a region with an Obstacle on it: the
+runner hits it when its step crosses the region's edge, unless it jumps over (its feet as high as the region's
+height) or slides under, as the obstacle allows; it kills or makes the runner stumble.
+
+This reads them from the game's Android package (tools/apk.py's Package reads the prefabs) and samples the ground
+every 2 units across the 60 x 60 tile: a bit a 2 x 2 cell, set when at least half of it is ground, 30 rows of 30.
+The obstacles keep their polygons. Each prefab's mesh top is compared with its ground, as a look at what the game
+draws there (printed).
+
+Usage: floor.py DATA [SRC] (DATA: the package's assets/bin/Data, unzipped; nothing in it is run)"""
+import os
+import struct
+import sys
+
+import numpy as np
+
+HERE = os.path.dirname(os.path.abspath(__file__))
+sys.path.insert(0, HERE)
+sys.path.append(os.path.join(HERE, "..", "..", "subway", "tools")) # (its unity.py; its apk.py is its own)
+import apk # noqa: E402
+import pieces # noqa: E402
+import unity # noqa: E402
+
+N, STEP = 30, 2.0 # cells a row, their size (-30 .. 30)
+
+
+def scripts(pkg):
+ ids = {o.read().m_ClassName: o.path_id for o in pkg.env.objects if o.type.name == "MonoScript"}
+ return ids["Region2D"], ids["Obstacle"]
+
+
+def regions(pkg, name, script, obstacle_script):
+ """the prefab's regions: (polygon (x, z) in its own space, its height, the obstacle's flags (must jump over, must
+ slide under, kills) when it is one, else None); all of them are ground"""
+ out = []
+ root = [c for c in pkg.comps(pkg.prefabs[name]) if c.object_reader.type.name == "Transform"][0]
+
+ def walk(tr, M, depth):
+ lp, lr, ls = tr.m_LocalPosition, tr.m_LocalRotation, tr.m_LocalScale
+ W = M @ unity.trs((lp.x, lp.y, lp.z), (lr.x, lr.y, lr.z, lr.w), (ls.x, ls.y, ls.z)) if depth else np.eye(4)
+ flags, found = None, []
+ for c in tr.m_GameObject.read().m_Component:
+ p = c[1] if isinstance(c, (list, tuple)) else getattr(c, "component", c)
+ r = p.deref()
+ if r.type.name != "MonoBehaviour":
+ continue
+ raw = r.get_raw_data()
+ sid = struct.unpack_from("<i", raw, 16)[0]
+ # m_GameObject, m_Enabled, m_Script, m_Name, then the script's fields
+ nl = struct.unpack_from("<i", raw, 20)[0]
+ off = 24 + ((nl + 3) & ~3)
+ if sid == obstacle_script:
+ flags = tuple(raw[off:off + 12]) # (three bools, 4 bytes each)
+ elif sid == script:
+ n = struct.unpack_from("<i", raw, off)[0] # Points (Vector2), TestPoint, Height
+ pts = np.array(struct.unpack_from(f"<{2 * n}f", raw, off + 4), np.float64).reshape(n, 2)
+ height = struct.unpack_from("<f", raw, off + 4 + 8 * n + 8)[0]
+ xyz = np.c_[pts[:, 0], np.zeros(n), pts[:, 1], np.ones(n)] @ W.T
+ found.append((xyz[:, [0, 2]], height))
+ # (the game: every region is ground, and an Obstacle is the first region on its object)
+ out.extend((poly, h, flags if k == 0 else None) for k, (poly, h) in enumerate(found))
+ for ch in tr.m_Children:
+ walk(ch.read(), W, depth + 1)
+ walk(root, np.eye(4), 0)
+ return out
+
+
+def inside(poly, x, z):
+ """the game's test: a ray across, counting crossings"""
+ c = np.zeros(x.shape, bool)
+ j = len(poly) - 1
+ for i in range(len(poly)):
+ xi, zi = poly[i]
+ xj, zj = poly[j]
+ hit = ((zi > z) != (zj > z)) & (x < (xj - xi) * (z - zi) / np.where(zj - zi == 0, 1e-9, zj - zi) + xi)
+ c ^= hit
+ j = i
+ return c
+
+
+def top_of(pkg, name, x, z):
+ """the highest upward face of the prefab over each point (nan where there is none)"""
+ h = np.full(x.shape, np.nan)
+ for pos, _, _, tris, _ in pkg.meshes(name):
+ for t in tris:
+ a, b, c = pos[t[0]], pos[t[1]], pos[t[2]]
+ n = np.cross(b - a, c - a)
+ if abs(n[1]) < 0.7 * np.linalg.norm(n):
+ continue
+ d = (b[2] - c[2]) * (a[0] - c[0]) + (c[0] - b[0]) * (a[2] - c[2])
+ if abs(d) < 1e-9:
+ continue
+ l1 = ((b[2] - c[2]) * (x - c[0]) + (c[0] - b[0]) * (z - c[2])) / d
+ l2 = ((c[2] - a[2]) * (x - c[0]) + (a[0] - c[0]) * (z - c[2])) / d
+ l3 = 1 - l1 - l2
+ m = (l1 >= -1e-6) & (l2 >= -1e-6) & (l3 >= -1e-6)
+ y = l1 * a[1] + l2 * b[1] + l3 * c[1]
+ h = np.where(m & (np.isnan(h) | (y > h)), y, h)
+ return h
+
+
+def main(data, src):
+ pkg = apk.Package(data)
+ script, obstacle_script = scripts(pkg)
+ centre = -30 + STEP / 2 + np.arange(N) * STEP
+ sub = [(-0.5, -0.5), (0.5, -0.5), (-0.5, 0.5), (0.5, 0.5)]
+ masks, index, obstacles, report = [], [], [], []
+ for p, name in enumerate(pieces.FLOOR_PREFABS):
+ rs = regions(pkg, name, script, obstacle_script)
+ count = np.zeros((N, N), int)
+ for dx, dz in sub:
+ x, z = np.meshgrid(centre + dx, centre + dz)
+ m = np.zeros(x.shape, bool)
+ for poly, h, fl in rs:
+ m |= inside(poly, x, z)
+ count += m
+ m = count >= 2
+ rows = tuple(sum(1 << k for k in range(N) if m[r, k]) for r in range(N))
+ if not any(rows):
+ index.append(None)
+ else:
+ if rows not in masks:
+ masks.append(rows)
+ index.append(masks.index(rows))
+ for poly, h, fl in rs:
+ if fl is not None:
+ flags = (1 if fl[0] else 0) | (2 if fl[4] else 0) | (4 if fl[8] else 0)
+ assert len(poly) <= 8, name
+ obstacles.append((p, flags, h, [(round(a * 4), round(b * 4)) for a, b in poly]))
+ x, z = np.meshgrid(centre, centre)
+ top = top_of(pkg, name, x, z)
+ level = [h for poly, h, fl in rs if fl is None] or [h for poly, h, fl in rs]
+ walk = np.isfinite(top) & (np.abs(top - (level[0] if level else 0)) < 3)
+ report.append(f"{name:40s} {m.sum():4d} ground cells, the mesh has a walkway at {(m & walk).sum():4d} of them, "
+ f"{(~m & walk).sum():4d} more; {sum(fl is not None for _, _, fl in rs)} obstacles")
+ c = ["/* Made by tools/floor.py from Temple Run's own Android package: each path piece's ground and obstacles, from",
+ " * the regions its prefab carries (Region2D). Ground: a bit a 2 x 2 cell, row r from z = -30 + 2 r, bit k from",
+ " * x = -30 + 2 k. Obstacles: their polygons (units x 4), the height to jump over (the game's, absolute). */",
+ '#include "floor.h"', ""]
+ for i, rows in enumerate(masks):
+ c.append(f"static const uint32_t g{i}[FLOOR_CELLS] = {{{', '.join(f'0x{v:08X}' for v in rows)}}};")
+ c += ["", f"const uint32_t *const floor_cells[FLOOR_PIECES] = {{"]
+ for name, i in zip(pieces.FLOOR_PREFABS, index):
+ c.append(f" {'NULL' if i is None else f'g{i}'}, /* {name} */")
+ c += ["};", "", f"const FloorObstacle floor_obstacles[{len(obstacles)}] = {{"]
+ for p, flags, h, pts in obstacles:
+ pp = ", ".join(f"{{{a}, {b}}}" for a, b in pts)
+ c.append(f" {{{p}, {flags}, {len(pts)}, 0, {h:.2f}f, {{{pp}}}}}, /* {pieces.FLOOR_PREFABS[p]} */")
+ c += ["};", f"const int floor_nobstacles = {len(obstacles)};", ""]
+ open(os.path.join(src, "floor.c"), "w").write("\n".join(c))
+ h = ["/* Temple Run: the path pieces' ground and obstacles (floor.c, made by tools/floor.py). */", "#ifndef TR_FLOOR_H",
+ "#define TR_FLOOR_H", "#include <stddef.h>", "#include <stdint.h>", "",
+ f"#define FLOOR_PIECES {len(pieces.FLOOR_PREFABS)} /* (data.h's first meshes, in the same order) */",
+ f"#define FLOOR_CELLS {N}", "enum { FO_JUMP = 1, FO_SLIDE = 2, FO_KILL = 4 }; /* jumped over, slid under; kills */",
+ "typedef struct {", " uint8_t piece, flags, n, pad;", " float height;", " int16_t p[8][2];", "} FloorObstacle;",
+ "/* a piece's ground cells (NULL: none) */", "extern const uint32_t *const floor_cells[FLOOR_PIECES];",
+ "extern const FloorObstacle floor_obstacles[];", "extern const int floor_nobstacles;", "#endif", ""]
+ open(os.path.join(src, "floor.h"), "w").write("\n".join(h))
+ print("\n".join(report))
+ print(f"{len(masks)} ground tables, {len(obstacles)} obstacles")
+
+
+if __name__ == "__main__":
+ main(sys.argv[1], sys.argv[2] if len(sys.argv) > 2 else os.path.join(HERE, "..", "src"))
diff --git a/games/templerun/tools/models.py b/games/templerun/tools/models.py
index 511371cf..e627c82b 100644
--- a/games/templerun/tools/models.py
+++ b/games/templerun/tools/models.py
@@ -2,16 +2,22 @@
"""Makes src/data.c and src/data.h: every model Temple Run draws, as a table of meshes (src/models.h).
These are plain stand-in models: boxes and wedges in the game's colours for the runner, the pursuers, the
-path pieces of its three places (the temple, the plank bridges, the cliffs), the roots, trees, branches and
-fire, the coins and power-ups, the jungle beside the path. Each model is a mesh by number (data.h), its
-far version a second, simpler mesh. The game only draws meshes by number, so the art can be made again by
-another tool writing the same table, without touching the game.
+coins and power-ups and the jungle beside the path. The path pieces are named after the game's prefabs
+(tools/pieces.py: M_templeStraightVert...), and their stand-ins are made from where each one has ground and
+obstacles (src/floor.c, tools/floor.py): flat tops, sides going down, a box for each obstacle. Each model is a
+mesh by number (data.h), its far version a second, simpler mesh. The game only draws meshes by number, so the
+art can be made again by another tool writing the same table, without touching the game.
Units are the game's (a path tile is 60 across), stored x 4. Usage: models.py src"""
import math
+import os
+import re
import sys
from pathlib import Path
+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
+import pieces # noqa: E402
+
Q = 4 # stored units a game unit
MODELS = [] # (name, faces, far name or None)
@@ -19,7 +25,6 @@ MODELS = [] # (name, faces, far name or None)
STONE = dict(top=0xA8977A, top2=0x9C8B6F, side=0x76684F, curb=0x8B7B60, base=0x5F5545)
PLANK = dict(top=0x8D5E35, top2=0x7B5030, side=0x5A3B20, curb=0x6E4A2A, base=0x4A321C)
CLIFF = dict(top=0x928A7C, top2=0x857D70, side=0x6C655A, curb=0x7B7366, base=0x585248)
-THEMES = [("TEMPLE", STONE), ("PLANK", PLANK), ("CLIFF", CLIFF)]
SHIRT, TROUSERS, SKIN, HAIR, BOOTS, BELT = 0x5B7F99, 0x6F5B42, 0xD8A476, 0x3B2A1C, 0x3A2E24, 0x2E2620
FUR, FUR2, FACE, EYE = 0x3E3631, 0x2F2925, 0x8C7262, 0xF0482A
ROOT, TRUNK, BARK, LEAF, LEAF2 = 0x5B3F24, 0x6A4A2D, 0x55391F, 0x3A6B2C, 0x2F5A26
@@ -180,170 +185,137 @@ def pursuer(phase):
# ---------------------------------------------------------------- path pieces
W = 10.0 # half the walkway's width
-DEPTH = -42.0 # how far the stone goes down into the haze
-
-
-def floor(x0, z0, x1, z1, c, stripes=True, y=0.0):
- """a walkway's top, in stripes across the run (they show the speed)"""
+LEVEL = {"temple": 0.0, "plank": -15.0, "cliff": 15.0} # (the game's GetPathHeight; prefabs are built at it)
+
+
+def read_floor(src):
+ """src/floor.c (tools/floor.py): each prefab's ground cells (30 rows of 30 bits, or None) and its obstacles
+ (flags, height, polygon)"""
+ text = Path(src, "floor.c").read_text()
+ tables = {m.group(1): [int(v, 16) for v in m.group(2).split(",")]
+ for m in re.finditer(r"static const uint32_t (g\d+)\[FLOOR_CELLS\] = \{([^}]*)\};", text)}
+ cells = {}
+ for m in re.finditer(r"^ (NULL|g\d+), /\* (\w+) \*/", text, re.M):
+ cells[m.group(2)] = None if m.group(1) == "NULL" else tables[m.group(1)]
+ obstacles = {}
+ for m in re.finditer(r"^ \{(\d+), (\d+), (\d+), 0, (-?[\d.]+)f, \{(.*)\}\}, /\* (\w+) \*/", text, re.M):
+ pts = [(int(x) / 4, int(z) / 4) for x, z in re.findall(r"\{(-?\d+), (-?\d+)\}", m.group(5))]
+ obstacles.setdefault(m.group(6), []).append((int(m.group(2)), float(m.group(4)), pts))
+ return cells, obstacles
+
+
+def theme_of(name):
+ for t, c in (("plank", PLANK), ("cliff", CLIFF)):
+ if name.startswith(t):
+ return t, c
+ return "temple", STONE
+
+
+def ground(rows, c, depth, stripes=True):
+ """a stand-in for a piece's ground: the cells' tops (in stripes 10 units deep, to show the speed) and the sides
+ going down where the ground ends inside the tile"""
+ on = lambda r, k: 0 <= r < 30 and 0 <= k < 30 and rows[r] >> k & 1
out = []
- if not stripes:
- return [face([[x0, y, z0], [x1, y, z0], [x1, y, z1], [x0, y, z1]], c["top"], [0, 1, 0])]
- n = max(1, round(abs(z1 - z0) / 10)) if abs(z1 - z0) >= abs(x1 - x0) else max(1, round(abs(x1 - x0) / 10))
- along_z = abs(z1 - z0) >= abs(x1 - x0)
- for i in range(n):
- if along_z:
- a, b = z0 + (z1 - z0) * i / n, z0 + (z1 - z0) * (i + 1) / n
- pts = [[x0, y, a], [x1, y, a], [x1, y, b], [x0, y, b]]
- else:
- a, b = x0 + (x1 - x0) * i / n, x0 + (x1 - x0) * (i + 1) / n
- pts = [[a, y, z0], [b, y, z0], [b, y, z1], [a, y, z1]]
- out.append(face(pts, c["top"] if i % 2 == 0 else c["top2"], [0, 1, 0]))
+ band = 5 if stripes else 30
+ for b0 in range(0, 30, band):
+ # runs in each row of the band, merged down the band where they are the same
+ open_ = {}
+ for r in list(range(b0, min(30, b0 + band))) + [None]:
+ runs = set()
+ if r is not None:
+ k = 0
+ while k < 30:
+ if on(r, k):
+ k0 = k
+ while k < 30 and on(r, k):
+ k += 1
+ runs.add((k0, k))
+ k += 1
+ for run in list(open_):
+ if run not in runs:
+ r0 = open_.pop(run)
+ x0, x1, z0, z1 = -30 + 2 * run[0], -30 + 2 * run[1], -30 + 2 * r0, -30 + 2 * (r if r is not None else min(30, b0 + band))
+ col = c["top"] if (b0 // band) % 2 == 0 else c["top2"]
+ out.append(face([[x0, 0, z0], [x1, 0, z0], [x1, 0, z1], [x0, 0, z1]], col, [0, 1, 0]))
+ for run in runs:
+ open_.setdefault(run, r)
+ # the sides: along x where a row's ground ends, along z where a column's does (merged along the edge)
+ def sides(edge, n_out, horiz):
+ k = 0
+ while k < 30:
+ if edge(k):
+ k0 = k
+ while k < 30 and edge(k):
+ k += 1
+ yield k0, k
+ else:
+ k += 1
+ for j in range(30):
+ for side in (-1, 1):
+ # x edges: between columns j and j+side, along z
+ e = lambda r, j=j, side=side: on(r, j) and not on(r, j + side) and 0 <= j + side < 30
+ for r0, r1 in sides(e, None, False):
+ x = -30 + 2 * j + (2 if side > 0 else 0)
+ z0, z1 = -30 + 2 * r0, -30 + 2 * r1
+ out.append(face([[x, 0, z0], [x, 0, z1], [x, depth, z1], [x, depth, z0]], c["side"], [side, 0, 0]))
+ # z edges: between rows j and j+side, along x
+ e = lambda k, j=j, side=side: on(j, k) and not on(j + side, k) and 0 <= j + side < 30
+ for k0, k1 in sides(e, None, True):
+ z = -30 + 2 * j + (2 if side > 0 else 0)
+ x0, x1 = -30 + 2 * k0, -30 + 2 * k1
+ out.append(face([[x0, 0, z], [x1, 0, z], [x1, depth, z], [x0, depth, z]], c["side"], [0, 0, side]))
return out
-def wall(p0, p1, normal, c, y0=DEPTH, y1=0.0, rgb=None):
- """a side of the walkway going down from its edge, from p0 to p1 (x, z)"""
- pts = [[p0[0], y1, p0[1]], [p1[0], y1, p1[1]], [p1[0], y0, p1[1]], [p0[0], y0, p0[1]]]
- return [face(pts, rgb if rgb is not None else c["side"], [normal[0], 0, normal[1]])]
-
-
-def curb(p0, p1, inward, c, theme):
- """the low border along an edge: stone blocks in the temple, rails on the bridges, rock on the cliffs"""
- (x0, z0), (x1, z1) = p0, p1
- ix, iz = inward
- t = 1.6
- lo, hi = (min(x0, x1, x0 + ix * t), max(x0, x1, x0 + ix * t)), (min(z0, z1, z0 + iz * t), max(z0, z1, z0 + iz * t))
- if theme == "PLANK":
- out = []
- along = (x1 - x0, z1 - z0)
- n = 3
- for i in range(n + 1):
- px, pz = x0 + along[0] * i / n + ix * 0.6, z0 + along[1] * i / n + iz * 0.6
- out += box(px - 0.5, 0.0, pz - 0.5, px + 0.5, 4.5, pz + 0.5, c["curb"], skip="b")
- out += box(lo[0] + (0.3 if ix else 0), 3.6, lo[1] + (0.3 if iz else 0), hi[0] - (0.3 if ix else 0) if ix else hi[0],
- 4.0, hi[1] - (0.3 if iz else 0) if iz else hi[1], c["curb"], skip="b")
- return out
- h = 1.6 if theme == "TEMPLE" else 2.4
- return box(lo[0], 0.0, lo[1], hi[0], h, hi[1], c["curb"], skip="b")
-
-
-def piece(kind, c, theme):
- """the faces of one path tile (the run comes from -z)"""
+def obstacle_shapes(flags, h, pts):
+ """a stand-in for an obstacle region: roots and trunks to jump up to its height, a branch to slide under"""
+ xs, zs = [p[0] for p in pts], [p[1] for p in pts]
+ x0, x1, z0, z1 = min(xs), max(xs), min(zs), max(zs)
+ if flags & 1 and flags & 2:
+ return box(x0, 0.0, z0, x0 + 1.5, 9.0, z1, VENT) + box(x1 - 1.5, 0.0, z0, x1, 9.0, z1, VENT) # (the fire: scene.c)
+ if flags & 2: # slide under it
+ out = box(x0, 5.2, z0, x1, 7.6, z1, TRUNK, top=0x7B5A38)
+ return out + box(x0, 7.4, z0, x1, 9.8, z1, LEAF, top=LEAF2, skip="b")
+ if h <= 0:
+ return []
+ col, top = (ROOT, 0x6E4E2E) if h < 3 else (TRUNK, 0x7B5A38)
+ return box(x0, 0.0, z0, x1, max(h, 1.6), z1, col, top=top, skip="b")
+
+
+def path_piece(name, cells, obstacles, far=False):
+ theme, c = theme_of(name)
out = []
- if kind == "STRAIGHT":
- out += floor(-W, -30, W, 30, c)
- out += wall((-W, 30), (-W, -30), (-1, 0), c) + wall((W, -30), (W, 30), (1, 0), c)
- out += curb((-W, -30), (-W, 30), (1, 0), c, theme) + curb((W, -30), (W, 30), (-1, 0), c, theme)
- elif kind in ("HOLE", "HOLE_LONG"):
- g = 10 if kind == "HOLE" else 17
- for z0, z1 in ((-30, -g), (g, 30)):
- out += floor(-W, z0, W, z1, c, stripes=False)
- out += wall((-W, z1), (-W, z0), (-1, 0), c) + wall((W, z0), (W, z1), (1, 0), c)
- out += curb((-W, z0), (-W, z1), (1, 0), c, theme) + curb((W, z0), (W, z1), (-1, 0), c, theme)
- out += wall((-W, -g), (W, -g), (0, 1), c) + wall((W, g), (-W, g), (0, -1), c)
- elif kind in ("NARROW_L", "NARROW_R"):
- s = -1 if kind == "NARROW_L" else 1
- a, b = sorted((s * W, s * 2.0))
- out += floor(a, -30, b, 30, c)
- out += wall((a, 30), (a, -30), (-1, 0), c) + wall((b, -30), (b, 30), (1, 0), c)
- out += curb((s * W, -30), (s * W, 30), (-s, 0), c, theme)
- # the broken edge where the walkway fell away
- out += floor(-W, -30, W, -26, c, stripes=False) + floor(-W, 26, W, 30, c, stripes=False)
- out += wall((-s * W, -26), (s * 2.0, -26), (0, 1), c) + wall((s * 2.0, 26), (-s * W, 26), (0, -1), c)
- elif kind in ("CORNER_L", "CORNER_R"):
- s = 1 if kind == "CORNER_R" else -1
- out += floor(-W, -30, W, W, c)
- out += floor(min(s * W, s * 30), -W, max(s * W, s * 30), W, c)
- out += wall((-s * W, -30), (-s * W, W), (-s, 0), c) + wall((-s * W, W), (s * 30, W), (0, 1), c)
- out += wall((s * W, W - 2 * W), (s * W, -30), (s, 0), c) + wall((s * 30, -W), (s * W, -W), (0, -1), c)
- out += curb((-s * W, -30), (-s * W, W), (s, 0), c, theme) + curb((-s * W, W), (s * 30, W), (0, -1), c, theme)
- out += curb((s * W, -30), (s * W, -W), (-s, 0), c, theme) + curb((s * W, -W), (s * 30, -W), (0, 1), c, theme)
- elif kind == "T":
- out += floor(-W, -30, W, -W, c)
- out += floor(-30, -W, 30, W, c)
- out += wall((-30, W), (30, W), (0, 1), c)
- out += wall((-W, -W), (-W, -30), (-1, 0), c) + wall((W, -30), (W, -W), (1, 0), c)
- out += wall((-W, -W), (-30, -W), (0, -1), c) + wall((30, -W), (W, -W), (0, -1), c)
- out += curb((-30, W), (30, W), (0, -1), c, theme)
- out += curb((-W, -30), (-W, -W), (1, 0), c, theme) + curb((W, -30), (W, -W), (-1, 0), c, theme)
- out += curb((-30, -W), (-W, -W), (0, 1), c, theme) + curb((W, -W), (30, -W), (0, 1), c, theme)
- elif kind in ("STEP_UP", "STEP_DOWN"):
- # 15 units up or down over the tile, in five steps of 3 (the game's floor: game.c)
- up = kind == "STEP_UP"
- hs = [3.0 * (i + 1) if up else -3.0 * i for i in range(5)]
- for i in range(5):
- z0, z1, y = -30 + 12 * i, -18 + 12 * i, hs[i]
- out.append(face([[-W, y, z0], [W, y, z0], [W, y, z1], [-W, y, z1]], c["top"] if i % 2 == 0 else c["top2"], [0, 1, 0]))
- out += wall((-W, z1), (-W, z0), (-1, 0), c, y1=y) + wall((W, z0), (W, z1), (1, 0), c, y1=y)
- py = hs[i - 1] if i else (0.0 if up else None)
- if py is not None and y > py:
- out.append(face([[-W, py, z0], [W, py, z0], [W, y, z0], [-W, y, z0]], c["side"], [0, 0, -1]))
- return out
+ rows = cells.get(name)
+ level = LEVEL[theme]
+ if rows:
+ out = ground(rows, c, -40.0 if theme != "cliff" else -55.0, stripes=not far)
+ if not far:
+ for flags, h, pts in obstacles.get(name, []):
+ out += obstacle_shapes(flags, h - level, pts)
+ if name == "temple":
+ out += temple()
+ # (the game's prefabs are built at their level's height, and laid at 0)
+ return [([[q[0], q[1] + level, q[2]] for q in pts], rgb, n, two) for pts, rgb, n, two in out]
def cliff_face():
"""the rock wall rising on the cliff path's left"""
- out = [face([[-W - 5, 0, -30], [-W - 5, 0, 30], [-W - 9, 20, 30], [-W - 9, 20, -30]], 0x8A8274, [1, 0, 0])]
- out.append(face([[-W - 9, 20, -30], [-W - 9, 20, 30], [-W - 24, 20, 30], [-W - 24, 20, -30]], 0x56743A, [0, 1, 0]))
- return out
-
-
-def far_piece(kind, c):
- """far off: only the walkway's top and its sides"""
- full = {"STRAIGHT": [(-W, -30, W, 30)], "HOLE": [(-W, -30, W, -10), (-W, 10, W, 30)],
- "HOLE_LONG": [(-W, -30, W, -17), (-W, 17, W, 30)], "NARROW_L": [(-W, -30, -2, 30)],
- "NARROW_R": [(2, -30, W, 30)], "CORNER_L": [(-W, -30, W, W), (-30, -W, -W, W)],
- "CORNER_R": [(-W, -30, W, W), (W, -W, 30, W)], "T": [(-W, -30, W, -W), (-30, -W, 30, W)]}
- out = []
- for x0, z0, x1, z1 in full.get(kind, []):
- out += floor(x0, z0, x1, z1, c, stripes=False)
- if kind in ("STRAIGHT", "HOLE", "HOLE_LONG"):
- out += wall((-W, 30), (-W, -30), (-1, 0), c, y0=-24) + wall((W, -30), (W, 30), (1, 0), c, y0=-24)
- if kind in ("STEP_UP", "STEP_DOWN"):
- a, b = (3, 15) if kind == "STEP_UP" else (0, -12)
- out.append(face([[-W, a, -30], [W, a, -30], [W, b, 30], [-W, b, 30]], c["top"], [0, 1, 0]))
+ out = [face([[-11, 0, -30], [-11, 0, 30], [-15, 20, 30], [-15, 20, -30]], 0x8A8274, [1, 0, 0])]
+ out.append(face([[-15, 20, -30], [-15, 20, 30], [-30, 20, 30], [-30, 20, -30]], 0x56743A, [0, 1, 0]))
return out
# ---------------------------------------------------------------- obstacles, coins, power-ups, scenery
-def root_low():
- """a root across the path, low enough to run into and stumble (jump it)"""
- out = []
- for i, (x0, x1) in enumerate(((-W, -4), (-4.5, 3.5), (3, W))):
- h = 1.6 + 0.5 * (i % 2)
- out += box(x0, 0.0, -0.9, x1, h, 0.9, ROOT, top=0x6E4E2E, skip="b")
- return out
-
-
-def tree_jump():
- """a fallen trunk across the path: jump it"""
- out = box(-W - 3, 0.0, -1.8, W + 3, 4.2, 1.8, TRUNK, top=0x7B5A38, skip="b")
- out += box(-W - 4, -3.0, -2.2, -W - 1, 5.0, 2.2, BARK, skip="b")
- out += box(W + 1, -3.0, -2.2, W + 4, 5.0, 2.2, BARK, skip="b")
- return out
-
-
-def branch_slide():
- """a branch across the path at head height: slide under it"""
- out = box(-W - 3, 5.2, -1.3, W + 3, 7.4, 1.3, TRUNK, top=0x7B5A38)
- for x in (-6.0, 1.0, 6.5):
- out += box(x, 7.2, -2.6, x + 3.4, 9.6, 2.6, LEAF, top=LEAF2)
- out += box(-W - 3.5, 0.0, -1.6, -W - 1.0, 7.6, 1.6, BARK, skip="b")
- out += box(W + 1.0, 0.0, -1.6, W + 3.5, 7.6, 1.6, BARK, skip="b")
- return out
-
-
def fire(t):
- """fire jets across the path from vents in the floor: jump them"""
+ """the fire across a flame tower piece (jump over it or slide under it): tongues between the towers, at the
+ height the game's obstacle has (from 3.5 up to 8 above the floor)"""
out = []
- for i, x in enumerate((-7.0, -2.0, 3.0)):
- out += box(x, 0.0, -1.4, x + 4.0, 0.6, 1.4, VENT, skip="b")
- h = 4.6 + 1.3 * math.sin(t * 2.1 + i * 1.7)
- cx = x + 2.0
- for k, (wd, hh, col) in enumerate(((1.7, h, FIRE), (0.9, h * 0.7, FIRE2))):
- for zs in (-1, 1):
- pts = [[cx - wd, 0.6, zs * 0.25 * (k + 1)], [cx + wd, 0.6, zs * 0.25 * (k + 1)], [cx, 0.6 + hh, 0]]
- out.append(face(pts, col, [0, 0, -1 if zs < 0 else 1], two=True))
+ for i, x in enumerate((-8.5, -4.0, 0.5, 5.0)):
+ w = 2.4 + 0.5 * math.sin(t * 2.1 + i * 1.7)
+ y0, y1 = 3.6, 7.8 + 0.5 * math.sin(t * 1.3 + i)
+ for k, (inset, col) in enumerate(((0.0, FIRE), (0.8, FIRE2))):
+ pts = [[x + inset, y0 + inset, 0.1 * k], [x + w + 1.5 - inset, (y0 + y1) / 2, 0.1 * k], [x + inset, y1 - inset, 0.1 * k]]
+ out.append(face(pts, col, [0, 0, -1], two=True))
return out
@@ -413,7 +385,13 @@ def temple():
return out
-def build():
+def build(src):
+ # the game's path pieces first, in floor.c's order (their numbers are the same), then their far versions
+ cells, obstacles = read_floor(src)
+ for name in pieces.PREFABS:
+ add(name, path_piece(name, cells, obstacles), name + "_far")
+ for name in pieces.PREFABS:
+ add(name + "_far", path_piece(name, cells, obstacles, far=True))
for i in range(4):
add(f"RUNNER_RUN{i}", person(i * math.pi / 2), None)
add("RUNNER_JUMP", person(0, "jump"))
@@ -425,14 +403,6 @@ def build():
add("PURSUER_RUN1", pursuer(math.pi / 2))
add("PURSUER_RUN2", pursuer(math.pi))
add("PURSUER_RUN3", pursuer(3 * math.pi / 2))
- kinds = ["STRAIGHT", "HOLE", "HOLE_LONG", "NARROW_L", "NARROW_R", "CORNER_L", "CORNER_R", "T", "STEP_UP", "STEP_DOWN"]
- for theme, c in THEMES:
- for k in kinds:
- add(f"{theme}_{k}", piece(k, c, theme), f"{theme}_{k}_FAR")
- add(f"{theme}_{k}_FAR", far_piece(k, c))
- add("ROOT_LOW", root_low())
- add("TREE_JUMP", tree_jump())
- add("BRANCH_SLIDE", branch_slide())
for i in range(4):
add(f"FIRE{i}", fire(i * math.pi / 2))
for k, rgb in COIN_RGB.items():
@@ -447,15 +417,14 @@ def build():
add("JUNGLE_TALL_FAR", jungle_far(44))
add("PILLAR", pillar())
add("CLIFF_WALL", cliff_face())
- add("TEMPLE", temple())
def write(src):
- build()
+ build(src)
names = [m[0] for m in MODELS]
h = ["/* Temple Run: the mesh numbers (data.c, made by tools/models.py). */", "#ifndef TR_DATA_H", "#define TR_DATA_H",
'#include "models.h"', '#include "r3d.h"', "", "enum {"]
- h += [f" M_{n}," for n in names] + [" M_COUNT", "};", "#endif", ""]
+ h += [f" M_{n}," for n in names] + [" M_COUNT,", f" M_PIECES = {len(pieces.PREFABS)} /* (the path pieces: floor.c's, in its order) */", "};", "#endif", ""]
c = ["/* Made by tools/models.py: Temple Run's stand-in models (boxes and wedges), as a mesh table. */",
'#include "data.h"', "", "const Texture *const r_tex[1] = {0};", ""]
table = []
diff --git a/games/templerun/tools/pieces.py b/games/templerun/tools/pieces.py
new file mode 100644
index 00000000..d78321aa
--- /dev/null
+++ b/games/templerun/tools/pieces.py
@@ -0,0 +1,28 @@
+"""The game's path pieces: the prefabs its PathElement lays (GetPrefabNameForType, and AddObstacle's trees), in the
+order of the port's mesh table (data.h: M_<prefab>) and floor table (floor.c). Pieces are laid as they are,
+unturned: "Vert" ones run along z (north +z), "Horz" ones along x (east +x)."""
+
+TEMPLE = (["templeStraightVert", "templeStraightVert2", "templeStraightVert3", "templeStraightVert4", "templeStraightVert5",
+ "templeStraightTowerVert", "templeStraightHorz", "templeStraightHorz2", "templeStraightHorz3",
+ "templeStraightHorz4", "templeStraightHorz5", "templeStraightTowerHorz"]
+ + [f"templeTurn{c}" for c in "ABCD"] + [f"templeT{s}" for s in ("Left", "Right", "Up", "Down")]
+ + ["templeStraightHoleVert", "templeStraightHoleLongAVert", "templeStraightHoleLongBVert", "templeStraightHoleHorz",
+ "templeStraightHoleLongAHorz", "templeStraightHoleLongBHorz",
+ "templeStraightNarrowSmallLeftVert", "templeStraightNarrowSmallRightVert", "templeStraightNarrowSmallDownHorz"]
+ + [f"templeStraightNarrowLong{s}{ab}Vert" for s in ("Left", "Right") for ab in ("", "A", "B")]
+ + [f"templeStraightNarrowLong{s}{ab}Horz" for s in ("Up", "Down") for ab in ("", "A", "B")]
+ + ["templeStraightFlameTowerHighVert", "templeStraightFlameTowerHighHorz"]
+ + [f"templeToPlankCap{ab}{o}" for ab in "AB" for o in ("Vert", "Horz")]
+ + ["templeStraightTreeTripLeftVert", "templeStraightTreeTripRightVert", "templeStraightTreeTripUpHorz",
+ "templeStraightTreeTripDownHorz", "templeStraightTreeJumpLeftVert", "templeStraightTreeJumpRightVert",
+ "templeStraightTreeJumpUpHorz", "templeStraightTreeJumpDownHorz", "templeStraightTreeSlideVert",
+ "templeStraightTreeSlideHorz", "temple"])
+PLANK = (["plankStraightVert", "plankStraightHorz"] + [f"plankTurn{c}" for c in "ABCD"]
+ + [f"plankT{s}" for s in ("Left", "Right", "Up", "Down")]
+ + ["plankStraightHoleVert", "plankStraightHoleHorz", "plankStraightTowerVert", "plankStraightTowerHorz"])
+CLIFF = (["cliffStraightVert", "cliffStraightHorz"] + [f"cliffTurn{c}" for c in "ABCD"]
+ + [f"cliffT{s}" for s in ("Left", "Right", "Up", "Down")]
+ + [f"cliffToTempleCap{ab}{o}" for ab in "AB" for o in ("Vert", "Horz")]
+ + ["cliffStraightTreeVert", "cliffStraightTreeHorz"])
+PREFABS = TEMPLE + PLANK + CLIFF
+FLOOR_PREFABS = PREFABS