Update scripts structure

This commit is contained in:
Lwmte 2024-01-06 13:36:18 +01:00
parent 860b44223b
commit 9f38943005
4 changed files with 10 additions and 12 deletions

View file

@ -43,7 +43,7 @@ title = Level.new()
title.ambientTrack = "108"
title.levelFile = "Data\\title.ten"
title.scriptFile = "Scripts\\title.lua"
title.scriptFile = "Scripts\\Levels\\title.lua"
title.loadScreenFile = "Screens\\Main.png"
Flow.AddLevel(title)
@ -55,7 +55,7 @@ Flow.AddLevel(title)
test = Level.new()
test.nameKey = "level_test"
test.scriptFile = "Scripts\\New_Level.lua"
test.scriptFile = "Scripts\\Levels\\New_Level.lua"
test.ambientTrack = "108"
test.levelFile = "Data\\TestLevel.ten"
test.loadScreenFile = "Screens\\rome.jpg"

View file

@ -1,15 +1,7 @@
local strings =
{
--[[
Level name strings
--]]
lara_home = { "Lara's Home" },
test_level = { "Test Level" },
title = { "Title" },
--[[
Inventory item strings
--]]
-- Inventory item strings
binoculars = { "Binoculars" },
crossbow = { "Crossbow" },
crossbow_explosive_ammo = { "Crossbow Explosive Ammo" },
@ -63,6 +55,12 @@ local strings =
waterskin_small_2l = { "Small Waterskin (2L)" },
waterskin_small_3l = { "Small Waterskin (3L)" },
waterskin_small_empty = { "Small Waterskin (Empty)" },
-- Level name strings
lara_home = { "Lara's Home" },
test_level = { "Test Level" },
title = { "Title" },
}
TEN.Flow.SetStrings(strings)