Here is my question:
when i use the minified version of cocos2.2 chipmunk does not get loaded.
I checked files locations etc etc… looks like the code never reaches the part in the .min file which replaces jsloader.js work.
thus not adding chipmunk.js to the javascript global space.
If your directory is the same as expanded files structure, you could just defined “chipmunk:true” in cocos2d.js. JSLoader will search the chipmunk file in the default path of ‘…/chipmunk/chipmunk.js’
If your directory is different from default structure, you could define it as: “chipmunk: …/…/balabala/chipmunk.js”. Then the JSLoader will search it in your custom path.
Look like this:
(function () {
var d = document;
var c = {
COCOS2D_DEBUG:2, //0 to turn debug off, 1 for basic debug, and 2 for full debug
box2d:false,
chipmunk:' ../.../balabala/chipmunk.js', //It defines your custom path.
showFPS:true,
frameRate:60,
loadExtension:false,
renderMode:0, //Choose of RenderMode: 0(default), 1(Canvas only), 2(WebGL only)
tag:'gameCanvas', //the dom element to run cocos2d on
engineDir:'../cocos2d/',
//SingleEngineFile:'',
appFiles:[
'src/resource.js',
'src/myApp.js'//add your own files in order here
]
};