mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 09:18:00 +03:00
Call WriteDefaults and AddTracks. These are temporary things to add the settings which were in SCRIPT.DAT but which have no Lua counterpart yet.
The bool "rain" is now the WeatherType "Weather" to reflect what's in the C++ implementation. Gameflow -> GameFlow to be consistent with C++.
This commit is contained in:
parent
f8d19c32b9
commit
5dfd9eda6f
1 changed files with 22 additions and 20 deletions
|
@ -1,18 +1,20 @@
|
||||||
-- TR5Main Gameflow file
|
-- TR5Main GameFlow file
|
||||||
-- Created by MontyTRC
|
-- Created by MontyTRC
|
||||||
-- Place in this LUA script all the levels of your game
|
-- Place in this LUA script all the levels of your game
|
||||||
-- Title is mandatory and must be the first level
|
-- Title is mandatory and must be the first level
|
||||||
|
|
||||||
-- Title level
|
-- Title level
|
||||||
|
GameFlow:WriteDefaults();
|
||||||
|
GameFlow:AddTracks();
|
||||||
title = Level.new();
|
title = Level.new();
|
||||||
|
|
||||||
title.script = "andrea2.lua";
|
title.script = "andrea2.lua";
|
||||||
title.soundTrack = 110;
|
title.soundTrack = 110;
|
||||||
title.fileName = "Data\\title.trc";
|
title.fileName = "Data\\title.trc";
|
||||||
title.loadScreen = "Screens\\rome.jpg";
|
title.loadScreen = "Screens\\rome.jpg";
|
||||||
title.background = "Title.png";
|
title.background = "Screens\\Title.png";
|
||||||
|
|
||||||
Gameflow:AddLevel(title);
|
GameFlow:AddLevel(title);
|
||||||
|
|
||||||
-- Test
|
-- Test
|
||||||
test = Level.new();
|
test = Level.new();
|
||||||
|
@ -26,7 +28,7 @@ test.horizon = true;
|
||||||
test.colAddHorizon = true;
|
test.colAddHorizon = true;
|
||||||
test.layer1 = SkyLayer.new(120, 80, 50, -4);
|
test.layer1 = SkyLayer.new(120, 80, 50, -4);
|
||||||
|
|
||||||
Gameflow:AddLevel(test);
|
GameFlow:AddLevel(test);
|
||||||
|
|
||||||
-- Streets of rome --
|
-- Streets of rome --
|
||||||
streets = Level.new();
|
streets = Level.new();
|
||||||
|
@ -40,7 +42,7 @@ streets.colAddHorizon = true;
|
||||||
streets.layer1 = SkyLayer.new(16, 16, 96, 3);
|
streets.layer1 = SkyLayer.new(16, 16, 96, 3);
|
||||||
streets.resetHub = true;
|
streets.resetHub = true;
|
||||||
|
|
||||||
Gameflow:AddLevel(streets);
|
GameFlow:AddLevel(streets);
|
||||||
|
|
||||||
-- Trajan markets --
|
-- Trajan markets --
|
||||||
trajan = Level.new();
|
trajan = Level.new();
|
||||||
|
@ -55,7 +57,7 @@ trajan.colAddHorizon = true;
|
||||||
trajan.layer1 = SkyLayer.new(128, 128, 128, 3);
|
trajan.layer1 = SkyLayer.new(128, 128, 128, 3);
|
||||||
trajan.storm = false;
|
trajan.storm = false;
|
||||||
|
|
||||||
Gameflow:AddLevel(trajan);
|
GameFlow:AddLevel(trajan);
|
||||||
|
|
||||||
-- Colosseum
|
-- Colosseum
|
||||||
colosseum = Level.new();
|
colosseum = Level.new();
|
||||||
|
@ -69,7 +71,7 @@ colosseum.horizon = true;
|
||||||
colosseum.colAddHorizon = true;
|
colosseum.colAddHorizon = true;
|
||||||
colosseum.layer1 = SkyLayer.new(120, 80, 50, -4);
|
colosseum.layer1 = SkyLayer.new(120, 80, 50, -4);
|
||||||
|
|
||||||
Gameflow:AddLevel(colosseum);
|
GameFlow:AddLevel(colosseum);
|
||||||
|
|
||||||
-- The base
|
-- The base
|
||||||
theBase = Level.new();
|
theBase = Level.new();
|
||||||
|
@ -84,7 +86,7 @@ theBase.colAddHorizon = true;
|
||||||
theBase.layer1 = SkyLayer.new(120, 80, 50, -4);
|
theBase.layer1 = SkyLayer.new(120, 80, 50, -4);
|
||||||
theBase.resetHub = true;
|
theBase.resetHub = true;
|
||||||
|
|
||||||
Gameflow:AddLevel(theBase);
|
GameFlow:AddLevel(theBase);
|
||||||
|
|
||||||
-- The submarine
|
-- The submarine
|
||||||
submarine = Level.new();
|
submarine = Level.new();
|
||||||
|
@ -98,7 +100,7 @@ submarine.horizon = true;
|
||||||
submarine.colAddHorizon = true;
|
submarine.colAddHorizon = true;
|
||||||
submarine.layer1 = SkyLayer.new(120, 80, 50, -4);
|
submarine.layer1 = SkyLayer.new(120, 80, 50, -4);
|
||||||
|
|
||||||
Gameflow:AddLevel(submarine);
|
GameFlow:AddLevel(submarine);
|
||||||
|
|
||||||
-- Deepsea dive
|
-- Deepsea dive
|
||||||
deepsea = Level.new();
|
deepsea = Level.new();
|
||||||
|
@ -112,7 +114,7 @@ deepsea.horizon = true;
|
||||||
deepsea.colAddHorizon = true;
|
deepsea.colAddHorizon = true;
|
||||||
deepsea.layer1 = SkyLayer.new(120, 80, 50, -4);
|
deepsea.layer1 = SkyLayer.new(120, 80, 50, -4);
|
||||||
|
|
||||||
Gameflow:AddLevel(deepsea);
|
GameFlow:AddLevel(deepsea);
|
||||||
|
|
||||||
-- Sinking submarine
|
-- Sinking submarine
|
||||||
sinking = Level.new();
|
sinking = Level.new();
|
||||||
|
@ -127,7 +129,7 @@ sinking.rumble = true;
|
||||||
sinking.colAddHorizon = true;
|
sinking.colAddHorizon = true;
|
||||||
sinking.layer1 = SkyLayer.new(120, 80, 50, -4);
|
sinking.layer1 = SkyLayer.new(120, 80, 50, -4);
|
||||||
|
|
||||||
Gameflow:AddLevel(sinking);
|
GameFlow:AddLevel(sinking);
|
||||||
|
|
||||||
-- Gallows tree
|
-- Gallows tree
|
||||||
gallowstree = Level.new();
|
gallowstree = Level.new();
|
||||||
|
@ -139,13 +141,13 @@ gallowstree.fileName = "Data\\andy1.trc";
|
||||||
gallowstree.loadScreen = "Screens\\andy1.jpg";
|
gallowstree.loadScreen = "Screens\\andy1.jpg";
|
||||||
gallowstree.horizon = true;
|
gallowstree.horizon = true;
|
||||||
gallowstree.colAddHorizon = true;
|
gallowstree.colAddHorizon = true;
|
||||||
gallowstree.rain = true;
|
gallowstree.weather = WeatherType.Rain;
|
||||||
gallowstree.storm = true;
|
gallowstree.storm = true;
|
||||||
gallowstree.laraType = LaraType.Young;
|
gallowstree.laraType = LaraType.Young;
|
||||||
gallowstree.layer1 = SkyLayer.new(80, 96, 160, -8);
|
gallowstree.layer1 = SkyLayer.new(80, 96, 160, -8);
|
||||||
gallowstree.resetHub = true;
|
gallowstree.resetHub = true;
|
||||||
|
|
||||||
Gameflow:AddLevel(gallowstree);
|
GameFlow:AddLevel(gallowstree);
|
||||||
|
|
||||||
-- Labyrinth
|
-- Labyrinth
|
||||||
labyrinth = Level.new();
|
labyrinth = Level.new();
|
||||||
|
@ -157,12 +159,12 @@ labyrinth.fileName = "Data\\andy2.trc";
|
||||||
labyrinth.loadScreen = "Screens\\andy2.jpg";
|
labyrinth.loadScreen = "Screens\\andy2.jpg";
|
||||||
labyrinth.horizon = true;
|
labyrinth.horizon = true;
|
||||||
labyrinth.colAddHorizon = true;
|
labyrinth.colAddHorizon = true;
|
||||||
labyrinth.rain = true;
|
labyrinth.weather = WeatherType.Rain;
|
||||||
labyrinth.storm = true;
|
labyrinth.storm = true;
|
||||||
labyrinth.laraType = LaraType.Young;
|
labyrinth.laraType = LaraType.Young;
|
||||||
labyrinth.layer1 = SkyLayer.new(80, 96, 160, -8);
|
labyrinth.layer1 = SkyLayer.new(80, 96, 160, -8);
|
||||||
|
|
||||||
Gameflow:AddLevel(labyrinth);
|
GameFlow:AddLevel(labyrinth);
|
||||||
|
|
||||||
-- Old mill
|
-- Old mill
|
||||||
oldMill = Level.new();
|
oldMill = Level.new();
|
||||||
|
@ -174,12 +176,12 @@ oldMill.fileName = "Data\\andy3.trc";
|
||||||
oldMill.loadScreen = "Screens\\andy3.jpg";
|
oldMill.loadScreen = "Screens\\andy3.jpg";
|
||||||
oldMill.horizon = true;
|
oldMill.horizon = true;
|
||||||
oldMill.colAddHorizon = true;
|
oldMill.colAddHorizon = true;
|
||||||
oldMill.rain = true;
|
oldMill.weather = WeatherType.Rain;
|
||||||
oldMill.storm = true;
|
oldMill.storm = true;
|
||||||
oldMill.laraType = LaraType.Young;
|
oldMill.laraType = LaraType.Young;
|
||||||
oldMill.layer1 = SkyLayer.new(80, 96, 160, -8);
|
oldMill.layer1 = SkyLayer.new(80, 96, 160, -8);
|
||||||
|
|
||||||
Gameflow:AddLevel(oldMill);
|
GameFlow:AddLevel(oldMill);
|
||||||
|
|
||||||
-- 13th floor
|
-- 13th floor
|
||||||
rich1 = Level.new();
|
rich1 = Level.new();
|
||||||
|
@ -194,7 +196,7 @@ rich1.colAddHorizon = true;
|
||||||
rich1.layer1 = SkyLayer.new(120, 80, 50, -4);
|
rich1.layer1 = SkyLayer.new(120, 80, 50, -4);
|
||||||
rich1.resetHub = true;
|
rich1.resetHub = true;
|
||||||
|
|
||||||
Gameflow:AddLevel(rich1);
|
GameFlow:AddLevel(rich1);
|
||||||
|
|
||||||
-- Escape with the Iris
|
-- Escape with the Iris
|
||||||
iris = Level.new();
|
iris = Level.new();
|
||||||
|
@ -208,7 +210,7 @@ iris.horizon = true;
|
||||||
iris.colAddHorizon = true;
|
iris.colAddHorizon = true;
|
||||||
iris.layer1 = SkyLayer.new(120, 80, 50, -4);
|
iris.layer1 = SkyLayer.new(120, 80, 50, -4);
|
||||||
|
|
||||||
Gameflow:AddLevel(iris);
|
GameFlow:AddLevel(iris);
|
||||||
|
|
||||||
-- Security breach
|
-- Security breach
|
||||||
sec = Level.new();
|
sec = Level.new();
|
||||||
|
@ -222,4 +224,4 @@ sec.horizon = true;
|
||||||
sec.colAddHorizon = true;
|
sec.colAddHorizon = true;
|
||||||
sec.layer1 = SkyLayer.new(120, 80, 50, -4);
|
sec.layer1 = SkyLayer.new(120, 80, 50, -4);
|
||||||
|
|
||||||
Gameflow:AddLevel(sec);
|
GameFlow:AddLevel(sec);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue