RPG framework using COCOS2D-X