2022-09-16 14:54:13 +01:00
|
|
|
-- Place in this Lua script all the levels of your game
|
2022-08-06 16:59:43 +03:00
|
|
|
-- Title is mandatory and must be the first level.
|
|
|
|
|
2022-08-16 13:21:57 +03:00
|
|
|
-- Intro image is a splash screen which appears before actual loading screen.
|
|
|
|
-- If you don't want it to appear, just remove this line.
|
2022-08-06 17:38:35 +03:00
|
|
|
|
|
|
|
Flow.SetIntroImagePath("Screens\\main.jpg")
|
2022-08-16 13:21:57 +03:00
|
|
|
|
|
|
|
-- This image should be used for static title screen background (as in TR1-TR3).
|
|
|
|
-- For now it is not implemented.
|
|
|
|
|
2022-08-06 17:38:35 +03:00
|
|
|
Flow.SetTitleScreenImagePath("Screens\\main.jpg")
|
2022-08-06 16:59:43 +03:00
|
|
|
|
2022-10-26 15:34:55 +01:00
|
|
|
-- Disable/enable flycheat globally
|
|
|
|
|
|
|
|
Flow.EnableFlyCheat(true)
|
2022-08-04 05:23:56 +03:00
|
|
|
|
2022-08-06 16:59:43 +03:00
|
|
|
--------------------------------------------------
|
|
|
|
|
2022-08-04 05:23:56 +03:00
|
|
|
-- Title level
|
2021-12-01 15:31:39 +03:00
|
|
|
|
2022-08-04 05:23:56 +03:00
|
|
|
title = Level.new()
|
2021-12-01 15:31:39 +03:00
|
|
|
|
2022-08-04 20:06:28 +03:00
|
|
|
title.ambientTrack = "108"
|
2022-08-04 05:23:56 +03:00
|
|
|
title.levelFile = "Data\\title.ten"
|
|
|
|
title.scriptFile = "Scripts\\title.lua"
|
|
|
|
title.loadScreenFile = "Screens\\Main.png"
|
2021-12-01 15:31:39 +03:00
|
|
|
|
2022-08-04 05:23:56 +03:00
|
|
|
Flow.AddLevel(title)
|
2021-12-01 15:31:39 +03:00
|
|
|
|
2022-08-06 16:59:43 +03:00
|
|
|
--------------------------------------------------
|
|
|
|
|
2022-08-04 05:23:56 +03:00
|
|
|
-- First test level
|
2022-08-06 16:59:43 +03:00
|
|
|
|
2022-08-04 05:23:56 +03:00
|
|
|
test = Level.new()
|
2021-12-01 15:31:39 +03:00
|
|
|
|
2022-08-04 20:06:28 +03:00
|
|
|
test.nameKey = "level_test"
|
2022-08-16 13:21:57 +03:00
|
|
|
test.scriptFile = "Scripts\\New_Level.lua"
|
2022-08-04 20:06:28 +03:00
|
|
|
test.ambientTrack = "108"
|
|
|
|
test.levelFile = "Data\\TestLevel.ten"
|
2022-08-04 05:23:56 +03:00
|
|
|
test.loadScreenFile = "Screens\\rome.jpg"
|
2022-08-06 16:59:43 +03:00
|
|
|
|
|
|
|
-- 0 is no weather, 1 is rain, 2 is snow.
|
|
|
|
-- Strength varies from 0 to 1 (floating-point value, e.g. 0.5 means half-strength).
|
|
|
|
|
2022-08-04 05:23:56 +03:00
|
|
|
test.weather = 0
|
|
|
|
test.weatherStrength = 1
|
2022-08-06 16:59:43 +03:00
|
|
|
|
2021-12-01 15:31:39 +03:00
|
|
|
test.horizon = true
|
2022-08-04 20:06:28 +03:00
|
|
|
test.farView = 20
|
2022-02-13 20:38:55 +00:00
|
|
|
test.layer1 = Flow.SkyLayer.new(Color.new(255, 0, 0), 15)
|
2022-08-04 20:06:28 +03:00
|
|
|
test.fog = Flow.Fog.new(Color.new(0, 0, 0), 12, 20)
|
2021-12-01 15:31:39 +03:00
|
|
|
|
2022-08-06 16:59:43 +03:00
|
|
|
-- Presets for inventory item placement.
|
|
|
|
|
2021-12-01 15:31:39 +03:00
|
|
|
test.objects = {
|
2022-02-13 20:38:55 +00:00
|
|
|
InventoryItem.new(
|
2021-12-01 15:31:39 +03:00
|
|
|
"tut1_ba_cartouche1",
|
2022-09-13 21:28:38 +01:00
|
|
|
ObjID.PUZZLE_ITEM3_COMBO1,
|
2021-12-01 15:31:39 +03:00
|
|
|
0,
|
|
|
|
0.5,
|
|
|
|
Rotation.new(0, 0, 0),
|
|
|
|
RotationAxis.Y,
|
|
|
|
-1,
|
|
|
|
ItemAction.USE
|
|
|
|
),
|
2022-02-13 20:38:55 +00:00
|
|
|
InventoryItem.new(
|
2021-12-01 15:31:39 +03:00
|
|
|
"tut1_ba_cartouche2",
|
2022-09-13 21:28:38 +01:00
|
|
|
ObjID.PUZZLE_ITEM3_COMBO2,
|
2021-12-01 15:31:39 +03:00
|
|
|
0,
|
|
|
|
0.5,
|
|
|
|
Rotation.new(0, 0, 0),
|
|
|
|
RotationAxis.Y,
|
|
|
|
-1,
|
|
|
|
ItemAction.USE
|
|
|
|
),
|
2022-02-13 20:38:55 +00:00
|
|
|
InventoryItem.new(
|
2021-12-01 15:31:39 +03:00
|
|
|
"tut1_ba_cartouche",
|
2022-09-13 21:28:38 +01:00
|
|
|
ObjID.PUZZLE_ITEM3,
|
2021-12-01 15:31:39 +03:00
|
|
|
0,
|
|
|
|
0.5,
|
|
|
|
Rotation.new(0, 0, 0),
|
|
|
|
RotationAxis.Y,
|
|
|
|
-1,
|
|
|
|
ItemAction.USE
|
|
|
|
),
|
2022-02-13 20:38:55 +00:00
|
|
|
InventoryItem.new(
|
2021-12-01 15:31:39 +03:00
|
|
|
"tut1_hand_orion",
|
2022-09-13 21:28:38 +01:00
|
|
|
ObjID.PUZZLE_ITEM6,
|
2021-12-01 15:31:39 +03:00
|
|
|
0,
|
|
|
|
0.5,
|
|
|
|
Rotation.new(270, 180, 0),
|
|
|
|
RotationAxis.Y,
|
|
|
|
-1,
|
|
|
|
ItemAction.USE
|
|
|
|
),
|
2022-02-13 20:38:55 +00:00
|
|
|
InventoryItem.new(
|
2021-12-01 15:31:39 +03:00
|
|
|
"tut1_hand_sirius",
|
2022-09-13 21:28:38 +01:00
|
|
|
ObjID.PUZZLE_ITEM8,
|
2021-12-01 15:31:39 +03:00
|
|
|
0,
|
|
|
|
0.5,
|
|
|
|
Rotation.new(270, 180, 0),
|
|
|
|
RotationAxis.X,
|
|
|
|
-1,
|
|
|
|
ItemAction.USE
|
|
|
|
)
|
2022-08-04 05:23:56 +03:00
|
|
|
}
|
2021-12-01 15:31:39 +03:00
|
|
|
|
2022-08-07 00:55:40 +01:00
|
|
|
Flow.AddLevel(test)
|