Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Recently I've read somewhere that it is not a good idea to inherit from CCSprite class when making your game objects. In my CBES each Game Object has :

-PhysicsComponent(responsible for updating position according to box2d bodies),

-InputComponent

-GraphicsComponent (responsible for drawing the animation of the game object, and drawing some procedural graphics with opengl)

...

The question is : What will be the best way to store animations and display them using my GraphicsComponent, as well as the way to make some procedural drawing in OpenGL (since I won't have any -draw() method to override to accomplish custom drawings). I am pretty friendly with OpenGL ES2.0 unlike Cocos2d... and for me it is much easier to create my own framebuffers, shaders ... and render the game on my own, but sometimes of course I need sprite functionality and animations, and I would like to use for that cocos2d functionality.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.