Lua ScriptEngine - Remember global variables

BlitzMax Forums/BlitzMax Programming/Lua ScriptEngine - Remember global variables

I can think of two ways and there is probably a better way than either of these.

1> Make your main loop be in the script file. So instead of having a while loop or something in your blitz program just call a script that have a loop in it. the script basically never exits. It loops calling your program to do the rendering.

2> Have a set/get of funcitons the script can call to set values in your blitz program. That way they never go away.