mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Provide scripts file into repo
This commit is contained in:
parent
cf962439ee
commit
59263279fe
9 changed files with 2027 additions and 0 deletions
5
Scripts/Andrea1.lua
Normal file
5
Scripts/Andrea1.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
-- Test level script file
|
||||
LevelFuncs.OnLoad = function() end
|
||||
LevelFuncs.OnSave = function() end
|
||||
LevelFuncs.OnControlPhase = function() end
|
||||
LevelFuncs.OnEnd = function() end
|
108
Scripts/Constants.lua
Normal file
108
Scripts/Constants.lua
Normal file
|
@ -0,0 +1,108 @@
|
|||
-- Inventory constants
|
||||
INV_OBJECT_UZIS = 0
|
||||
INV_OBJECT_PISTOLS = 1
|
||||
INV_OBJECT_SHOTGUN = 2
|
||||
INV_OBJECT_REVOLVER = 3
|
||||
INV_OBJECT_REVOLVER_LASER = 4
|
||||
INV_OBJECT_CROSSBOW = 5
|
||||
INV_OBJECT_CROSSBOW_LASER = 6
|
||||
INV_OBJECT_HK = 7
|
||||
INV_OBJECT_HK_LASER = 8
|
||||
INV_OBJECT_SHOTGUN_AMMO1 = 9
|
||||
INV_OBJECT_SHOTGUN_AMMO2 = 10
|
||||
INV_OBJECT_HK_AMMO1 = 13
|
||||
INV_OBJECT_CROSSBOW_AMMO1 = 15
|
||||
INV_OBJECT_CROSSBOW_AMMO2 = 16
|
||||
INV_OBJECT_REVOLVER_AMMO = 17
|
||||
INV_OBJECT_UZI_AMMO = 18
|
||||
INV_OBJECT_PISTOLS_AMMO = 19
|
||||
INV_OBJECT_LASERSIGHT = 20
|
||||
INV_OBJECT_SILENCER = 21
|
||||
INV_OBJECT_LARGE_MEDIPACK = 22
|
||||
INV_OBJECT_SMALL_MEDIPACK = 23
|
||||
INV_OBJECT_BINOCULARS = 24
|
||||
INV_OBJECT_FLARES = 25
|
||||
INV_OBJECT_TIMEX = 26
|
||||
INV_OBJECT_PUZZLE1 = 29
|
||||
INV_OBJECT_PUZZLE2 = 30
|
||||
INV_OBJECT_PUZZLE3 = 31
|
||||
INV_OBJECT_PUZZLE4 = 32
|
||||
INV_OBJECT_PUZZLE5 = 33
|
||||
INV_OBJECT_PUZZLE6 = 34
|
||||
INV_OBJECT_PUZZLE7 = 35
|
||||
INV_OBJECT_PUZZLE8 = 36
|
||||
INV_OBJECT_PUZZLE1_COMBO1 = 37
|
||||
INV_OBJECT_PUZZLE1_COMBO2 = 38
|
||||
INV_OBJECT_PUZZLE2_COMBO1 = 39
|
||||
INV_OBJECT_PUZZLE2_COMBO2 = 40
|
||||
INV_OBJECT_PUZZLE3_COMBO1 = 41
|
||||
INV_OBJECT_PUZZLE3_COMBO2 = 42
|
||||
INV_OBJECT_PUZZLE4_COMBO1 = 43
|
||||
INV_OBJECT_PUZZLE4_COMBO2 = 44
|
||||
INV_OBJECT_PUZZLE5_COMBO1 = 45
|
||||
INV_OBJECT_PUZZLE5_COMBO2 = 46
|
||||
INV_OBJECT_PUZZLE6_COMBO1 = 47
|
||||
INV_OBJECT_PUZZLE6_COMBO2 = 48
|
||||
INV_OBJECT_PUZZLE7_COMBO1 = 49
|
||||
INV_OBJECT_PUZZLE7_COMBO2 = 50
|
||||
INV_OBJECT_PUZZLE8_COMBO1 = 51
|
||||
INV_OBJECT_PUZZLE8_COMBO2 = 52
|
||||
INV_OBJECT_KEY1 = 53
|
||||
INV_OBJECT_KEY2 = 54
|
||||
INV_OBJECT_KEY3 = 55
|
||||
INV_OBJECT_KEY4 = 56
|
||||
INV_OBJECT_KEY5 = 57
|
||||
INV_OBJECT_KEY6 = 58
|
||||
INV_OBJECT_KEY7 = 59
|
||||
INV_OBJECT_KEY8 = 60
|
||||
INV_OBJECT_KEY1_COMBO1 = 61
|
||||
INV_OBJECT_KEY1_COMBO2 = 62
|
||||
INV_OBJECT_KEY2_COMBO1 = 63
|
||||
INV_OBJECT_KEY2_COMBO2 = 64
|
||||
INV_OBJECT_KEY3_COMBO1 = 65
|
||||
INV_OBJECT_KEY3_COMBO2 = 66
|
||||
INV_OBJECT_KEY4_COMBO1 = 67
|
||||
INV_OBJECT_KEY4_COMBO2 = 68
|
||||
INV_OBJECT_KEY5_COMBO1 = 69
|
||||
INV_OBJECT_KEY5_COMBO2 = 70
|
||||
INV_OBJECT_KEY6_COMBO1 = 71
|
||||
INV_OBJECT_KEY6_COMBO2 = 72
|
||||
INV_OBJECT_KEY7_COMBO1 = 73
|
||||
INV_OBJECT_KEY7_COMBO2 = 74
|
||||
INV_OBJECT_KEY8_COMBO1 = 75
|
||||
INV_OBJECT_KEY8_COMBO2 = 76
|
||||
INV_OBJECT_PICKUP1 = 77
|
||||
INV_OBJECT_PICKUP2 = 78
|
||||
INV_OBJECT_PICKUP3 = 79
|
||||
INV_OBJECT_PICKUP4 = 80
|
||||
INV_OBJECT_PICKUP1_COMBO1 = 81
|
||||
INV_OBJECT_PICKUP1_COMBO2 = 82
|
||||
INV_OBJECT_PICKUP2_COMBO1 = 83
|
||||
INV_OBJECT_PICKUP2_COMBO2 = 84
|
||||
INV_OBJECT_PICKUP3_COMBO1 = 85
|
||||
INV_OBJECT_PICKUP3_COMBO2 = 86
|
||||
INV_OBJECT_PICKUP4_COMBO1 = 87
|
||||
INV_OBJECT_PICKUP4_COMBO2 = 88
|
||||
INV_OBJECT_BRUNING_TORCH = 89
|
||||
INV_OBJECT_CROWBAR = 90
|
||||
INV_OBJECT_EXAMINE1 = 91
|
||||
INV_OBJECT_EXAMINE2 = 92
|
||||
INV_OBJECT_EXAMINE3 = 93
|
||||
INV_OBJECT_WETCLOTH1 = 93
|
||||
INV_OBJECT_GRAPPLING_GUN = 95
|
||||
INV_OBJECT_GRAPPLING_AMMO = 96
|
||||
INV_OBJECT_WETCLOTH2 = 97
|
||||
INV_OBJECT_BOTTLE = 98
|
||||
|
||||
-- Item constants
|
||||
ITEM_currentAnimState = 0
|
||||
ITEM_goalAnimState = 1
|
||||
ITEM_REQUIRED_ANIM_STATE = 2
|
||||
ITEM_frameNumber = 3
|
||||
ITEM_animNumber = 4
|
||||
ITEM_hitPoints = 5
|
||||
ITEM_HIT_STATUS = 6
|
||||
ITEM_GRAVITY_STATUS = 7
|
||||
ITEM_COLLIDABLE = 8
|
||||
ITEM_POISONED = 9
|
||||
ITEM_roomNumber = 10
|
128
Scripts/English.lua
Normal file
128
Scripts/English.lua
Normal file
|
@ -0,0 +1,128 @@
|
|||
-- Place in this LUA script all the strings of your game
|
||||
-- Please follow the rules for IDs in the comments before each section
|
||||
|
||||
local strings = {
|
||||
new_game = {"New Game", "Nouvelle partie", "Nuova partita", "Neues Spiel", "Nueva partida"},
|
||||
load_game = {"Load Game", "Chargement", "Carica partita", "Spiel laden", "Cargar partida"}
|
||||
}
|
||||
GameFlow:SetStrings(strings)
|
||||
local languages = {"English", "Français", "Italiano", "Deutsch", "Español"}
|
||||
GameFlow:SetLanguageNames(languages)
|
||||
|
||||
-- Global engine string, please don't change the IDs because internally TEN machine code refers to strings by fixed ID
|
||||
GameFlow.strings[1] = "Game";
|
||||
GameFlow.strings[2] = "Lara's home";
|
||||
GameFlow.strings[3] = "Controls";
|
||||
GameFlow.strings[4] = "Display";
|
||||
GameFlow.strings[5] = "Sound";
|
||||
GameFlow.strings[6] = "New game";
|
||||
GameFlow.strings[7] = "Load game";
|
||||
GameFlow.strings[8] = "Save game";
|
||||
GameFlow.strings[9] = "Exit game";
|
||||
GameFlow.strings[10] = "Exit to title";
|
||||
GameFlow.strings[11] = "Uzi";
|
||||
GameFlow.strings[12] = "Pistols";
|
||||
GameFlow.strings[13] = "Shotgun";
|
||||
GameFlow.strings[14] = "Revolver";
|
||||
GameFlow.strings[15] = "Revolver + LaserSight";
|
||||
GameFlow.strings[16] = "Desert Eagle";
|
||||
GameFlow.strings[17] = "Desert Eagle + LaserSight";
|
||||
GameFlow.strings[18] = "Desert Eagle Ammo";
|
||||
GameFlow.strings[19] = "HK Gun";
|
||||
GameFlow.strings[20] = "HK Gun (Silenced)";
|
||||
GameFlow.strings[21] = "Shotgun Normal Ammo";
|
||||
GameFlow.strings[22] = "Shotgun Wideshot Ammo";
|
||||
GameFlow.strings[23] = "HK Sniper Mode";
|
||||
GameFlow.strings[24] = "HK Burst Mode";
|
||||
GameFlow.strings[25] = "HK Rapid Mode";
|
||||
GameFlow.strings[26] = "HK Ammo";
|
||||
GameFlow.strings[27] = "Revolver Ammo";
|
||||
GameFlow.strings[28] = "Uzi Ammo";
|
||||
GameFlow.strings[29] = "Pistol Ammo";
|
||||
GameFlow.strings[30] = "LaserSight";
|
||||
GameFlow.strings[31] = "Silencer";
|
||||
GameFlow.strings[32] = "Large Medipack";
|
||||
GameFlow.strings[33] = "Small Medipack";
|
||||
GameFlow.strings[34] = "Binoculars";
|
||||
GameFlow.strings[35] = "Headset";
|
||||
GameFlow.strings[36] = "Flares";
|
||||
GameFlow.strings[37] = "Timex-TMX";
|
||||
GameFlow.strings[38] = "Crowbar";
|
||||
GameFlow.strings[39] = "Use";
|
||||
GameFlow.strings[40] = "Combine";
|
||||
GameFlow.strings[41] = "Separe";
|
||||
GameFlow.strings[42] = "Choose ammo";
|
||||
GameFlow.strings[43] = "Select level";
|
||||
GameFlow.strings[44] = "%02d days %02d:%02d:%02d";
|
||||
GameFlow.strings[45] = "Not saved";
|
||||
GameFlow.strings[46] = "Grenade launcher";
|
||||
GameFlow.strings[47] = "Grenade Normal Ammo";
|
||||
GameFlow.strings[48] = "Grenade Poisoned Ammo";
|
||||
GameFlow.strings[49] = "Grenade Explosive Ammo";
|
||||
GameFlow.strings[50] = "Harpoon gun";
|
||||
GameFlow.strings[51] = "Harpoon ammo";
|
||||
GameFlow.strings[52] = "Rocket launcher";
|
||||
GameFlow.strings[53] = "Rocket ammo";
|
||||
GameFlow.strings[54] = "Crossbow";
|
||||
GameFlow.strings[55] = "Crossbow + LaserSight";
|
||||
GameFlow.strings[56] = "Crossbow Normal Ammo";
|
||||
GameFlow.strings[57] = "Crossbow Poisoned Ammo";
|
||||
GameFlow.strings[58] = "Crossbow Explosive Ammo";
|
||||
GameFlow.strings[59] = "Diary";
|
||||
GameFlow.strings[60] = "Enabled";
|
||||
GameFlow.strings[61] = "Disabled";
|
||||
GameFlow.strings[62] = "Music volume";
|
||||
GameFlow.strings[63] = "SFX volume";
|
||||
GameFlow.strings[64] = "Screen resolution";
|
||||
GameFlow.strings[65] = "Dynamic shadows";
|
||||
GameFlow.strings[66] = "Underwater caustics";
|
||||
GameFlow.strings[67] = "Volumetric fog";
|
||||
GameFlow.strings[68] = "Apply";
|
||||
GameFlow.strings[69] = "Cancel";
|
||||
GameFlow.strings[70] = "Enable sound";
|
||||
GameFlow.strings[71] = "Special effects";
|
||||
GameFlow.strings[75] = "Small Waterskin (Empty)"
|
||||
GameFlow.strings[76] = "Large Waterskin (Empty)"
|
||||
GameFlow.strings[78] = "Move forward"
|
||||
GameFlow.strings[79] = "Move backward"
|
||||
GameFlow.strings[80] = "Move left"
|
||||
GameFlow.strings[81] = "Move right"
|
||||
GameFlow.strings[82] = "Duck"
|
||||
GameFlow.strings[83] = "Dash"
|
||||
GameFlow.strings[84] = "Walk"
|
||||
GameFlow.strings[85] = "Jump"
|
||||
GameFlow.strings[86] = "Action"
|
||||
GameFlow.strings[87] = "Draw weapon"
|
||||
GameFlow.strings[88] = "Use flare"
|
||||
GameFlow.strings[89] = "Look"
|
||||
GameFlow.strings[90] = "Roll"
|
||||
GameFlow.strings[91] = "Inventory"
|
||||
GameFlow.strings[92] = "Step left"
|
||||
GameFlow.strings[93] = "Step right"
|
||||
GameFlow.strings[94] = "Items"
|
||||
GameFlow.strings[95] = "Puzzles"
|
||||
|
||||
-- Level names (from 100 to 199)
|
||||
GameFlow.strings[100] = "Title level";
|
||||
GameFlow.strings[101] = "Strets of Rome";
|
||||
GameFlow.strings[102] = "Trajan Markets";
|
||||
GameFlow.strings[103] = "The Colosseum";
|
||||
GameFlow.strings[104] = "The base";
|
||||
GameFlow.strings[105] = "The submarine";
|
||||
GameFlow.strings[106] = "Deepsea Dive";
|
||||
GameFlow.strings[107] = "Sinking Submarine";
|
||||
GameFlow.strings[108] = "Gallows Tree";
|
||||
GameFlow.strings[109] = "Labyrinth";
|
||||
GameFlow.strings[110] = "Old Mill";
|
||||
GameFlow.strings[111] = "The 13th Floor";
|
||||
GameFlow.strings[112] = "Escape with the Iris";
|
||||
GameFlow.strings[113] = "Security breach";
|
||||
GameFlow.strings[114] = "Red alert!";
|
||||
GameFlow.strings[115] = "Test level";
|
||||
|
||||
-- Puzzle names (from 200 to 499)
|
||||
GameFlow.strings[200] = "Bronze key";
|
||||
GameFlow.strings[201] = "Golden key";
|
||||
|
||||
-- Examines strings (from 500 to 799, use \n sequence for new line)
|
||||
GameFlow.strings[500] = "Examine test \n This is a new line of text \n This is another new line of text";
|
250
Scripts/Enums.lua
Normal file
250
Scripts/Enums.lua
Normal file
|
@ -0,0 +1,250 @@
|
|||
InventorySlots = {
|
||||
PISTOLS_ITEM = 0,
|
||||
PISTOLS_AMMO_ITEM = 1,
|
||||
UZI_ITEM = 2,
|
||||
UZI_AMMO_ITEM = 3,
|
||||
SHOTGUN_ITEM = 4,
|
||||
SHOTGUN_AMMO1_ITEM = 5,
|
||||
SHOTGUN_AMMO2_ITEM = 6,
|
||||
REVOLVER_ITEM = 7,
|
||||
REVOLVER_AMMO_ITEM = 8,
|
||||
--LARA_REVOLVER_LASER_ITEM = 9,
|
||||
CROSSBOW_ITEM = 10,
|
||||
--CROSSBOW_LASER_ITEM = 11,
|
||||
CROSSBOW_AMMO1_ITEM = 12,
|
||||
CROSSBOW_AMMO2_ITEM = 13,
|
||||
CROSSBOW_AMMO3_ITEM = 14,
|
||||
HK_ITEM = 15,
|
||||
--HK_SILENCER_ITEM = 16,
|
||||
HK_AMMO_ITEM = 17,
|
||||
GRENADE_AMMO_ITEM = 18,
|
||||
GRENADE_AMMO1_ITEM = 19,
|
||||
GRENADE_AMMO2_ITEM = 20,
|
||||
GRENADE_AMMO3_ITEM = 21,
|
||||
HARPOON_ITEM = 22,
|
||||
HARPOON_AMMO_ITEM = 23,
|
||||
ROCKET_LAUNCHER_ITEM = 24,
|
||||
ROCKET_LAUNCHER_AMMO_ITEM = 25,
|
||||
LASERSIGHT_ITEM = 26,
|
||||
SILENCER_ITEM = 27,
|
||||
BIGMEDI_ITEM = 28,
|
||||
SMALLMEDI_ITEM = 29,
|
||||
BINOCULARS_ITEM = 30,
|
||||
FLARE_INV_ITEM = 31,
|
||||
TIMEX_ITEM = 32,
|
||||
PC_LOAD_INV_ITEM = 33,
|
||||
PC_LOAD_SAVE_ITEM = 34,
|
||||
BURNING_TORCH_ITEM = 35,
|
||||
CROWBAR_ITEM = 36,
|
||||
DIARY_ITEM = 37,
|
||||
COMPASS_ITEM = 38,
|
||||
CLOCKWORK_BEETLE = 39,
|
||||
CLOCKWORK_BEETLE_COMBO1 = 40,
|
||||
CLOCKWORK_BEETLE_COMBO2 = 41,
|
||||
WATERSKIN1_EMPTY = 42,
|
||||
WATERSKIN1_EMPTY_1 = 43,
|
||||
WATERSKIN1_EMPTY_2 = 44,
|
||||
WATERSKIN1_EMPTY_3 = 45,
|
||||
WATERSKIN2_EMPTY = 46,
|
||||
WATERSKIN2_EMPTY_1 = 47,
|
||||
WATERSKIN2_EMPTY_2 = 48,
|
||||
WATERSKIN2_EMPTY_3 = 49,
|
||||
WATERSKIN2_EMPTY_4 = 50,
|
||||
WATERSKIN2_EMPTY_5 = 51,
|
||||
OPEN_DIARY_ITEM = 52,
|
||||
GOLDROSE_ITEM = 53,
|
||||
PUZZLE_ITEM1 = 54,
|
||||
PUZZLE_ITEM2 = 55,
|
||||
PUZZLE_ITEM3 = 56,
|
||||
PUZZLE_ITEM4 = 57,
|
||||
PUZZLE_ITEM5 = 58,
|
||||
PUZZLE_ITEM6 = 59,
|
||||
PUZZLE_ITEM7 = 60,
|
||||
PUZZLE_ITEM8 = 61,
|
||||
PUZZLE_ITEM9 = 62,
|
||||
PUZZLE_ITEM10 = 63,
|
||||
PUZZLE_ITEM11 = 64,
|
||||
PUZZLE_ITEM12 = 65,
|
||||
PUZZLE_ITEM13 = 66,
|
||||
PUZZLE_ITEM14 = 67,
|
||||
PUZZLE_ITEM15 = 68,
|
||||
PUZZLE_ITEM16 = 69,
|
||||
PUZZLE_ITEM1_COMBO1 = 70,
|
||||
PUZZLE_ITEM1_COMBO2 = 71,
|
||||
PUZZLE_ITEM2_COMBO1 = 72,
|
||||
PUZZLE_ITEM2_COMBO2 = 73,
|
||||
PUZZLE_ITEM3_COMBO1 = 74,
|
||||
PUZZLE_ITEM3_COMBO2 = 75,
|
||||
PUZZLE_ITEM4_COMBO1 = 76,
|
||||
PUZZLE_ITEM4_COMBO2 = 77,
|
||||
PUZZLE_ITEM5_COMBO1 = 78,
|
||||
PUZZLE_ITEM5_COMBO2 = 79,
|
||||
PUZZLE_ITEM6_COMBO1 = 80,
|
||||
PUZZLE_ITEM6_COMBO2 = 81,
|
||||
PUZZLE_ITEM7_COMBO1 = 82,
|
||||
PUZZLE_ITEM7_COMBO2 = 83,
|
||||
PUZZLE_ITEM8_COMBO1 = 84,
|
||||
PUZZLE_ITEM8_COMBO2 = 85,
|
||||
PUZZLE_ITEM9_COMBO1 = 86,
|
||||
PUZZLE_ITEM9_COMBO2 = 87,
|
||||
PUZZLE_ITEM10_COMBO1 = 88,
|
||||
PUZZLE_ITEM10_COMBO2 = 89,
|
||||
PUZZLE_ITEM11_COMBO1 = 90,
|
||||
PUZZLE_ITEM11_COMBO2 = 91,
|
||||
PUZZLE_ITEM12_COMBO1 = 92,
|
||||
PUZZLE_ITEM12_COMBO2 = 93,
|
||||
PUZZLE_ITEM13_COMBO1 = 94,
|
||||
PUZZLE_ITEM13_COMBO2 = 95,
|
||||
PUZZLE_ITEM14_COMBO1 = 96,
|
||||
PUZZLE_ITEM14_COMBO2 = 97,
|
||||
PUZZLE_ITEM15_COMBO1 = 98,
|
||||
PUZZLE_ITEM15_COMBO2 = 99,
|
||||
PUZZLE_ITEM16_COMBO1 = 100,
|
||||
PUZZLE_ITEM16_COMBO2 = 101,
|
||||
KEY_ITEM1 = 102,
|
||||
KEY_ITEM2 = 103,
|
||||
KEY_ITEM3 = 104,
|
||||
KEY_ITEM4 = 105,
|
||||
KEY_ITEM5 = 106,
|
||||
KEY_ITEM6 = 107,
|
||||
KEY_ITEM7 = 108,
|
||||
KEY_ITEM8 = 109,
|
||||
KEY_ITEM9 = 110,
|
||||
KEY_ITEM10 = 111,
|
||||
KEY_ITEM11 = 112,
|
||||
KEY_ITEM12 = 113,
|
||||
KEY_ITEM13 = 114,
|
||||
KEY_ITEM14 = 115,
|
||||
KEY_ITEM15 = 116,
|
||||
KEY_ITEM16 = 117,
|
||||
KEY_ITEM1_COMBO1 = 118,
|
||||
KEY_ITEM1_COMBO2 = 119,
|
||||
KEY_ITEM2_COMBO1 = 120,
|
||||
KEY_ITEM2_COMBO2 = 121,
|
||||
KEY_ITEM3_COMBO1 = 122,
|
||||
KEY_ITEM3_COMBO2 = 123,
|
||||
KEY_ITEM4_COMBO1 = 124,
|
||||
KEY_ITEM4_COMBO2 = 125,
|
||||
KEY_ITEM5_COMBO1 = 126,
|
||||
KEY_ITEM5_COMBO2 = 127,
|
||||
KEY_ITEM6_COMBO1 = 128,
|
||||
KEY_ITEM6_COMBO2 = 129,
|
||||
KEY_ITEM7_COMBO1 = 130,
|
||||
KEY_ITEM7_COMBO2 = 131,
|
||||
KEY_ITEM8_COMBO1 = 132,
|
||||
KEY_ITEM8_COMBO2 = 133,
|
||||
KEY_ITEM9_COMBO1 = 134,
|
||||
KEY_ITEM9_COMBO2 = 135,
|
||||
KEY_ITEM10_COMBO1 = 136,
|
||||
KEY_ITEM10_COMBO2 = 137,
|
||||
KEY_ITEM11_COMBO1 = 138,
|
||||
KEY_ITEM11_COMBO2 = 139,
|
||||
KEY_ITEM12_COMBO1 = 140,
|
||||
KEY_ITEM12_COMBO2 = 141,
|
||||
KEY_ITEM13_COMBO1 = 142,
|
||||
KEY_ITEM13_COMBO2 = 143,
|
||||
KEY_ITEM14_COMBO1 = 144,
|
||||
KEY_ITEM14_COMBO2 = 145,
|
||||
KEY_ITEM15_COMBO1 = 146,
|
||||
KEY_ITEM15_COMBO2 = 147,
|
||||
KEY_ITEM16_COMBO1 = 148,
|
||||
KEY_ITEM16_COMBO2 = 149,
|
||||
PICKUP_ITEM1 = 150,
|
||||
PICKUP_ITEM2 = 151,
|
||||
PICKUP_ITEM3 = 152,
|
||||
PICKUP_ITEM4 = 153,
|
||||
PICKUP_ITEM5 = 154,
|
||||
PICKUP_ITEM6 = 155,
|
||||
PICKUP_ITEM7 = 156,
|
||||
PICKUP_ITEM8 = 157,
|
||||
PICKUP_ITEM9 = 158,
|
||||
PICKUP_ITEM10 = 159,
|
||||
PICKUP_ITEM11 = 160,
|
||||
PICKUP_ITEM12 = 161,
|
||||
PICKUP_ITEM13 = 162,
|
||||
PICKUP_ITEM14 = 163,
|
||||
PICKUP_ITEM15 = 164,
|
||||
PICKUP_ITEM16 = 165,
|
||||
PICKUP_ITEM1_COMBO1 = 166,
|
||||
PICKUP_ITEM1_COMBO2 = 167,
|
||||
PICKUP_ITEM2_COMBO1 = 168,
|
||||
PICKUP_ITEM2_COMBO2 = 169,
|
||||
PICKUP_ITEM3_COMBO1 = 170,
|
||||
PICKUP_ITEM3_COMBO2 = 171,
|
||||
PICKUP_ITEM4_COMBO1 = 172,
|
||||
PICKUP_ITEM4_COMBO2 = 173,
|
||||
PICKUP_ITEM5_COMBO1 = 174,
|
||||
PICKUP_ITEM5_COMBO2 = 175,
|
||||
PICKUP_ITEM6_COMBO1 = 176,
|
||||
PICKUP_ITEM6_COMBO2 = 177,
|
||||
PICKUP_ITEM7_COMBO1 = 178,
|
||||
PICKUP_ITEM7_COMBO2 = 179,
|
||||
PICKUP_ITEM8_COMBO1 = 180,
|
||||
PICKUP_ITEM8_COMBO2 = 181,
|
||||
PICKUP_ITEM9_COMBO1 = 182,
|
||||
PICKUP_ITEM9_COMBO2 = 183,
|
||||
PICKUP_ITEM10_COMBO1 = 184,
|
||||
PICKUP_ITEM10_COMBO2 = 185,
|
||||
PICKUP_ITEM11_COMBO1 = 186,
|
||||
PICKUP_ITEM11_COMBO2 = 187,
|
||||
PICKUP_ITEM12_COMBO1 = 188,
|
||||
PICKUP_ITEM12_COMBO2 = 189,
|
||||
PICKUP_ITEM13_COMBO1 = 190,
|
||||
PICKUP_ITEM13_COMBO2 = 191,
|
||||
PICKUP_ITEM14_COMBO1 = 192,
|
||||
PICKUP_ITEM14_COMBO2 = 193,
|
||||
PICKUP_ITEM15_COMBO1 = 194,
|
||||
PICKUP_ITEM15_COMBO2 = 195,
|
||||
PICKUP_ITEM16_COMBO1 = 196,
|
||||
PICKUP_ITEM16_COMBO2 = 197,
|
||||
EXAMINE_ITEM1 = 198,
|
||||
EXAMINE_ITEM2 = 199,
|
||||
EXAMINE_ITEM3 = 200,
|
||||
EXAMINE_ITEM4 = 201,
|
||||
EXAMINE_ITEM5 = 202,
|
||||
EXAMINE_ITEM6 = 203,
|
||||
EXAMINE_ITEM7 = 204,
|
||||
EXAMINE_ITEM8 = 205,
|
||||
EXAMINE_ITEM1_COMBO1 = 206,
|
||||
EXAMINE_ITEM1_COMBO2 = 207,
|
||||
EXAMINE_ITEM2_COMBO1 = 208,
|
||||
EXAMINE_ITEM2_COMBO2 = 209,
|
||||
EXAMINE_ITEM3_COMBO1 = 210,
|
||||
EXAMINE_ITEM3_COMBO2 = 211,
|
||||
EXAMINE_ITEM4_COMBO1 = 212,
|
||||
EXAMINE_ITEM4_COMBO2 = 213,
|
||||
EXAMINE_ITEM5_COMBO1 = 214,
|
||||
EXAMINE_ITEM5_COMBO2 = 215,
|
||||
EXAMINE_ITEM6_COMBO1 = 216,
|
||||
EXAMINE_ITEM6_COMBO2 = 217,
|
||||
EXAMINE_ITEM7_COMBO1 = 218,
|
||||
EXAMINE_ITEM7_COMBO2 = 219,
|
||||
EXAMINE_ITEM8_COMBO1 = 220,
|
||||
EXAMINE_ITEM8_COMBO2 = 221
|
||||
};
|
||||
|
||||
InventoryRotationFlags = {
|
||||
ROT_X = 1,
|
||||
ROT_Y = 2,
|
||||
ROT_Z = 4
|
||||
};
|
||||
|
||||
InventoryObjectAction = {
|
||||
EQUIP = 2,
|
||||
USE = 4
|
||||
};
|
||||
|
||||
WeatherType = {
|
||||
NONE = 0,
|
||||
RAIN = 1,
|
||||
SNOW = 2
|
||||
};
|
||||
|
||||
LaraType = {
|
||||
LARA_NORMAL = 1,
|
||||
LARA_YOUNG = 2,
|
||||
LARA_BUNHEAD = 3,
|
||||
LARA_CATSUIT = 4,
|
||||
LARA_DIVESUIT = 5,
|
||||
LARA_INVISIBLE = 7
|
||||
};
|
88
Scripts/Gameflow.lua
Normal file
88
Scripts/Gameflow.lua
Normal file
|
@ -0,0 +1,88 @@
|
|||
-- Place in this LUA script all the levels of your game
|
||||
-- Title is mandatory and must be the first level
|
||||
|
||||
-- Title level
|
||||
SetIntroImagePath("SCREENS\\MAIN.PNG")
|
||||
SetTitleScreenImagePath("Screens\\Title.png")
|
||||
SetGameFarView(210)
|
||||
|
||||
title = Level.new();
|
||||
|
||||
title.ambientTrack = "108_A8_Coastal";
|
||||
title.levelFile = "Data\\title.trc";
|
||||
title.scriptFile = "Scripts\\title.lua";
|
||||
title.loadScreenFile = "Screens\\rome.jpg";
|
||||
|
||||
AddLevel(title);
|
||||
|
||||
-- Test
|
||||
test = Level.new();
|
||||
|
||||
test.nameKey = "level_andrea1";
|
||||
test.scriptFile = "Scripts\\andrea1.lua";
|
||||
test.ambientTrack = "108_A8_Coastal";
|
||||
test.levelFile = "Data\\andrea1.trc";
|
||||
test.loadScreenFile = "Screens\\rome.jpg";
|
||||
test.weather = 1;
|
||||
test.weatherStrength = 1;
|
||||
test.horizon = true
|
||||
test.farView = 10
|
||||
test.colAddHorizon = true
|
||||
test.layer1 = SkyLayer.new(Color.new(255, 0, 0), 15)
|
||||
|
||||
test.objects = {
|
||||
InventoryObject.new(
|
||||
"tut1_ba_cartouche1",
|
||||
InvItem.PUZZLE_ITEM3_COMBO1,
|
||||
0,
|
||||
0.5,
|
||||
Rotation.new(0, 0, 0),
|
||||
RotationAxis.Y,
|
||||
-1,
|
||||
ItemAction.USE
|
||||
),
|
||||
myObj,
|
||||
InventoryObject.new(
|
||||
"tut1_ba_cartouche2",
|
||||
InvItem.PUZZLE_ITEM3_COMBO2,
|
||||
0,
|
||||
0.5,
|
||||
Rotation.new(0, 0, 0),
|
||||
RotationAxis.Y,
|
||||
-1,
|
||||
ItemAction.USE
|
||||
),
|
||||
InventoryObject.new(
|
||||
"tut1_ba_cartouche",
|
||||
InvItem.PUZZLE_ITEM3,
|
||||
0,
|
||||
0.5,
|
||||
Rotation.new(0, 0, 0),
|
||||
RotationAxis.Y,
|
||||
-1,
|
||||
ItemAction.USE
|
||||
),
|
||||
InventoryObject.new(
|
||||
"tut1_hand_orion",
|
||||
InvItem.PUZZLE_ITEM6,
|
||||
0,
|
||||
0.5,
|
||||
Rotation.new(270, 180, 0),
|
||||
RotationAxis.Y,
|
||||
-1,
|
||||
ItemAction.USE
|
||||
),
|
||||
InventoryObject.new(
|
||||
"tut1_hand_sirius",
|
||||
InvItem.PUZZLE_ITEM8,
|
||||
0,
|
||||
0.5,
|
||||
Rotation.new(270, 180, 0),
|
||||
RotationAxis.X,
|
||||
-1,
|
||||
ItemAction.USE
|
||||
)
|
||||
|
||||
};
|
||||
|
||||
AddLevel(test);
|
29
Scripts/Settings.lua
Normal file
29
Scripts/Settings.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
-- TR5Main engine settings file
|
||||
-- Created by MontyTRC
|
||||
-- Place in this LUA script all the engine settings for your game
|
||||
-- WARNING: bad values could make your game unplayable, please follow with attention the reference guide
|
||||
|
||||
local settings = Settings.new();
|
||||
settings.screenWidth = 1920;
|
||||
settings.screenHeight = 1080;
|
||||
settings.enableDynamicShadows = true;
|
||||
settings.enableWaterCaustics = true;
|
||||
settings.windowed = true;
|
||||
settings.drawingDistance = 102400;
|
||||
settings.showRendererSteps = false;
|
||||
settings.showDebugInfo = true;
|
||||
settings.errorMode = ErrorMode.WARN;
|
||||
SetSettings(settings);
|
||||
|
||||
local anims = Animations.new();
|
||||
anims.crawlExtraExits = true;
|
||||
anims.crawlExtraVaults = true;
|
||||
anims.crawlFlexSubmerged = true;
|
||||
anims.crawlFlexWaterPullUp = true;
|
||||
anims.crawlStep = true;
|
||||
anims.crouchRoll = true;
|
||||
anims.monkeyRoll = true;
|
||||
anims.monkeyVault = true;
|
||||
anims.oscillateHanging = true;
|
||||
anims.swandiveRollRun = true;
|
||||
SetAnimations(anims);
|
1298
Scripts/Strings.lua
Normal file
1298
Scripts/Strings.lua
Normal file
File diff suppressed because it is too large
Load diff
5
Scripts/Title.lua
Normal file
5
Scripts/Title.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
-- Title script file
|
||||
LevelFuncs.OnLoad = function() end
|
||||
LevelFuncs.OnSave = function() end
|
||||
LevelFuncs.OnControlPhase = function() end
|
||||
LevelFuncs.OnEnd = function() end
|
116
Scripts/Tracks.lua
Normal file
116
Scripts/Tracks.lua
Normal file
|
@ -0,0 +1,116 @@
|
|||
local tracks = {
|
||||
AudioTrack.new("001", false),
|
||||
AudioTrack.new("002", false),
|
||||
AudioTrack.new("003", false),
|
||||
AudioTrack.new("004", false),
|
||||
AudioTrack.new("005", false),
|
||||
AudioTrack.new("006", false),
|
||||
AudioTrack.new("007", false),
|
||||
AudioTrack.new("008", false),
|
||||
AudioTrack.new("009", false),
|
||||
AudioTrack.new("010", false),
|
||||
AudioTrack.new("011", false),
|
||||
AudioTrack.new("012", false),
|
||||
AudioTrack.new("013", false),
|
||||
AudioTrack.new("014", false),
|
||||
AudioTrack.new("015", false),
|
||||
AudioTrack.new("016", false),
|
||||
AudioTrack.new("017", false),
|
||||
AudioTrack.new("018", false),
|
||||
AudioTrack.new("019", false),
|
||||
AudioTrack.new("020", false),
|
||||
AudioTrack.new("021", false),
|
||||
AudioTrack.new("022", false),
|
||||
AudioTrack.new("023", false),
|
||||
AudioTrack.new("024", false),
|
||||
AudioTrack.new("025", false),
|
||||
AudioTrack.new("026", false),
|
||||
AudioTrack.new("027", false),
|
||||
AudioTrack.new("028", false),
|
||||
AudioTrack.new("029", false),
|
||||
AudioTrack.new("030", false),
|
||||
AudioTrack.new("031", false),
|
||||
AudioTrack.new("032", false),
|
||||
AudioTrack.new("033", false),
|
||||
AudioTrack.new("034", false),
|
||||
AudioTrack.new("035", false),
|
||||
AudioTrack.new("036", false),
|
||||
AudioTrack.new("037", false),
|
||||
AudioTrack.new("038", false),
|
||||
AudioTrack.new("039", false),
|
||||
AudioTrack.new("040", false),
|
||||
AudioTrack.new("041", false),
|
||||
AudioTrack.new("042", false),
|
||||
AudioTrack.new("043", false),
|
||||
AudioTrack.new("044", false),
|
||||
AudioTrack.new("045", false),
|
||||
AudioTrack.new("046", false),
|
||||
AudioTrack.new("047", false),
|
||||
AudioTrack.new("048", false),
|
||||
AudioTrack.new("049", false),
|
||||
AudioTrack.new("050", false),
|
||||
AudioTrack.new("051", false),
|
||||
AudioTrack.new("052", false),
|
||||
AudioTrack.new("053", false),
|
||||
AudioTrack.new("054", false),
|
||||
AudioTrack.new("055", false),
|
||||
AudioTrack.new("056", false),
|
||||
AudioTrack.new("057", false),
|
||||
AudioTrack.new("058", false),
|
||||
AudioTrack.new("059", false),
|
||||
AudioTrack.new("060", false),
|
||||
AudioTrack.new("061", false),
|
||||
AudioTrack.new("062", false),
|
||||
AudioTrack.new("063", false),
|
||||
AudioTrack.new("064", false),
|
||||
AudioTrack.new("065", false),
|
||||
AudioTrack.new("066", false),
|
||||
AudioTrack.new("067", false),
|
||||
AudioTrack.new("068", false),
|
||||
AudioTrack.new("069", false),
|
||||
AudioTrack.new("070", false),
|
||||
AudioTrack.new("071", false),
|
||||
AudioTrack.new("072", false),
|
||||
AudioTrack.new("074", false),
|
||||
AudioTrack.new("075", false),
|
||||
AudioTrack.new("076", false),
|
||||
AudioTrack.new("077", false),
|
||||
AudioTrack.new("078", false),
|
||||
AudioTrack.new("079", false),
|
||||
AudioTrack.new("080", false),
|
||||
AudioTrack.new("081", false),
|
||||
AudioTrack.new("082", false),
|
||||
AudioTrack.new("083", false),
|
||||
AudioTrack.new("084", false),
|
||||
AudioTrack.new("085", false),
|
||||
AudioTrack.new("086", false),
|
||||
AudioTrack.new("087", false),
|
||||
AudioTrack.new("088", false),
|
||||
AudioTrack.new("089", false),
|
||||
AudioTrack.new("090", false),
|
||||
AudioTrack.new("091", false),
|
||||
AudioTrack.new("092", false),
|
||||
AudioTrack.new("093", false),
|
||||
AudioTrack.new("094", false),
|
||||
AudioTrack.new("095", false),
|
||||
AudioTrack.new("096", false),
|
||||
AudioTrack.new("097", false),
|
||||
AudioTrack.new("098", false),
|
||||
AudioTrack.new("099", false),
|
||||
AudioTrack.new("100", false),
|
||||
AudioTrack.new("101", true),
|
||||
AudioTrack.new("102", true),
|
||||
AudioTrack.new("103", true),
|
||||
AudioTrack.new("104", true),
|
||||
AudioTrack.new("105", true),
|
||||
AudioTrack.new("106", true),
|
||||
AudioTrack.new("107", true),
|
||||
AudioTrack.new("108", true),
|
||||
AudioTrack.new("109", false),
|
||||
AudioTrack.new("110", false),
|
||||
AudioTrack.new("111", false),
|
||||
AudioTrack.new("112", false),
|
||||
AudioTrack.new("073", false) -- secret must always be last one in the list
|
||||
};
|
||||
|
||||
SetAudioTracks(tracks);
|
Loading…
Add table
Add a link
Reference in a new issue