add old Cocos2d-iphone snippets