Skip to content

Commit fe6b014

Browse files
committed
Comments describing Cocos2d-html changes in Readme.mdown
1 parent 64c8f4f commit fe6b014

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

README.mdown

+28-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@ Cocos2d-html5
55
It incorporates the same high level api as “Cocos2d JS-binding engine” and compatible with Cocos2d-X.
66
It currently supports canvas and WebGL renderer.
77

8+
TimM's Tweaks
9+
--------------
10+
This modified branch contains two major changes:
11+
12+
* Various documentation comments throughout the code have been fixed/patched
13+
to be consistent and to not throw errors when generating documentation.
14+
* A conf.json has been added to support generating JavaScript documentation
15+
using the Node version of jsdoc 3.x.
16+
17+
This was done not because I'm naturally anal about documentation, but because
18+
I also am using jsdoc to create FlowType-style declarations for Cocos2d-html5.
19+
The version created right now is VERY preliminary. As I test it with more
20+
of Cocos2d-html5 I'll post more information. These commands should create
21+
the current version of the FlowType declarations file:
22+
23+
```shell
24+
npm install
25+
jsdoc -c conf.json > cocos2d.d.js
26+
```
27+
28+
I just hacked this together over the past couple of days, so don't expect it to
29+
all work perfectly yet. Once this is working you should be able to use
30+
[FlowType][9] to statically analyze your code, verifying that you're (mostly)
31+
using Cocos2d-html5 correctly.
32+
833
Cross Platform
934
-------------
1035
* Popular browsers: Chrome 14+, Safari 5.0+, IE9+, Firefox 3.5+.
@@ -41,12 +66,13 @@ Contact us
4166
* Forum: [http://forum.cocos2d-x.org][5]
4267
* Twitter: [http://www.twitter.com/cocos2dhtml5][6]
4368
* Sina Microblog: [http://t.sina.com.cn/cocos2dhtml5][7]
44-
69+
4570
[1]: http://www.cocos2d-x.org "Cocos2d-html5"
4671
[2]: http://www.cocos2d-x.org "Cocos2d-X"
4772
[3]: http://www.cocos2d-x.org "www.cocos2d-x.org"
4873
[4]: http://www.cocos2d-x.org/wiki/Reference "API References"
4974
[5]: http://forum.cocos2d-x.org "http://forum.cocos2d-x.org"
5075
[6]: http://www.twitter.com/cocos2dhtml5 "http://www.twitter.com/cocos2dhtml5"
5176
[7]: http://t.sina.com.cn/cocos2dhtml5 "http://t.sina.com.cn/cocos2dhtml5"
52-
[8]: http://bower.io "http://bower.io"
77+
[8]: http://bower.io "http://bower.io"
78+
[9]: http://flowtype.org

0 commit comments

Comments
 (0)