However, it has recently occurred to me that I have no idea how to properly program logic for these scenes individually.
The only ways I know I could do this is:
Many "if" or "case" statements
-- this would be in lua
if level1 then
level1logic()
elseif level2 then
level2logic()
elseif level3 then
level3logic()
end
-- and so on and so on
I have a strange gut feeling that this method might be too slow and confusing.
Scenes calling lua functions
// this would be in C++
scene::callLogic()
{
luaCall("functionName");
}
// and then
currentScene->callLogic();
This is the method I like the most, but I have a feeling it won't work
These are the two methods for scripting logic that I was able to come up with, but I'm not sure which one is the best, or even if they're the correct approach at all.
I would really appreciate the help.