2022-08-16 13:21:57 +03:00
|
|
|
-- New level script file.
|
|
|
|
-- To include other script files, you can use require("filename") command.
|
|
|
|
|
|
|
|
-- Called when entering a level, either after leveljump, new game or loading game
|
|
|
|
LevelFuncs.OnStart = function() end
|
|
|
|
|
|
|
|
-- Called after loading from a save
|
|
|
|
LevelFuncs.OnLoad = function() end
|
|
|
|
|
|
|
|
-- Called after saving game
|
|
|
|
LevelFuncs.OnSave = function() end
|
|
|
|
|
|
|
|
-- Called on every frame of the game
|
|
|
|
-- dt stands for "delta time", and holds the time in seconds since the last call to OnControlPhase
|
2023-12-20 20:58:51 +00:00
|
|
|
LevelFuncs.OnLoop = function(dt) end
|
2022-08-16 13:21:57 +03:00
|
|
|
|
|
|
|
-- Called when level is ended, either after leveljump, quitting to title or loading game
|
|
|
|
LevelFuncs.OnEnd = function() end
|
|
|
|
|
|
|
|
|
|
|
|
-- An example function which prints a string and leaves it on screen for 1 second.
|
|
|
|
-- Argument should be typed in TE trigger manager window's argument text field.
|
|
|
|
|
|
|
|
LevelFuncs.PrintText = function(Triggerer, Argument)
|
|
|
|
local TestText = DisplayString(Argument, 100, 100, Color.new(250,250,250))
|
|
|
|
ShowString(TestText, 1)
|
2022-09-03 16:56:21 +01:00
|
|
|
end
|