Jump to content
  • Advertisement
Sign in to follow this  

Classes in Python or C++ ?

This topic is 5203 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
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!