cocos2d-x js模版修改

建立cocos2d-x項目,導入引擎模版,避免每次都拷貝引擎到項目中,修改路徑: html

D:\commons\cocos2d-x\cocos2d-2.1rc0-x-2.1.3\template\msvc\CCAppWiz.win32\Scripts\1033下的js文件以下: spa

    // Additional Inlcude Directories
            // var strAddIncludeDir = '.;..\\Classes';
            // strAddIncludeDir += ';$(SolutionDir)cocos2dx';
            // strAddIncludeDir += ';$(SolutionDir)cocos2dx\\include';
            // strAddIncludeDir += ';$(SolutionDir)cocos2dx\\kazmath\\include';
            // strAddIncludeDir += ';$(SolutionDir)cocos2dx\\platform\\win32';
            // strAddIncludeDir += ';$(SolutionDir)cocos2dx\\platform\\third_party\\win32';
            // strAddIncludeDir += ';$(SolutionDir)cocos2dx\\platform\\third_party\\win32\\OGLES'; orm


            


      var strAddIncludeDir = '.;..\\Classes';
            strAddIncludeDir += ';D:\\commons\\cocos2d-x\\cocos2d-2.1rc0-x-2.1.3\\cocos2dx';
            strAddIncludeDir += ';D:\\commons\\cocos2d-x\\cocos2d-2.1rc0-x-2.1.3\\CocosDenshion\\include';
strAddIncludeDir +=';D:\\commons\\cocos2d-x\\cocos2d-2.1rc0-x-2.1.3\\extensions';
            strAddIncludeDir += ';D:\\commons\\cocos2d-x\\cocos2d-2.1rc0-x-2.1.3\\cocos2dx\\include';
            strAddIncludeDir += ';D:\\commons\\cocos2d-x\\cocos2d-2.1rc0-x-2.1.3\\cocos2dx\\kazmath\\include';
            strAddIncludeDir += ';D:\\commons\\cocos2d-x\\cocos2d-2.1rc0-x-2.1.3\\cocos2dx\\platform\\win32';
            strAddIncludeDir += ';D:\\commons\\cocos2d-x\\cocos2d-2.1rc0-x-2.1.3\\cocos2dx\\platform\\third_party\\win32';
            strAddIncludeDir += ';D:\\commons\\cocos2d-x\\cocos2d-2.1rc0-x-2.1.3\\cocos2dx\\platform\\third_party\\win32\\OGLES';
            strAddIncludeDir += ';D:\\commons\\cocos2d-x\\cocos2d-2.1rc0-x-2.1.3\\external';
            strAddIncludeDir += ';D:\\commons\\cocos2d-x\\cocos2d-2.1rc0-x-2.1.3\\external\\chipmunk\\include\\chipmunk';
            htm

在網上找到一個更方便的js模版  感謝「孤狼」的提供: ip

http://gl.paea.cn/contents/da8c13fc757455b7.html get

注意修改連接庫;有些是不須要的(引擎自帶的demo的 動態連接庫) it

相關文章
相關標籤/搜索