mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Improve TestLevel.lua.
This commit is contained in:
parent
c4ccf3cdc5
commit
b7e323e462
1 changed files with 10 additions and 2 deletions
|
@ -3,9 +3,17 @@
|
|||
local Util = require("Util")
|
||||
Util.ShortenTENCalls()
|
||||
|
||||
-- Called when entering a level, not called when loading from a save
|
||||
LevelFuncs.OnStart = function() end
|
||||
|
||||
-- Called only when loading from a save
|
||||
LevelFuncs.OnLoad = function() end
|
||||
|
||||
LevelFuncs.OnSave = function() end
|
||||
LevelFuncs.OnControlPhase = function() end
|
||||
|
||||
-- dt stands for "delta time", and holds the time in seconds since the last call to OnControlPhase
|
||||
LevelFuncs.OnControlPhase = function(dt) end
|
||||
|
||||
LevelFuncs.OnEnd = function() end
|
||||
|
||||
-- An example function which prints a string and leaves it on screen for 1 second.
|
||||
|
@ -114,4 +122,4 @@ LevelFuncs.EmitHaloOnActionPush = function(Triggerer)
|
|||
Effects.EmitParticle(pos, velocity, 2, 1, rot, Color.new(color * 0.5, color * 0.5, color), Color.new(color * 0.2, color * 0.1, color), 2, 16, 64, 1, false, false)
|
||||
Effects.EmitLight(pos, Color.new(color * 0.5, color * 0.5, color), 7)
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue