Game Development Community

embedding a scripting language in an engine

by Paul Yoskowitz · in Torque 3D Professional · 11/19/2014 (5:48 am) · 1 replies

http://www.gamedev.net/page/resources/_/technical/general-programming/implementing-a-meta-system-in-c-r3905

#1
11/19/2014 (6:09 am)
Sweet article - Luabind is very nice, but last I checked it wasn't "endorsed" as fully Lua 5.2.3 compatible. In fact, the last version I saw only said it was compatible with 5.1 - but it very likely "just works." It just makes me nervous - I hate debugging templates....

Luna (http://www.roostertailgames.com/Luna.aspx - not mine, but this is my slightly tweaked version) is another great option and the binding, while manual, is very simple - see this project for an example: https://github.com/RichardRanft/imgmgr. The only real downside is you have to make your Lua-accessible methods follow the Lua function signature.