Shipped scripts

These are the Lua scripts TRX ships with, reproduced here exactly as they are installed alongside the games. They are the level scripts that drive the original games' behavior under TRX, so they double as worked examples of the API: read one next to the level it belongs to and you can see how the hooks described in the rest of this section are used in practice.

Each script is shown verbatim. To adapt one, copy it into your own project's data/scripts directory and point your game flow at it.

Tomb Raider I

Tomb Raider I - Unfinished Business

Tomb Raider II

Tomb Raider II - The Golden Mask

Tomb Raider III

Tomb Raider III - The Lost Artifact

Tomb Raider IV

Shared modules