cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 490 forks source link

Asset Manager Can change code logic? #1265

Closed VivekFitkariwala closed 9 years ago

VivekFitkariwala commented 9 years ago

Hi, I am new to cocos2d-js and using 3.2 version. In Asset Manager its given that you can download the js file, so can we replace the file main.js, app.js? Also changing the game logic through Asset Manager?

Thanks

pandamicro commented 9 years ago

Yes, the AssetsManager is meant to support hot update of scripts and assets. You can refer to its documentation and the upgrade guide for some details:

http://www.cocos2d-x.org/docs/manual/framework/html5/v3/assets-manager/en http://www.cocos2d-x.org/docs/manual/framework/html5/release-notes/v3.2rc0/upgrade-guide/en