Game Components Program Learning

http://www.learn-cocos2d.com/2010/06/prefer-composition-inheritance/


Component classes are intended as plug-ins for game logic. 

If you add a component to an entity, the entity will execute the behavior of the component: moving, shooting,animating, showing a healthbar, and so on.  


你可能感兴趣的:(Game Components Program Learning)