Jump to content
  • Advertisement
Sign in to follow this  
elendil_bzh

Classes in Python or C++ ?

This topic is 4777 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know how to interface C++ code with python with boost::python and use python in c++ code, but the problem is : How do I make my scripting engine ? I see several solutions : - A class EntityRenderable code in C++ used for representing all contents. And with Python, create classes like Character, Creature, etc. who inherits from EntityRenderable. - In C++ : all base-classes (EntityRenderable, Character, Player, etc...) In Python : use this base-classes for create instances or other classes which inherits from them. - Run the game in Python and use C++ just for graphics, sound, inputs. I have already create classes like GraphicEngine, SoundManager, EventManager, TextureManager, etc. in c++. So, my question is : what is the best solution ? Not only the easier but the solution which permits to have an easily moddable game. Thank you. PS : Sorry for my english...

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!