Update gistfile1.m

Updated to be used for Cocos2D v3.1