mirror of https://github.com/axmolengine/axmol.git
Merge branch 'iss1489-AssetsManager' of https://github.com/minggo/cocos2d-x into iss1489-AssetsManager
This commit is contained in:
commit
27f093ea12
|
@ -2,19 +2,24 @@ This sample shows how to use AssetsManager to auto-update application resources(
|
||||||
|
|
||||||
In this sample, there is a scene which contains three items:
|
In this sample, there is a scene which contains three items:
|
||||||
* enter
|
* enter
|
||||||
Start to run script.
|
|
||||||
|
Start to run script.
|
||||||
* reset
|
* reset
|
||||||
Delete downloaded resources and delete recorded version code.
|
|
||||||
|
Delete downloaded resources and delete recorded version code.
|
||||||
* update
|
* update
|
||||||
Download new version of package if it exits.
|
|
||||||
|
Download new version of package if it exits.
|
||||||
|
|
||||||
You can use this sample like this:
|
You can use this sample like this:
|
||||||
* Run original version application(refered as v1)
|
* Run original version application(refered as v1)
|
||||||
|
|
||||||
```
|
```
|
||||||
start application
|
start application
|
||||||
click "enter"
|
click "enter"
|
||||||
```
|
```
|
||||||
* Run new version application(v2)
|
* Run new version application(v2)
|
||||||
|
|
||||||
```
|
```
|
||||||
start application
|
start application
|
||||||
click "update"
|
click "update"
|
||||||
|
@ -22,6 +27,7 @@ click "enter"
|
||||||
```
|
```
|
||||||
You will find the changes.
|
You will find the changes.
|
||||||
* Run v1 again after running v2
|
* Run v1 again after running v2
|
||||||
|
|
||||||
```
|
```
|
||||||
start application
|
start application
|
||||||
click "reset"
|
click "reset"
|
||||||
|
|
Loading…
Reference in New Issue