Skip to content

Commit

Permalink
modular chipmunk
Browse files Browse the repository at this point in the history
  • Loading branch information
zilongshanren committed Jun 5, 2017
1 parent af07d51 commit 4293164
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions extends.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@ if (!cc.runtime) {
if (!(CC_EDITOR && Editor.isMainProcess)) {
require('./extensions/ccpool/CCNodePool.js');
require('./extensions/ccpool/CCPool.js');

if (!CC_JSB) {
require('./cocos2d/actions');
require('./external/chipmunk/chipmunk.js');
}
}

if (!CC_EDITOR || !Editor.isMainProcess) {
require('./cocos2d/deprecated');
}
}
6 changes: 6 additions & 0 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,5 +218,11 @@
"./cocos2d/render-texture/CCRenderTextureCanvasRenderCmd.js",
"./cocos2d/render-texture/CCRenderTextureWebGLRenderCmd.js"
]
},
{
"name": "chipmunk",
"entries": [
"./external/chipmunk/chipmunk.js"
]
}
]

0 comments on commit 4293164

Please sign in to comment.