mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fix up Gameflow.lua, Settings.lua and Strings.lua.
This commit is contained in:
parent
5d172459f1
commit
e2a40fe42e
3 changed files with 26 additions and 18 deletions
|
@ -1,10 +1,16 @@
|
|||
-- Place in this LUA script all the levels of your game
|
||||
-- Title is mandatory and must be the first level
|
||||
|
||||
local Flow = TEN.Flow
|
||||
local Level = Flow.Level
|
||||
local Color = TEN.Color
|
||||
local Rotation = TEN.Rotation
|
||||
local InventoryItem = Flow.InventoryItem
|
||||
|
||||
-- Title level
|
||||
SetIntroImagePath("SCREENS\\MAIN.PNG")
|
||||
SetTitleScreenImagePath("Screens\\Title.png")
|
||||
SetGameFarView(210)
|
||||
Flow.SetIntroImagePath("SCREENS\\MAIN.PNG")
|
||||
Flow.SetTitleScreenImagePath("Screens\\Title.png")
|
||||
Flow.SetFarView(210)
|
||||
|
||||
title = Level.new();
|
||||
|
||||
|
@ -13,7 +19,7 @@ title.levelFile = "Data\\title.trc";
|
|||
title.scriptFile = "Scripts\\title.lua";
|
||||
title.loadScreenFile = "Screens\\rome.jpg";
|
||||
|
||||
AddLevel(title);
|
||||
Flow.AddLevel(title);
|
||||
|
||||
-- Test
|
||||
test = Level.new();
|
||||
|
@ -28,10 +34,10 @@ test.weatherStrength = 1;
|
|||
test.horizon = true
|
||||
test.farView = 10
|
||||
test.colAddHorizon = true
|
||||
test.layer1 = SkyLayer.new(Color.new(255, 0, 0), 15)
|
||||
test.layer1 = Flow.SkyLayer.new(Color.new(255, 0, 0), 15)
|
||||
|
||||
test.objects = {
|
||||
InventoryObject.new(
|
||||
InventoryItem.new(
|
||||
"tut1_ba_cartouche1",
|
||||
InvItem.PUZZLE_ITEM3_COMBO1,
|
||||
0,
|
||||
|
@ -42,7 +48,7 @@ test.objects = {
|
|||
ItemAction.USE
|
||||
),
|
||||
myObj,
|
||||
InventoryObject.new(
|
||||
InventoryItem.new(
|
||||
"tut1_ba_cartouche2",
|
||||
InvItem.PUZZLE_ITEM3_COMBO2,
|
||||
0,
|
||||
|
@ -52,7 +58,7 @@ test.objects = {
|
|||
-1,
|
||||
ItemAction.USE
|
||||
),
|
||||
InventoryObject.new(
|
||||
InventoryItem.new(
|
||||
"tut1_ba_cartouche",
|
||||
InvItem.PUZZLE_ITEM3,
|
||||
0,
|
||||
|
@ -62,7 +68,7 @@ test.objects = {
|
|||
-1,
|
||||
ItemAction.USE
|
||||
),
|
||||
InventoryObject.new(
|
||||
InventoryItem.new(
|
||||
"tut1_hand_orion",
|
||||
InvItem.PUZZLE_ITEM6,
|
||||
0,
|
||||
|
@ -72,7 +78,7 @@ test.objects = {
|
|||
-1,
|
||||
ItemAction.USE
|
||||
),
|
||||
InventoryObject.new(
|
||||
InventoryItem.new(
|
||||
"tut1_hand_sirius",
|
||||
InvItem.PUZZLE_ITEM8,
|
||||
0,
|
||||
|
@ -85,4 +91,4 @@ test.objects = {
|
|||
|
||||
};
|
||||
|
||||
AddLevel(test);
|
||||
Flow.AddLevel(test);
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
-- TR5Main engine settings file
|
||||
-- Created by MontyTRC
|
||||
-- Place in this LUA script all the engine settings for your game
|
||||
-- Place in this Lua script all the engine settings for your game
|
||||
-- WARNING: bad values could make your game unplayable, please follow with attention the reference guide
|
||||
|
||||
local settings = Settings.new();
|
||||
local Flow = TEN.Flow
|
||||
|
||||
local settings = Flow.Settings.new();
|
||||
settings.screenWidth = 1920;
|
||||
settings.screenHeight = 1080;
|
||||
settings.enableDynamicShadows = true;
|
||||
|
@ -13,9 +15,9 @@ settings.drawingDistance = 102400;
|
|||
settings.showRendererSteps = false;
|
||||
settings.showDebugInfo = true;
|
||||
settings.errorMode = ErrorMode.WARN;
|
||||
SetSettings(settings);
|
||||
Flow.SetSettings(settings);
|
||||
|
||||
local anims = Animations.new();
|
||||
local anims = Flow.Animations.new();
|
||||
anims.crawlExtended = true;
|
||||
anims.crouchRoll = true;
|
||||
anims.crawlspaceSwandive = true;
|
||||
|
@ -23,4 +25,4 @@ anims.monkeyTurn180 = true;
|
|||
anims.monkeyAutoJump = false;
|
||||
anims.oscillateHang = true;
|
||||
anims.pose = false;
|
||||
SetAnimations(anims);
|
||||
Flow.SetAnimations(anims);
|
||||
|
|
|
@ -1281,7 +1281,7 @@ local strings = {
|
|||
}
|
||||
}
|
||||
|
||||
SetStrings(strings)
|
||||
TEN.Flow.SetStrings(strings)
|
||||
|
||||
local languages = {
|
||||
"English",
|
||||
|
@ -1294,5 +1294,5 @@ local languages = {
|
|||
"Russian"
|
||||
}
|
||||
|
||||
SetLanguageNames(languages)
|
||||
TEN.Flow.SetLanguageNames(languages)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue