Skip to content

Commit 20aac93

Browse files
committed
Merge pull request #1 from cocos2d/master
merge
2 parents a4914eb + 891e120 commit 20aac93

File tree

47 files changed

+2679
-927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2679
-927
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
cocos2d-js
44
===========
5-
Cocos2d-JS provides a console tool that makes the development of CH5 and JSB application more simpler and much convenient. You can use it to create a new project, publish it to android, iOS, Mac OS or web, and it's very easy to use.
5+
6+
Cocos2d-JS is Cocos2d-x engine's javascript version. It support full Cocos2d-x features with a set of simplified javascript friendly APIs.
7+
8+
Cocos2d-JS provides a consistent development experience for whichever platform you want to distribute to, both web and native. "Code once, run everywhere" is incredibly easy and natural in Cocos2d-JS. With one single javascript code base, you can run your game on both web browsers and native platform including Mac OS, Windows, iOS, Android. This will bring your game great opportunities in almost all canals of distribution.
9+
10+
Furthermore, javascript friendly API makes your game development experience a breeze, easy to code, test and distribute. Cocos2d-JS also offers Cocos Console, a script tool, to simplify the creation of projects and let you start coding right away. You can use it to create a new project and publish it to android, iOS, Mac OS or web.
611

712
##Setup
813

frameworks/cocos2d-html5

Submodule cocos2d-html5 updated 100 files

frameworks/js-bindings/bindings/auto/api/jsb_cocos2dx_auto_api.js

Lines changed: 87 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -328,20 +328,6 @@ getFragmentShaderLog : function (
328328
return ;
329329
},
330330

331-
/**
332-
* @method initWithByteArrays
333-
* @param {char} arg0
334-
* @param {char} arg1
335-
* @return {bool}
336-
*/
337-
initWithByteArrays : function (
338-
char,
339-
char
340-
)
341-
{
342-
return false;
343-
},
344-
345331
/**
346332
* @method bindAttribLocation
347333
* @param {char} arg0
@@ -368,20 +354,6 @@ int
368354
{
369355
},
370356

371-
/**
372-
* @method initWithFilenames
373-
* @param {String} arg0
374-
* @param {String} arg1
375-
* @return {bool}
376-
*/
377-
initWithFilenames : function (
378-
str,
379-
str
380-
)
381-
{
382-
return false;
383-
},
384-
385357
/**
386358
* @method getUniformLocationForName
387359
* @param {char} arg0
@@ -413,23 +385,41 @@ getVertexShaderLog : function (
413385
},
414386

415387
/**
416-
* @method setUniformsForBuiltins
417-
* @param {kmMat4} kmmat4
418-
*/
419-
setUniformsForBuiltins : function(
420-
kmmat4
388+
* @method initWithByteArrays
389+
* @param {char} arg0
390+
* @param {char} arg1
391+
* @return {bool}
392+
*/
393+
initWithByteArrays : function (
394+
char,
395+
char
421396
)
422397
{
398+
return false;
423399
},
424400

425401
/**
426-
* @method getMaterialProgramID
427-
* @return {unsigned int}
402+
* @method initWithFilenames
403+
* @param {String} arg0
404+
* @param {String} arg1
405+
* @return {bool}
428406
*/
429-
getMaterialProgramID : function (
407+
initWithFilenames : function (
408+
str,
409+
str
410+
)
411+
{
412+
return false;
413+
},
414+
415+
/**
416+
* @method setUniformsForBuiltins
417+
* @param {kmMat4} kmmat4
418+
*/
419+
setUniformsForBuiltins : function(
420+
kmmat4
430421
)
431422
{
432-
return 0;
433423
},
434424

435425
/**
@@ -497,15 +487,13 @@ char
497487
},
498488

499489
/**
500-
* @method setUniformLocationWith1i
501-
* @param {int} arg0
502-
* @param {int} arg1
490+
* @method link
491+
* @return {bool}
503492
*/
504-
setUniformLocationWith1i : function (
505-
int,
506-
int
493+
link : function (
507494
)
508495
{
496+
return false;
509497
},
510498

511499
/**
@@ -589,13 +577,15 @@ int
589577
},
590578

591579
/**
592-
* @method link
593-
* @return {bool}
580+
* @method setUniformLocationWith1i
581+
* @param {int} arg0
582+
* @param {int} arg1
594583
*/
595-
link : function (
584+
setUniformLocationWith1i : function (
585+
int,
586+
int
596587
)
597588
{
598-
return false;
599589
},
600590

601591
/**
@@ -1177,6 +1167,16 @@ Texture2D : function (
11771167
*/
11781168
cc.EventListener = {
11791169

1170+
/**
1171+
* @method setEnabled
1172+
* @param {bool} arg0
1173+
*/
1174+
setEnabled : function (
1175+
bool
1176+
)
1177+
{
1178+
},
1179+
11801180
/**
11811181
* @method clone
11821182
* @return {cc.EventListener}
@@ -1187,6 +1187,16 @@ clone : function (
11871187
return cc.EventListener;
11881188
},
11891189

1190+
/**
1191+
* @method isEnabled
1192+
* @return {bool}
1193+
*/
1194+
isEnabled : function (
1195+
)
1196+
{
1197+
return false;
1198+
},
1199+
11901200
/**
11911201
* @method checkAvailable
11921202
* @return {bool}
@@ -3145,11 +3155,13 @@ getDelayPerUnit : function (
31453155
* @method initWithSpriteFrames
31463156
* @param {Array} arg0
31473157
* @param {float} arg1
3158+
* @param {unsigned int} arg2
31483159
* @return {bool}
31493160
*/
31503161
initWithSpriteFrames : function (
31513162
array,
3152-
float
3163+
float,
3164+
int
31533165
)
31543166
{
31553167
return false;
@@ -7885,18 +7897,16 @@ AtlasNode : function (
78857897
cc.DrawNode = {
78867898

78877899
/**
7888-
* @method drawQuadraticBezier
7900+
* @method drawTriangle
78897901
* @param {PointObject} arg0
78907902
* @param {PointObject} arg1
78917903
* @param {PointObject} arg2
7892-
* @param {unsigned int} arg3
7893-
* @param {Color4FObject} arg4
7904+
* @param {Color4FObject} arg3
78947905
*/
7895-
drawQuadraticBezier : function (
7906+
drawTriangle : function (
78967907
point,
78977908
point,
78987909
point,
7899-
int,
79007910
color4f
79017911
)
79027912
{
@@ -7922,22 +7932,6 @@ clear : function (
79227932
{
79237933
},
79247934

7925-
/**
7926-
* @method drawTriangle
7927-
* @param {PointObject} arg0
7928-
* @param {PointObject} arg1
7929-
* @param {PointObject} arg2
7930-
* @param {Color4FObject} arg3
7931-
*/
7932-
drawTriangle : function (
7933-
point,
7934-
point,
7935-
point,
7936-
color4f
7937-
)
7938-
{
7939-
},
7940-
79417935
/**
79427936
* @method init
79437937
* @return {bool}
@@ -7962,6 +7956,24 @@ color4f
79627956
{
79637957
},
79647958

7959+
/**
7960+
* @method drawQuadraticBezier
7961+
* @param {PointObject} arg0
7962+
* @param {PointObject} arg1
7963+
* @param {PointObject} arg2
7964+
* @param {unsigned int} arg3
7965+
* @param {Color4FObject} arg4
7966+
*/
7967+
drawQuadraticBezier : function (
7968+
point,
7969+
point,
7970+
point,
7971+
int,
7972+
color4f
7973+
)
7974+
{
7975+
},
7976+
79657977
/**
79667978
* @method drawCubicBezier
79677979
* @param {PointObject} arg0
@@ -15862,7 +15874,7 @@ getInstance : function (
1586215874
/**
1586315875
* @class SAXParser
1586415876
*/
15865-
cc.SAXParser = {
15877+
cc.PlistParser = {
1586615878

1586715879
/**
1586815880
* @method init
@@ -16341,12 +16353,12 @@ bool
1634116353

1634216354
/**
1634316355
* @method getColorSpaceHolder
16344-
* @return {Color3BObject}
16356+
* @return {Color4BObject}
1634516357
*/
1634616358
getColorSpaceHolder : function (
1634716359
)
1634816360
{
16349-
return cc.Color3B;
16361+
return cc.Color4B;
1635016362
},
1635116363

1635216364
/**
@@ -16371,9 +16383,9 @@ float
1637116383

1637216384
/**
1637316385
* @method setColorSpaceHolder
16374-
* @param {Color3BObject} arg0
16375-
*/
16376-
setColorSpaceHolder : function (
16386+
* @param {Color4BObject|Color3BObject} color4b
16387+
*/
16388+
setColorSpaceHolder : function(
1637716389
color3b
1637816390
)
1637916391
{

frameworks/js-bindings/bindings/auto/api/jsb_cocos2dx_extension_auto_api.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ float
3232

3333
/**
3434
* @method initWithSpriteFrameName
35-
* @param {char|char} char
35+
* @param {String|String} str
3636
* @param {RectObject} rect
3737
* @return {bool|bool}
3838
*/
3939
initWithSpriteFrameName : function(
40-
char,
40+
str,
4141
rect
4242
)
4343
{
@@ -162,13 +162,13 @@ getOriginalSize : function (
162162

163163
/**
164164
* @method initWithFile
165-
* @param {char|char|RectObject|char} char
166-
* @param {RectObject|RectObject|char} rect
165+
* @param {String|String|RectObject|String} str
166+
* @param {RectObject|RectObject|String} rect
167167
* @param {RectObject} rect
168168
* @return {bool|bool|bool|bool}
169169
*/
170170
initWithFile : function(
171-
char,
171+
str,
172172
rect,
173173
rect
174174
)
@@ -252,13 +252,13 @@ float
252252

253253
/**
254254
* @method create
255-
* @param {char|RectObject|char|char} char
256-
* @param {RectObject|char|RectObject} rect
255+
* @param {String|RectObject|String|String} str
256+
* @param {RectObject|String|RectObject} rect
257257
* @param {RectObject} rect
258258
* @return {cc.Scale9Sprite|cc.Scale9Sprite|cc.Scale9Sprite|cc.Scale9Sprite|cc.Scale9Sprite}
259259
*/
260260
create : function(
261-
char,
261+
str,
262262
rect,
263263
rect
264264
)
@@ -268,12 +268,12 @@ rect
268268

269269
/**
270270
* @method createWithSpriteFrameName
271-
* @param {char|char} char
271+
* @param {String|String} str
272272
* @param {RectObject} rect
273273
* @return {cc.Scale9Sprite|cc.Scale9Sprite}
274274
*/
275275
createWithSpriteFrameName : function(
276-
char,
276+
str,
277277
rect
278278
)
279279
{

0 commit comments

Comments
 (0)