mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00

* Work * Work * Update Video.cpp * Update Video.cpp * Update Video.cpp * Update Video.cpp * Update Video.cpp * Working playback * Update Video.cpp * Cleanups * Additions * Update Video.cpp * Formatting * Correct pausing/resuming * Remove .mov extension, as it's not supported * Use vector instead of array * Implement SetIntroVideoPath * Swap intro image and intro video to better reflect original legal sequence * Update Gameflow.lua * Simplify synchronization with VLC thread * Use Vector2i for sizes, only fetch video dimensions once * Rename callbacks, move logging callback to a class * Update Video.cpp * Update CHANGELOG.md * Removed empty OnDisplayFrame event * Rename * Stop video player if user pressed Alt+F4 * Allow background video playback * Update Video.cpp * Update Video.cpp * Fixed init errors * Restore .mov default extension for video playback * Update RendererDraw2D.cpp * Add video streaming for rectangular faces of room geometry * Remove magic and use normalized UVs instead * Use VIDEO_SPRITE_ID instead of NO_VALUE * Added more scripting API functions for video playback * Correct variable names * Shorten notification * Add GetVideoDominantColor * Do proper cleanup when alt+F4ing during video playback * Change game loop deinit to avoid several issues with cleaning up * Organise `VideoHandler` class * Randomize glow angle * Update comment * Update Video.cpp * Update Video.cpp * Fix issues with frame drops in exclusive mode * Optimize CPU usage in exclusive mode --------- Co-authored-by: Sezz <sezzary@outlook.com>
134 lines
2.7 KiB
Lua
134 lines
2.7 KiB
Lua
-- Place in this Lua script all the levels of your game
|
|
-- Title is mandatory and must be the first level.
|
|
|
|
-- Intro image is a splash screen which appears before actual loading screen.
|
|
-- If you don't want it to appear, just remove this line.
|
|
|
|
Flow.SetIntroImagePath("Screens\\main.jpg")
|
|
|
|
-- Intro video plays right after or instead of intro image, if specified.
|
|
-- If you don't want it to appear, just remove this line.
|
|
|
|
--Flow.SetIntroVideoPath("FMV\\core.mp4")
|
|
|
|
-- Set overall amount of secrets in game.
|
|
-- If set to 0, secrets won't be displayed in statistics.
|
|
|
|
Flow.SetTotalSecretCount(5)
|
|
|
|
-- Enable/Disable Point Filter (square, unsmoothed pixels).
|
|
|
|
Flow.EnablePointFilter(false)
|
|
|
|
-- Enable/Disable saving and loading of savegames.
|
|
|
|
Flow.EnableLoadSave(true)
|
|
|
|
-- Disable/enable flycheat globally
|
|
|
|
Flow.EnableFlyCheat(true)
|
|
|
|
-- Disable/enable Lara drawing in title level
|
|
|
|
Flow.EnableLaraInTitle(false)
|
|
|
|
-- Disable/enable level selection in title level
|
|
|
|
Flow.EnableLevelSelect(true)
|
|
|
|
-- Disable/enable mass pickup (collect all pickups at once)
|
|
|
|
Flow.EnableMassPickup(true)
|
|
|
|
--------------------------------------------------
|
|
|
|
-- Title level
|
|
|
|
title = Level.new()
|
|
|
|
title.ambientTrack = "108"
|
|
title.levelFile = "Data\\title.ten"
|
|
title.scriptFile = "Scripts\\Levels\\title.lua"
|
|
title.loadScreenFile = "Screens\\Main.png"
|
|
|
|
Flow.AddLevel(title)
|
|
|
|
--------------------------------------------------
|
|
|
|
-- First test level
|
|
|
|
test = Level.new()
|
|
|
|
test.nameKey = "level_test"
|
|
test.scriptFile = "Scripts\\Levels\\New_Level.lua"
|
|
test.ambientTrack = "108"
|
|
test.levelFile = "Data\\Tut1_water.ten"
|
|
test.loadScreenFile = "Screens\\rome.jpg"
|
|
|
|
-- 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).
|
|
|
|
test.weather = 0
|
|
test.weatherStrength = 1
|
|
|
|
test.horizon = true
|
|
test.farView = 20
|
|
test.layer1 = Flow.SkyLayer.new(Color.new(255, 0, 0), 15)
|
|
test.fog = Flow.Fog.new(Color.new(0, 0, 0), 12, 20)
|
|
|
|
-- Presets for inventory item placement.
|
|
|
|
test.objects = {
|
|
InventoryItem.new(
|
|
"tut1_ba_cartouche1",
|
|
ObjID.PUZZLE_ITEM3_COMBO1,
|
|
0,
|
|
0.5,
|
|
Rotation.new(0, 0, 0),
|
|
RotationAxis.Y,
|
|
-1,
|
|
ItemAction.USE
|
|
),
|
|
InventoryItem.new(
|
|
"tut1_ba_cartouche2",
|
|
ObjID.PUZZLE_ITEM3_COMBO2,
|
|
0,
|
|
0.5,
|
|
Rotation.new(0, 0, 0),
|
|
RotationAxis.Y,
|
|
-1,
|
|
ItemAction.USE
|
|
),
|
|
InventoryItem.new(
|
|
"tut1_ba_cartouche",
|
|
ObjID.PUZZLE_ITEM3,
|
|
0,
|
|
0.5,
|
|
Rotation.new(0, 0, 0),
|
|
RotationAxis.Y,
|
|
-1,
|
|
ItemAction.USE
|
|
),
|
|
InventoryItem.new(
|
|
"tut1_hand_orion",
|
|
ObjID.PUZZLE_ITEM6,
|
|
0,
|
|
0.5,
|
|
Rotation.new(270, 180, 0),
|
|
RotationAxis.Y,
|
|
-1,
|
|
ItemAction.USE
|
|
),
|
|
InventoryItem.new(
|
|
"tut1_hand_sirius",
|
|
ObjID.PUZZLE_ITEM8,
|
|
0,
|
|
0.5,
|
|
Rotation.new(270, 180, 0),
|
|
RotationAxis.X,
|
|
-1,
|
|
ItemAction.USE
|
|
)
|
|
}
|
|
|
|
Flow.AddLevel(test)
|