Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
qertis committed Nov 25, 2015
1 parent 6fb50f7 commit dd344e0
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Expand Up @@ -11,9 +11,12 @@ Used [spriter.js](https://github.com/flyover/spriter.js)
----------
node >= 4.0
[Google Closure Compiler](https://developers.google.com/closure/compiler/)
[compiler.jar](http://dl.google.com/closure-compiler/compiler-latest.zip)
send compiler.jar to bower_components/google-closure-library/
[compiler.jar](http://dl.google.com/closure-compiler/compiler-latest.zip) send compiler.jar to bower_components/google-closure-library/

Compile source code:
```sh
./bin/compile.sh
```

### Setup
----------
Expand Down Expand Up @@ -45,7 +48,14 @@ bower i
### Usage:
----------

Include scripts
Include cc_spriter_min.js in project.json
```json
"jsList": [
"cc_spriter_min.js"
]
```

Call cc.Spriter
```js
var spriter = new cc.Spriter(pathToScon);
spriter.setEntity(entityName);
Expand All @@ -54,9 +64,12 @@ spriter.unscheduleUpdate(); //pause
spriter.scheduleUpdate(); //resume
```

See example in demo directory

### Features:
WebGL
Not global (goog and spriter stored in closure)
~63kB size

### DEMO:
----------
Expand Down

0 comments on commit dd344e0

Please sign in to comment.