port PampaDroid from cocos2d to cocos2d