use Cocos2d-html5-v2.2.2.min directly

use Cocos2d-html5-v2.2.2.min directly
0.0 0


what is this file Cocos2d-html5-v2.2.2.min.js
in lib directory if it was the all library can i use it directly like


No, the cocos2d.js in YOUR GAME’S FOLDER holds configurations for that project, you should ALWAYS call THAT file from your index.html. In order to easily use the minified version of the engine, copy Cocos2d-html5-v2.2.2.min.js from the lib folder to your game’s folder, and then in your cocos2d.js look for the line engineDir:'SOMEPATH/cocos2d/', and comment it, then uncomment the line //SingleEngineFile:'', and change it to //SingleEngineFile:'Cocos2d-html5-v2.2.2.min.js',. In other words change:




I hope it’s clear enough.