2021-12-01 15:31:39 +03:00
|
|
|
-- Place in this LUA script all the levels of your game
|
|
|
|
-- Title is mandatory and must be the first level
|
|
|
|
|
2022-02-13 20:38:55 +00:00
|
|
|
local Flow = TEN.Flow
|
|
|
|
local Level = Flow.Level
|
|
|
|
local Color = TEN.Color
|
|
|
|
local Rotation = TEN.Rotation
|
|
|
|
local InventoryItem = Flow.InventoryItem
|
2022-02-14 23:10:29 +00:00
|
|
|
local InvID = Flow.InvID
|
|
|
|
local RotationAxis = Flow.RotationAxis
|
|
|
|
local ItemAction = Flow.ItemAction
|
2022-02-13 20:38:55 +00:00
|
|
|
|
2021-12-01 15:31:39 +03:00
|
|
|
-- Title level
|
2022-05-06 01:47:54 +10:00
|
|
|
Flow.SetIntroImagePath("Screens\\Main.png")
|
2022-02-13 20:38:55 +00:00
|
|
|
Flow.SetTitleScreenImagePath("Screens\\Title.png")
|
|
|
|
Flow.SetFarView(210)
|
2021-12-01 15:31:39 +03:00
|
|
|
|
|
|
|
title = Level.new();
|
|
|
|
|
|
|
|
title.ambientTrack = "108_A8_Coastal";
|
2022-05-17 13:25:41 +03:00
|
|
|
title.levelFile = "Data\\title.ten";
|
2021-12-01 15:31:39 +03:00
|
|
|
title.scriptFile = "Scripts\\title.lua";
|
|
|
|
title.loadScreenFile = "Screens\\rome.jpg";
|
|
|
|
|
2022-02-13 20:38:55 +00:00
|
|
|
Flow.AddLevel(title);
|
2021-12-01 15:31:39 +03:00
|
|
|
|
|
|
|
-- Test
|
|
|
|
test = Level.new();
|
|
|
|
|
|
|
|
test.nameKey = "level_andrea1";
|
|
|
|
test.scriptFile = "Scripts\\andrea1.lua";
|
|
|
|
test.ambientTrack = "108_A8_Coastal";
|
2022-05-17 13:25:41 +03:00
|
|
|
test.levelFile = "Data\\andrea1.ten";
|
2021-12-01 15:31:39 +03:00
|
|
|
test.loadScreenFile = "Screens\\rome.jpg";
|
|
|
|
test.weather = 1;
|
|
|
|
test.weatherStrength = 1;
|
|
|
|
test.horizon = true
|
|
|
|
test.farView = 10
|
|
|
|
test.colAddHorizon = true
|
2022-02-13 20:38:55 +00:00
|
|
|
test.layer1 = Flow.SkyLayer.new(Color.new(255, 0, 0), 15)
|
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-02-14 23:10:29 +00:00
|
|
|
InvID.PUZZLE_ITEM3_COMBO1,
|
2021-12-01 15:31:39 +03:00
|
|
|
0,
|
|
|
|
0.5,
|
|
|
|
Rotation.new(0, 0, 0),
|
|
|
|
RotationAxis.Y,
|
|
|
|
-1,
|
|
|
|
ItemAction.USE
|
|
|
|
),
|
|
|
|
myObj,
|
2022-02-13 20:38:55 +00:00
|
|
|
InventoryItem.new(
|
2021-12-01 15:31:39 +03:00
|
|
|
"tut1_ba_cartouche2",
|
2022-02-14 23:10:29 +00:00
|
|
|
InvID.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-02-14 23:10:29 +00:00
|
|
|
InvID.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-02-14 23:10:29 +00:00
|
|
|
InvID.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-02-14 23:10:29 +00:00
|
|
|
InvID.PUZZLE_ITEM8,
|
2021-12-01 15:31:39 +03:00
|
|
|
0,
|
|
|
|
0.5,
|
|
|
|
Rotation.new(270, 180, 0),
|
|
|
|
RotationAxis.X,
|
|
|
|
-1,
|
|
|
|
ItemAction.USE
|
|
|
|
)
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2022-02-13 20:38:55 +00:00
|
|
|
Flow.AddLevel(test);
|