C
Chrstfer
Im making a basic game, just to hone my skills and learn as much as i
can. Id like to add a scripting language for the NPC and map
generation stuff, to script AI for enemies, add new enemies, add new
map tiles, etc. Im thinking about Python, but boost:ython seems to
want me to use the python as the program, and call functions on a
library written in C++, instead of the C++ being the controller. Is
there a way to have python scripts define new enemies and their AI,
new tiles and their interactions, etc, and have the C++ be the
program? Id like to be able to expose functions, classes and objects
to Python. (Classes being those than can be derived from, objects
being actual objects of other classes). Is this possible?
If not, is there a C++ wrapper for Lua? the lua C API would probably
work, but id like to have some abstraction between the C API and my C+
+, mainly because i dont feel like id be up to using the C API, from
the cursory looks ive had of it as an option. I will look into that
and see if i was right or not.
can. Id like to add a scripting language for the NPC and map
generation stuff, to script AI for enemies, add new enemies, add new
map tiles, etc. Im thinking about Python, but boost:ython seems to
want me to use the python as the program, and call functions on a
library written in C++, instead of the C++ being the controller. Is
there a way to have python scripts define new enemies and their AI,
new tiles and their interactions, etc, and have the C++ be the
program? Id like to be able to expose functions, classes and objects
to Python. (Classes being those than can be derived from, objects
being actual objects of other classes). Is this possible?
If not, is there a C++ wrapper for Lua? the lua C API would probably
work, but id like to have some abstraction between the C API and my C+
+, mainly because i dont feel like id be up to using the C API, from
the cursory looks ive had of it as an option. I will look into that
and see if i was right or not.