Choosing the correct wrapping method?
Posted: Wed Sep 13, 2006 11:28 pm
Ok, I'm working on a new Linux FPS, but my C++ skills aren't all that great. I love Python, though. But, I can't decide which path to take...
[1] Use SWIG to write Irrlicht code in Python
[2] Write the game in C++ and use SWIG to make Python the scripting language
Either way, I must have a scripting engine. [2] would be the easiest for this. But, like I said, my C++ skills are crap. [1] is the easiest for the actual game programming, but I would have to write my own interpreter and VM for the scripting (I'm assuming I can't use SWIG to expose Python functions to Ruby/Lua).
So, which path should I take? (please don't try and suggest any languages other than C++ or Python)
[1] Use SWIG to write Irrlicht code in Python
[2] Write the game in C++ and use SWIG to make Python the scripting language
Either way, I must have a scripting engine. [2] would be the easiest for this. But, like I said, my C++ skills are crap. [1] is the easiest for the actual game programming, but I would have to write my own interpreter and VM for the scripting (I'm assuming I can't use SWIG to expose Python functions to Ruby/Lua).
So, which path should I take? (please don't try and suggest any languages other than C++ or Python)