integrate entity/component model with cocos2d