From 9f389430058dd8c3023c3ed6adb503f0469a4afb Mon Sep 17 00:00:00 2001 From: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Sat, 6 Jan 2024 13:36:18 +0100 Subject: [PATCH] Update scripts structure --- Scripts/Gameflow.lua | 4 ++-- Scripts/{ => Levels}/New_Level.lua | 0 Scripts/{ => Levels}/Title.lua | 0 Scripts/Strings.lua | 18 ++++++++---------- 4 files changed, 10 insertions(+), 12 deletions(-) rename Scripts/{ => Levels}/New_Level.lua (100%) rename Scripts/{ => Levels}/Title.lua (100%) diff --git a/Scripts/Gameflow.lua b/Scripts/Gameflow.lua index c7729fd45..2b1f2f0f3 100644 --- a/Scripts/Gameflow.lua +++ b/Scripts/Gameflow.lua @@ -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" diff --git a/Scripts/New_Level.lua b/Scripts/Levels/New_Level.lua similarity index 100% rename from Scripts/New_Level.lua rename to Scripts/Levels/New_Level.lua diff --git a/Scripts/Title.lua b/Scripts/Levels/Title.lua similarity index 100% rename from Scripts/Title.lua rename to Scripts/Levels/Title.lua diff --git a/Scripts/Strings.lua b/Scripts/Strings.lua index 80826595f..a7f6a7678 100644 --- a/Scripts/Strings.lua +++ b/Scripts/Strings.lua @@ -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)