Added dynamic lua file loading & refresh
Added engine.Close()
This commit is contained in:
parent
e9f0bc17a6
commit
2488eeff58
3 changed files with 69 additions and 7 deletions
6
lua/test copy.lua
Normal file
6
lua/test copy.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
function engine.KeyPressed(key)
|
||||
if (key == KEY_ESCAPE) then
|
||||
engine.Close()
|
||||
end
|
||||
end
|
10
lua/test.lua
Normal file
10
lua/test.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
function engine.KeyReleased(key)
|
||||
print("Released key: " .. key)
|
||||
end
|
||||
|
||||
function engine.KeyPressed(key)
|
||||
print("Pressed key: " .. key)
|
||||
end
|
||||
|
||||
GLOBAL_TEST = 5
|
Loading…
Add table
Add a link
Reference in a new issue