@@ -5,6 +5,31 @@ Cocos2d-html5
5
5
It incorporates the same high level api as “Cocos2d JS-binding engine” and compatible with Cocos2d-X.
6
6
It currently supports canvas and WebGL renderer.
7
7
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
+
8
33
Cross Platform
9
34
-------------
10
35
* Popular browsers: Chrome 14+, Safari 5.0+, IE9+, Firefox 3.5+.
@@ -41,12 +66,13 @@ Contact us
41
66
* Forum: [ http://forum.cocos2d-x.org ] [ 5 ]
42
67
* Twitter: [ http://www.twitter.com/cocos2dhtml5 ] [ 6 ]
43
68
* Sina Microblog: [ http://t.sina.com.cn/cocos2dhtml5 ] [ 7 ]
44
-
69
+
45
70
[ 1 ] : http://www.cocos2d-x.org " Cocos2d-html5 "
46
71
[ 2 ] : http://www.cocos2d-x.org " Cocos2d-X "
47
72
[ 3 ] : http://www.cocos2d-x.org " www.cocos2d-x.org "
48
73
[ 4 ] : http://www.cocos2d-x.org/wiki/Reference " API References "
49
74
[ 5 ] : http://forum.cocos2d-x.org " http://forum.cocos2d-x.org "
50
75
[ 6 ] : http://www.twitter.com/cocos2dhtml5 " http://www.twitter.com/cocos2dhtml5 "
51
76
[ 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