Integrated multiple orientation support into cocos base code