|
Hi, G.H. wrote:
would like to learn how can system as Ivan-Assen Ivanov describe be implemented. Maybe there is some simple open source game that use this concept?
you may want to have a look at my game engine "Ca3DE", where I implemented a Lua binding for map scripting. It supports a type system for binding to objects of a hierarchy of C++ classes and management for coroutines, so that functions calls like "wait(5);" and "thread(myfunc);" etc. are possible.
The relevant portions of the code are open-source (i.e. the MOD/game code), you find the latest package at <http://www.ca3d-engine.de/forum/viewtopic.php?f=6&p=2611#p2611>, the main website is <http://www.ca3d-engine.de>.
Ca3DE uses Lua also for the in-game console system as well as the GUI system, but while you can see all the Lua scripts and C++ header files, the C++ side of the implementation is currently not open.
Best regards, Carsten -- Ca3D - Engine http://www.Ca3D-Engine.de Carsten Fuchs http://www.Ca3D-Engine.de/c_Carsten.php