Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
268 commits
Select commit Hold shift + click to select a range
ca67dfa
Fixed #3614: Avoid CCLabelTTF enter in infinite loop while character'…
pandamicro Jan 9, 2014
12e8f4a
Fixed #3612: add jsdocs to cc.NodeRGBA and cc.LayerRGBA
dingpinglv Jan 9, 2014
f38dba9
Merge pull request #1472 from dingpinglv/Iss3612_CCTableViewBug
dingpinglv Jan 9, 2014
5f15fe7
issue #3623 local variable to be used as a global
xingsenma Jan 9, 2014
d537fd4
issue #3623 Schedule doesn't restart when widget is re-added after be…
xingsenma Jan 9, 2014
54c04fd
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
xingsenma Jan 9, 2014
c4c7b39
Merge pull request #1473 from xingsenma/develop
dingpinglv Jan 9, 2014
76755bf
Merge pull request #1470 from pandamicro/develop
dingpinglv Jan 9, 2014
dc4cc37
Merge pull request #1474 from pandamicro/develop
dingpinglv Jan 9, 2014
cf7c60a
Fixed #3602: WEBGL now share the same viewport as canvas version
pandamicro Jan 9, 2014
e57023c
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
pandamicro Jan 9, 2014
f410556
Merge pull request #1475 from pandamicro/develop
dingpinglv Jan 9, 2014
90dad30
Fixed #3659: Add retina support to CCEGLView
pandamicro Jan 10, 2014
da4e8c6
Merge pull request #1477 from pandamicro/develop
dingpinglv Jan 10, 2014
cf29cda
closed #3666: setCascadeColorEnabled and setCascadeOpacityEnabled of …
xingsenma Jan 10, 2014
1e48df2
Merge pull request #1478 from xingsenma/develop
xingsenma Jan 10, 2014
2fd0970
Fixed #3659: Fixed a bug related to the event location conversion
pandamicro Jan 10, 2014
0a7e707
Merge pull request #1479 from pandamicro/develop
dingpinglv Jan 10, 2014
e7af721
Fixed #3673: Add swallow option to cc.Layer’s setTouchEnabled functio…
pandamicro Jan 13, 2014
87bf9cf
Merge pull request #1480 from pandamicro/develop
dingpinglv Jan 13, 2014
0f744ea
Modify to fit jsdoc style
pandamicro Jan 13, 2014
142d903
Issue: Refactoring cc.Node's nodeToParentTransform for better perform…
dingpinglv Jan 13, 2014
4eee53f
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Jan 13, 2014
715fdc6
Merge pull request #1482 from dingpinglv/Iss_RefactoringNode
dingpinglv Jan 13, 2014
e3a66f0
issue #3690: Rewrite CCNS.js
SmallAiTT Jan 14, 2014
617e4fc
issue #3690: Rewrite CCNS.js
SmallAiTT Jan 14, 2014
5aae010
Merge pull request #1485 from SmallAiTT/iss3690_ccns_dev3.0
dingpinglv Jan 14, 2014
0c51371
Merge pull request #1484 from SmallAiTT/iss3690_ccns_dev
dingpinglv Jan 14, 2014
27a3b54
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
pandamicro Jan 14, 2014
56d73e0
Fixed #3689: Correction of split logic in CCLabelTTF
pandamicro Jan 14, 2014
8ea2db5
Merge pull request #1486 from pandamicro/develop
dingpinglv Jan 14, 2014
7857e84
Move CCFormatHelper’s content into CCFileUtils
pandamicro Jan 14, 2014
425d193
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
pandamicro Jan 14, 2014
665f59d
closed #3652: armature animation does not display correctly in canvas
xingsenma Jan 14, 2014
3dc3f19
issue #3652: armature animation does not display correctly in canvas
xingsenma Jan 14, 2014
b483de2
Merge pull request #1487 from xingsenma/develop
dingpinglv Jan 14, 2014
bfb2f96
Refactor #3690: Move CCNS.js content into CCCommon.js
pandamicro Jan 14, 2014
e7be3cb
Merge pull request #1488 from pandamicro/develop
dingpinglv Jan 14, 2014
8eb3cdd
Fixed #3709: Refactored cc.Screen to support all browsers
pandamicro Jan 15, 2014
8a8b449
Merge pull request #1489 from pandamicro/develop
dingpinglv Jan 15, 2014
6f507ba
issue #3652: correct explain for ccs.Widget
xingsenma Jan 16, 2014
fb14eef
issue #3652: correct the super of visit for ccs.Layout
xingsenma Jan 16, 2014
765cb29
issue #3652: add convert string for setText
xingsenma Jan 16, 2014
01adb75
closed #3652: armature animation does not display correctly in canvas
xingsenma Jan 16, 2014
098f1f9
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
xingsenma Jan 16, 2014
ddc2e52
Merge pull request #1493 from xingsenma/develop
dingpinglv Jan 16, 2014
d5ebed6
issue #3731: Fix bugs of clone gui widget
xingsenma Jan 16, 2014
3cd0bf6
Merge pull request #1496 from xingsenma/develop
dingpinglv Jan 16, 2014
22f14d3
Fixed #3588: correct a mistake of cc.SpriteFrameCache
dingpinglv Jan 17, 2014
87390b0
Merge pull request #1499 from dingpinglv/Iss3588_RefactorArrayClear
dingpinglv Jan 17, 2014
b2cf2e2
Closed #3733 : add a function "allLayers" to cc.TMXTiledMap
dingpinglv Jan 17, 2014
d338f7c
Merge pull request #1500 from dingpinglv/Iss3733_AllLayersToTMXTiledMap
dingpinglv Jan 17, 2014
d1b2dd0
Closed 3800: refactoring cc.Point and cc.Size to support two types of…
dingpinglv Jan 21, 2014
0a1a840
Merge pull request #1502 from dingpinglv/Iss3800_RefactorPointSize
dingpinglv Jan 21, 2014
8dafac4
issue #3767 Add DrawingPrimitive function for cc.DrawNode
xingsenma Jan 22, 2014
5ae444a
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
xingsenma Jan 22, 2014
2b78d24
issue #3667: Add DrawingPrimitive function for cc.DrawNode
xingsenma Jan 22, 2014
b30f39a
Update CCPhysicsSprite.js
samael65535 Jan 22, 2014
aeee456
Closed 3816: Add a condition to check textureCoord to cc.Sprite
dingpinglv Jan 22, 2014
e8582c1
Merge pull request #1505 from dingpinglv/Iss3816_SpriteTextureCoord
dingpinglv Jan 22, 2014
5d98e31
Merge pull request #1504 from xingsenma/develop
dingpinglv Jan 22, 2014
7aeff59
Merge pull request #1503 from samael65535/patch-1
dingpinglv Jan 22, 2014
8ba798a
Fixed #2245: fixed a bug of Editbox's setPosition
dingpinglv Jan 22, 2014
62b25d0
Merge pull request #1506 from dingpinglv/Iss2245_FixEditboxBug
dingpinglv Jan 22, 2014
c729bb1
Fixed #3819: Use WebAudio on iOS
pandamicro Jan 23, 2014
092ec26
Update samples
pandamicro Jan 23, 2014
b1c372b
Merge pull request #1510 from pandamicro/develop
dingpinglv Jan 23, 2014
586fcdd
Fixed #3824: EGLView now works well without initialization of director
pandamicro Jan 23, 2014
66489de
Merge pull request #1511 from pandamicro/develop
dingpinglv Jan 23, 2014
52a4b24
Fixed #3825: Fixed a bug of SimpleAudioEngine that its state is incor…
dingpinglv Jan 24, 2014
83a2b09
Closed #3825: remove the test codes.
dingpinglv Jan 24, 2014
b7f7d45
Merge pull request #1512 from dingpinglv/Iss3825_SimpleAudioEngine
dingpinglv Jan 24, 2014
3674dad
Fixed #3838: Allow retina display only on apple device to resolve the…
pandamicro Jan 24, 2014
54f8fdb
Merge pull request #1514 from pandamicro/develop
Jan 24, 2014
508816f
Merge branch 'develop-3.0' of https://github.com/cocos2d/cocos2d-html…
pandamicro Jan 25, 2014
618425e
Merge pull request #1513 from pandamicro/develop
dingpinglv Jan 25, 2014
5eaa787
Fixed #1516: _tileProperties should be a dictionary object
dingpinglv Jan 25, 2014
53d0f48
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Jan 25, 2014
4c21287
Merge pull request #1517 from dingpinglv/Iss1516_tileProperties
dingpinglv Jan 25, 2014
50e3198
Fixed #3841: Use event on cc.canvas to make full screen request
pandamicro Jan 25, 2014
5a8903a
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
pandamicro Jan 25, 2014
f2e2a3f
update Tab
pandamicro Jan 25, 2014
5afc874
Update tab2
pandamicro Jan 25, 2014
051a3ed
Issue #3840: in/hasOwnProperty removed in CCUserDefault and SimpleAud…
pandamicro Jan 25, 2014
1bd2f3d
Issue #3840: missed in SimpleAudioEngine
pandamicro Jan 25, 2014
3c5a3f9
Closed #3842: fixed cc.EditBox's position is wrong with the new EGLVi…
dingpinglv Jan 25, 2014
e3ba4b8
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Jan 25, 2014
9f49331
Merge pull request #1519 from dingpinglv/Iss3842_CCEditbox
dingpinglv Jan 25, 2014
9750aa2
Issue #3840: Removed in files pack 2
pandamicro Jan 25, 2014
718182e
Issue #3840: Removed in files pack 3
pandamicro Jan 25, 2014
4c656f5
Merge pull request #1518 from pandamicro/develop
dingpinglv Jan 25, 2014
311c040
Issue #3840: Removed in files pack 4
pandamicro Jan 25, 2014
ed0678c
Issue #3840: Removed in files pack 5
pandamicro Jan 25, 2014
72c0b42
Issue #3840: Removed in files pack 6
pandamicro Jan 25, 2014
3e1bcb1
Issue #3840: Reverse some change to avoid closure compiler advanced m…
pandamicro Jan 25, 2014
640f7b3
Issue #3840: Remove ‘in’s
pandamicro Jan 25, 2014
35728ed
Fixed #3825: add a white list to simpleAudioEngine
dingpinglv Jan 25, 2014
17d3c9d
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Jan 25, 2014
4335942
Fixed #3825: modify _maxAudioInstance value
dingpinglv Jan 25, 2014
d3de35e
Merge pull request #1520 from dingpinglv/Iss3825_SimpleAudioEngine
dingpinglv Jan 25, 2014
3d0f87c
Issue #3840: Add undefined check to avoid 0/null/… value equals false
pandamicro Jan 25, 2014
c080a60
Fixed #3825: update the multiple audio white list
dingpinglv Jan 26, 2014
25845c8
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Jan 26, 2014
8f2e618
Fixed #3825: Delete the test codes.
dingpinglv Jan 26, 2014
146cfbe
Merge pull request #1521 from dingpinglv/Iss3825_SimpleAudioEngine
dingpinglv Jan 26, 2014
fbd180d
Issue #3840: Tiny changes
pandamicro Jan 26, 2014
4f1117b
Merge pull request #1523 from pandamicro/develop
dingpinglv Jan 26, 2014
7a59665
Fixed #3825: fixed a bug of SimpleAudioEngineForMobile that the isMus…
dingpinglv Jan 26, 2014
9b2daf1
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Jan 26, 2014
6e2da42
Merge pull request #1525 from dingpinglv/Iss3825_SimpleAudioEngine
dingpinglv Jan 26, 2014
03ee572
Fixed #3825: modify SimpleAudioEngine's _maxAudioInstance to 5
dingpinglv Jan 26, 2014
a7b4906
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Jan 26, 2014
5fe7d46
Merge pull request #1526 from dingpinglv/Iss3825_SimpleAudioEngine
dingpinglv Jan 26, 2014
12601b4
Fixed #3860: A warning message is proposed when name conflict detecte…
pandamicro Jan 26, 2014
6a6e993
Update samples
pandamicro Jan 26, 2014
3877ecd
Merge pull request #1527 from pandamicro/develop
dingpinglv Jan 26, 2014
abe386e
Closed #3839: Information on "event" class missing
dingpinglv Jan 27, 2014
2175789
Merge pull request #1528 from dingpinglv/Iss3839_EventJsDoc
dingpinglv Jan 27, 2014
e3e6ffe
Fixed #3876: Adjust the calculation result of division in EGLView
pandamicro Jan 28, 2014
ec03ff5
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
pandamicro Jan 28, 2014
4e15ced
Added analytics plugin protocol.
Jan 28, 2014
d6683c8
Merge pull request #1530 from pandamicro/develop
dingpinglv Jan 28, 2014
c660431
Merge branch 'develop-3.0' of https://github.com/cocos2d/cocos2d-html…
pandamicro Jan 28, 2014
99d2d62
Created ProtocolAds.js.
Jan 29, 2014
33ed1a9
Deep-copy verts in drawPoly for consistency
csaftoiu Jan 30, 2014
77c9950
Merge pull request #1534 from csaftoiu/patch-1
dingpinglv Feb 1, 2014
5398992
Merge pull request #1533 from NatWeiss/add-ads
Feb 2, 2014
7108085
fixed #2459: Because the interval attribute of DeviceMotionEvent is r…
ShengxiangChen Feb 5, 2014
00a6482
fixed #2459: because the interval attribute of DeviceMotionEvent is r…
ShengxiangChen Feb 5, 2014
5d561a1
Merge pull request #1539 from ShengxiangChen/issue2459_accelerometerBug
dingpinglv Feb 5, 2014
d5d00af
Log when a file cannot be loaded
Feb 7, 2014
2952f28
Merge pull request #1541 from NatWeiss/patch-1
dingpinglv Feb 7, 2014
3d7a125
closed #3909: Correct _strStringValue to _stringValue for gui LabelBM…
xingsenma Feb 7, 2014
26e2171
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
xingsenma Feb 7, 2014
14daad8
Merge pull request #1542 from xingsenma/develop
dingpinglv Feb 7, 2014
596813b
Closed #3910: Modify vertex attribute flag name to adapt with JSB
dingpinglv Feb 7, 2014
be0530b
Merge pull request #1543 from dingpinglv/Iss3910_VertexAttribFlag
dingpinglv Feb 7, 2014
4a61c7d
Complete full screen API list
pandamicro Feb 7, 2014
93f890f
Fixed #3916: Extra check for firefox mobile to avoid this issue
pandamicro Feb 7, 2014
74b27ce
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
pandamicro Feb 7, 2014
6568065
Merge pull request #1544 from pandamicro/develop
dingpinglv Feb 7, 2014
22ebc08
Closed #3875: Refactoring cc.FadeIn and cc.FadeOut to fix a bug that …
dingpinglv Feb 10, 2014
ef3317d
Merge pull request #1548 from dingpinglv/Iss3875_FadeInFadeOut
dingpinglv Feb 10, 2014
2840cf0
Refactor #3985: arguments length check replaced by undefined check in…
pandamicro Feb 10, 2014
a851c87
Refactor #3985: arguments length check replaced by undefined check in…
pandamicro Feb 10, 2014
83eb0a2
Bug in SceneReader setPropertyFromJsonDict
Feb 10, 2014
bc2de10
Merge pull request #1550 from jandujar/issue_1549
dingpinglv Feb 11, 2014
b439018
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
pandamicro Feb 11, 2014
d2a2a3b
Merge pull request #1551 from pandamicro/develop
dingpinglv Feb 11, 2014
79cb7e6
Refactor #3985: Correction of bug
pandamicro Feb 11, 2014
687c84e
Refactor #3985: Make undefined check more compatible
pandamicro Feb 11, 2014
5fd806a
Merge pull request #1552 from pandamicro/develop
dingpinglv Feb 11, 2014
984c5a8
fullPathForFilename is smart enough to handle URLs
Feb 15, 2014
df48420
Refactor #3985: Fix bug when margin not set in ccs.Margin
pandamicro Feb 15, 2014
777eeb9
fixed #2261: support path format
ShengxiangChen Feb 15, 2014
aebfedb
fixed #2261: support path format
ShengxiangChen Feb 15, 2014
d595980
fixed #2261: Preload resource with queuing
ShengxiangChen Feb 15, 2014
4cd8ace
Merge pull request #1558 from pandamicro/develop
dingpinglv Feb 17, 2014
d357782
Merge pull request #1557 from NatWeiss/patch-3
dingpinglv Feb 17, 2014
87f3935
extraction public function
ShengxiangChen Feb 17, 2014
ac388bf
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
ShengxiangChen Feb 17, 2014
fef9db5
Merge pull request #1560 from ShengxiangChen/issue_callback
dingpinglv Feb 17, 2014
70475ed
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
ShengxiangChen Feb 17, 2014
f2e6521
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
ShengxiangChen Feb 17, 2014
cb31943
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
ShengxiangChen Feb 17, 2014
70c4bee
Merge pull request #1559 from ShengxiangChen/issue2261_LoaderBug
dingpinglv Feb 17, 2014
f71a9d8
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
ShengxiangChen Feb 17, 2014
b14c26a
Closed #4051: cc.TMXLayer.removeChild's bug has been fixed.
dingpinglv Feb 17, 2014
aa75caf
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Feb 17, 2014
4297e23
Merge pull request #1563 from dingpinglv/Iss4051_FixTMXLayerRemoveChild
dingpinglv Feb 17, 2014
144b627
Merge pull request #1562 from ShengxiangChen/issue2261_LoaderBug
dingpinglv Feb 17, 2014
efdc86a
issue #1565 bug in CCSAXParser.js
Feb 17, 2014
6d2856f
Merge pull request #1566 from jandujar/issue_1565
dingpinglv Feb 18, 2014
a001ff0
Fixed #4051: cc.TMXLayer.removeChild's bug has been fixed.
dingpinglv Feb 18, 2014
281d28f
Merge pull request #1567 from dingpinglv/Iss4051_FixTMXLayerRemoveChild
dingpinglv Feb 18, 2014
d302bca
add setKeypadEnabled function
wuzhiming Feb 18, 2014
299bb80
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
wuzhiming Feb 18, 2014
b8ebaf7
Merge pull request #1568 from wuzhiming/develop
dingpinglv Feb 18, 2014
7b3da52
issue #4111 Fix a bug of cc.BMFontConfiguration
SmallAiTT Feb 21, 2014
b6ccd69
Merge pull request #1577 from SmallAiTT/iss_4111_fnt_2
dingpinglv Feb 21, 2014
1ea2957
Closed #4155: fixed a bug of cc.EditBox which its position is wrong w…
dingpinglv Feb 28, 2014
e00a533
Closed #4155: remove debug code
dingpinglv Feb 28, 2014
823b528
Merge pull request #1607 from dingpinglv/Iss4155_EditboxBug
dingpinglv Feb 28, 2014
e155b74
issue #4174 add some getter method .
xingsenma Mar 3, 2014
6a5ae21
issue #4174 add read "selectedState"
xingsenma Mar 3, 2014
7c3c854
issue #4174 fix scale bug for button.
xingsenma Mar 3, 2014
be6bacd
issue #4174 fix layoutParameter clone bug.
xingsenma Mar 3, 2014
717d516
issue #4174 refactor addNode and addChild for widget
xingsenma Mar 3, 2014
1886660
issue #4174 fixed frame event emit twice times
xingsenma Mar 3, 2014
d475a02
issue #4174 add removeByComponent for ComponentContainer
xingsenma Mar 3, 2014
c45c867
Merge pull request #1617 from xingsenma/develop
dingpinglv Mar 3, 2014
04d28f9
issue #4174 fixed bug for setTitleColor
xingsenma Mar 4, 2014
1209451
issue #4174 fixed bug for setTextureRect
xingsenma Mar 4, 2014
c4dc4d9
Fix legacy Function.prototype.bind support
erykwalder Mar 4, 2014
98738e2
Merge pull request #1623 from erykwalder/develop
dingpinglv Mar 5, 2014
cc0d238
issue #4174 fixed bug about setScale9Enabled for UILoadingBar
xingsenma Mar 5, 2014
4979c43
issue #4174 Refactor setColor and setOpacity.
xingsenma Mar 5, 2014
acb42bf
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
xingsenma Mar 5, 2014
61e8948
Merge pull request #1633 from xingsenma/develop
dingpinglv Mar 5, 2014
c09a1ca
Fixed a bug
ZippoLag Mar 6, 2014
4cf7996
Merge pull request #1641 from ZippoLag/patch-1
dingpinglv Mar 7, 2014
1be7e78
fixed a bug of callfunc
ShengxiangChen Mar 7, 2014
630cc0a
Merge pull request #1643 from ShengxiangChen/issue_callfunc
dingpinglv Mar 7, 2014
8a27dd8
issue #4174 add richText
xingsenma Mar 7, 2014
682d395
issue #4174 Refactor flipped
xingsenma Mar 7, 2014
e22ad27
issue #4174 Refactor setBackGroundImageColor for Layout
xingsenma Mar 7, 2014
b594a77
issue #4174 add getCustomSize method for widget
xingsenma Mar 7, 2014
8f74b9b
issue #4174 Set default enabled touch for widget
xingsenma Mar 7, 2014
a18aef4
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
xingsenma Mar 7, 2014
2e4673a
Merge pull request #1650 from xingsenma/develop
dingpinglv Mar 7, 2014
3465ce0
issue #4174 add richText.js to build.xml
xingsenma Mar 7, 2014
d6c12b9
Merge pull request #1651 from xingsenma/develop
dingpinglv Mar 7, 2014
6f436ef
Add "ie" to multiple audio white list
dingpinglv Mar 12, 2014
20cde94
Merge pull request #1678 from dingpinglv/Iss_AudioWhiteList
dingpinglv Mar 12, 2014
425300c
Update CCNode.js
LaercioAsano Mar 16, 2014
2be0825
Merge pull request #1696 from LaercioAsano/develop
dingpinglv Mar 17, 2014
476ee31
Fixed #1689: fixed the isTween bug of DragonBones-xml-data
dingpinglv Mar 18, 2014
3a3d3d4
Merge pull request #1699 from dingpinglv/Iss1689_isTween
dingpinglv Mar 18, 2014
75f6905
fix the fileutils search path bug
wuzhiming Mar 19, 2014
cd10a65
Merge pull request #1701 from wuzhiming/develop
dingpinglv Mar 19, 2014
960b4d2
Fixed a bug of Sprite that it doesn't work when its texture doesn't p…
dingpinglv Mar 19, 2014
600cc51
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Mar 19, 2014
117ec4b
Merge pull request #1703 from dingpinglv/Iss1689_isTween
dingpinglv Mar 19, 2014
e87fec4
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
bassarisse Mar 22, 2014
2ebf9c1
Multiline fixes on LabelBMFont: calculation for line break, empty lin…
bassarisse Mar 22, 2014
90f1ec8
Merge pull request #1714 from bassarisse/develop
dingpinglv Mar 24, 2014
550f58b
fix the fileutils search path bug
wuzhiming Mar 25, 2014
9f41507
fix the fileutils search path bug
wuzhiming Mar 25, 2014
421659d
Merge pull request #1718 from wuzhiming/develop
dingpinglv Mar 25, 2014
2a9b1dd
Pausing sounds when sending browser app to background (iOS 7 bug).
bassarisse Mar 26, 2014
f5b57ee
Merge pull request #1719 from bassarisse/develop
dingpinglv Mar 26, 2014
0860657
Issue: replace cc._pConst to cc.p
dingpinglv Mar 27, 2014
6b2075f
Closed #4581: Replace cc._pConst and cc._sizeConst to cc.p and cc.size
dingpinglv Mar 28, 2014
7372512
Closed #4581: update the reference of Samples submodule
dingpinglv Mar 28, 2014
5a006c0
Merge pull request #1724 from dingpinglv/Iss_ReplacePConst
dingpinglv Mar 28, 2014
feec0ca
Fixed a typo in an error log
ZippoLag Apr 2, 2014
9bae5cf
Merge pull request #1737 from ZippoLag/patch-1
dingpinglv Apr 3, 2014
4692a97
fixed a bug of loader
ShengxiangChen Apr 7, 2014
b5ebfe7
Merge pull request #1741 from ShengxiangChen/loaderbug
dingpinglv Apr 8, 2014
01cbf4a
Issue #4768: fixed a bug of cc.TextFiledTTF
dingpinglv Apr 12, 2014
4f319b1
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Apr 12, 2014
3ac4622
Issue #4768: add an assert to cc.Sprite for debug friendly
dingpinglv Apr 12, 2014
ae88135
Merge pull request #1764 from dingpinglv/Iss4768_ReleaseV223
dingpinglv Apr 12, 2014
ae376f5
Issue #4768: update the version number
dingpinglv Apr 12, 2014
84350f9
Merge pull request #1766 from dingpinglv/Iss4768_ReleaseV223
dingpinglv Apr 12, 2014
00313e0
Issue #4768: update the CHANGELOG.txt
dingpinglv Apr 14, 2014
b32aa23
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Apr 14, 2014
f7cbf9c
Merge pull request #1769 from dingpinglv/Iss4768_ReleaseV223
dingpinglv Apr 14, 2014
a7e92fb
Issue #4768: update the AUTHORS.txt
dingpinglv Apr 14, 2014
5555147
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 in…
dingpinglv Apr 14, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ lib
build
aspnet_client
node_modules
/tools/jsdoc_toolkit-2.4.0
47 changes: 41 additions & 6 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@ Core Developers:

Dingping Lv (David Lv)

Shengxiang Chen (Nero Chan)

Ricardo Quesada

Xingsen Ma

Huabin LING

Sijie Wang

Jialong Zhai

Contributors:
Name GithubID Main contribution

Dali Kilani @dadilcool added instruction to read me

Chris @hannon235 added node.js api for box2d
added SocketIO and SocketIO tests

Jason Aeschliman @jaeschliman fixed cc.Node setposition

Expand Down Expand Up @@ -101,6 +102,18 @@ Christian Schwartz @cschwartz SpriteFrame.initWithTextureFilename converted
XiaoJun Zheng @SmallAiTT _getResType error fix
cc.ScrollView bug fix
cc.LabelTTF bug fix
rewrite functions in CCNS.js with regex
refactor CCScheduler.js and CCCommon.js
cc.BMFontConfiguration bug fix
refactor cc.Application to cc.game
refactor cc.loader
refactor cc.Textur2D
refactor some functions about array operation
move sys.xxx to cc.sys.xxx
refactor some public functions in cc to private
add node.js scripts for publishing game
refactor cc.CCBReader
cc.view bug fix

Guozhu Cheng @bengol cc.SimpleAudioEngine bug fix

Expand All @@ -118,11 +131,12 @@ Luis Parravicini @luisparravicini cc.Director refactoring
typo fix

Jose Antonio @jandujar cc.ParticleSystem bug fix for CocoStudio animations
SceneReader bug fix

BoHao Tang @btspoony cc.TableView bug fix

Claudiu @csaftoiu cc.LabelTTF bug fix
cc.DrawNode bug fix
cc.DrawNode bugs fix
cc.NodeRGBA bug fix
cc.Texture2D bug fix

Expand All @@ -135,8 +149,29 @@ kuaipao @kuaipao CocoStudio GUIReader bug fix

XieDaijin @NijiadeIX CCControl bug fix

samael @samael65535 CCPhysicsSprite bug fix

NatWeiss @NatWeiss Add analytics plugin protocol ,Flurry plugin and ProtocolAds.js plugin protocol
cc.FileUtils refactoring

Andor Salga @asalga typo fix

erykwalder @erykwalder Function.prototype.bind bug fix

ZippoLag @ZippoLag cc.Application.getCurrentLanguage bug fix
typo fix

Asano @LaercioAsano cc.Node bug fix

Bruno Assarisse @bassarisse cc.LabelBMFont bug fix


Retired Core Developers:
Shengxiang Chen (Nero Chan)
Xingsen Ma

Cocos2d-x and cocos2d-html5 can not grow so fast without the active community.

Thanks to all developers who report & trace bugs, dicuss the engine usage in forum & QQ groups!
Thanks to all developers who report & trace bugs, discuss the engine usage in forum & QQ groups!

Special thanks to Ricardo Quesada for giving us lots of guidances & suggestions.
43 changes: 43 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,47 @@
ChangeLog:

Cocos2d-html5-v2.2.3 @ April.14, 2014

* Delete cc._PointConst and cc._SizeConst from cc.Node and cc.Sprite, they are very unkind for developers.
* Refactor Array clean function for better performance.
* Rewrite functions in CCNS.js with regex.
* Make cc.p and cc.size support two types of parameters.
* cc.EGLView on WebGL mode now share the same viewport as Canvas mode.
* Add retina display support for Apple devices to cc.EGLView.
* Add swallow option to cc.Layer's setTouchEnabled function
* Refactor cc.Node's nodeToParentTransform for better performance.
* Refactor FadeIn/FadeOut to fix a bug that it always start from or end up 255.
* WebAudioEngine is supported on iOS now.
* Use event on cc.canvas to make full screen.
* Add "allLayers" function to cc.TMXTiledMap.
* Refactoring CCCommon.js, delete some unused functions, rename some functions for better maintainability.
* add more jsdoc information to framework.
* Add a browser white list that support multiple audio playback at the same time.
* Removed in/hasOwnProperty usage in engine for better performance.
* Arguments length check replaced by undefined check for better performance.
* Fix legacy Function.prototype.bind support.
* Add an assert to cc.Sprite for debug friendly.

* Bugs fix:
1. Avoid CCLabelTTF enter in infinite loop while character's width larger than the dimension width
2. Add jsDoc Flags to cc.NodeRGBA and cc.LayerRGBA
3. Fixed a bug that Schedule doesn't restart when widget is re-added after being removed
4. Correction of split logic in CCLabelTTF
4. Fixed a bug of cc.Sprite that its setCascadeColorEnabled and setCascadeOpacityEnabled don't work well.
5. Fixed a bug in CCEGLView that related to the event location conversion
6. Fixed a bug of armature animation that it doesn't display correctly in Canvas Mode
7. Fixed a bug of cc.Editbox that its position is incorrect when its parent node isn't root node.
8. Fixed a bug of UILabelBMFont that variable `_strStringValue` should be `_stringValue`
9. Fixed a bug of cc.TMXLayer that its `removeChild` works incorrectly.
10. Fixed a bug of cc.FileUtils that its search path is incorrect.
11. Fixed a bug of cc.Node that it doesn't reorder after setZOrder.
12. Fixed a bug of cc.LabelBMFont that it's multiline works incorrectly.

* Known Issues:
1. Effect Advanced Lens3D doesn't work
2. ClipNodeTest effects varies in different browsers
3. Stencil of cc.ClippingNode doesn't work well with WEBGL render mode, the stencil have the right size and shape but it masks the content with a monochrome mask.

Cocos2d-html5-v2.2.2 @ Dec.31, 2013
* Resolution policy now act as a combination of cc.ContainerStrategy and cc.ContentStrategy so that user can beautifully customize its behavior.
* cc.LabelTTF's now support perfectly automatic line break with occidental and Chinese characters.
Expand Down
4 changes: 2 additions & 2 deletions HelloHTML5World/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<file name="core/platform/CCEGLView.js"/>
<file name="core/platform/CCScreen.js"/>
<file name="core/platform/CCVisibleRect.js"/>
<file name="core/cocoa/CCNS.js"/>
<file name="core/cocoa/CCAffineTransform.js"/>
<file name="core/support/CCPointExtension.js"/>
<file name="core/support/CCVertex.js"/>
Expand Down Expand Up @@ -98,7 +97,6 @@
<file name="compress/base64.js"/>
<file name="compress/gzip.js"/>
<file name="compress/zlib.min.js"/>
<file name="particle_nodes/CCFormatHelper.js"/>
<file name="particle_nodes/CCPNGReader.js"/>
<file name="particle_nodes/CCTIFFReader.js"/>
<file name="particle_nodes/CCParticleSystem.js"/>
Expand Down Expand Up @@ -197,10 +195,12 @@
<file name="CocoStudio/GUI/UIWidgets/UIButton.js"/>
<file name="CocoStudio/GUI/UIWidgets/UICheckBox.js"/>
<file name="CocoStudio/GUI/UIWidgets/UIImageView.js"/>
<file name="CocoStudio/GUI/UIWidgets/UIRichText.js"/>
<file name="CocoStudio/GUI/UIWidgets/UILabel.js"/>
<file name="CocoStudio/GUI/UIWidgets/UILabelAtlas.js"/>
<file name="CocoStudio/GUI/UIWidgets/UILabelBMFont.js"/>
<file name="CocoStudio/GUI/UIWidgets/UILoadingBar.js"/>
<file name="CocoStudio/GUI/UIWidgets/UIRichText.js"/>
<file name="CocoStudio/GUI/UIWidgets/UISlider.js"/>
<file name="CocoStudio/GUI/UIWidgets/UISwitch.js"/>
<file name="CocoStudio/GUI/UIWidgets/UITextField.js"/>
Expand Down
5 changes: 3 additions & 2 deletions HelloHTML5World/cocos2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@
return;
}

window.addEventListener('DOMContentLoaded', function () {
this.removeEventListener('DOMContentLoaded', arguments.callee, false);
var fn;
window.addEventListener('DOMContentLoaded', fn = function() {
this.removeEventListener('DOMContentLoaded', fn, false);
//first load engine file if specified
var s = d.createElement('script');
/*********Delete this section if you have packed all files into one*******/
Expand Down
1 change: 0 additions & 1 deletion HelloHTML5World/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8">
<title>Cocos2d-html5 Hello World test</title>
<link rel="icon" type="image/GIF" href="res/favicon.ico"/>
<meta name="viewport" content="user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="full-screen" content="yes"/>
<meta name="screen-orientation" content="portrait"/>
Expand Down
5 changes: 3 additions & 2 deletions HelloHTML5World/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ var cocos2dApp = cc.Application.extend({
alert("Browser doesn't support WebGL");
return false;
}
// initialize director
var director = cc.Director.getInstance();

cc.EGLView.getInstance().resizeWithBrowserSize(true);
cc.EGLView.getInstance().setDesignResolutionSize(800, 450, cc.RESOLUTION_POLICY.SHOW_ALL);

// initialize director
var director = cc.Director.getInstance();

// turn on display FPS
director.setDisplayStats(this.config['showFPS']);

Expand Down
6 changes: 3 additions & 3 deletions HelloHTML5World/src/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var s_CloseSelected = "res/CloseSelected.png";

var g_resources = [
//image
{src:s_HelloWorld},
{src:s_CloseNormal},
{src:s_CloseSelected}
s_HelloWorld,
s_CloseNormal,
s_CloseSelected

//plist

Expand Down
2 changes: 1 addition & 1 deletion cocos2d/CCImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ cc.RGB_PREMULTIPLY_APLHA = function (vr, vg, vb, va) {
* image source
* @Class
* @Construct
* @param {Array||String} data
* @param {Array|String} data
* @param {Number} size
* @param {Number} offset
*/
Expand Down
8 changes: 1 addition & 7 deletions cocos2d/CCNotificationCenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,7 @@ cc.NotificationObserver = cc.Class.extend({
* @param {cc.Class} obj
*/
performSelector:function (obj) {
if (this._target && (typeof(this._selector) == "string")) {
this._target[this._selector](obj);
} else if (this._target && (typeof(this._selector) == "function")) {
this._selector.call(this._target, obj);
} else {
this._selector(obj);
}
cc.doCallback(this._selector, this._target,obj);
},

_target:null,
Expand Down
2 changes: 1 addition & 1 deletion cocos2d/CCUserDefault.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ cc.UserDefault.getInstance = function () {
* @return {cc.UserDefault|}
*/
cc.UserDefault.purgeInstanceUserDefault = function () {
if (cc.hasOwnProperty("Browser")) { //TODO: clear() is not implemented in JSB
if (cc.Browser) { //TODO: clear() is not implemented in JSB
if (this._db) {
this._db.clear();
}
Expand Down
76 changes: 38 additions & 38 deletions cocos2d/accelerometer/CCAccelerometer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,24 @@ cc.AccelerometerDispatcher = cc.Class.extend(/** @lends cc.AccelerometerDispatch
_delegate: null,
_acceleration: null,
_deviceEvent: null,
_interval: 0,
_interval: 1/30,
_minus: 1,
_curTime:0,
init: function () {
this._acceleration = new cc.Acceleration();
this._deviceEvent = window.DeviceMotionEvent || window.DeviceOrientationEvent;
var ua = navigator.userAgent;
if (/Android/.test(ua) || (/Adr/.test(ua) && cc.Browser.type == "ucbrowser")) {
this._minus = -1;
}
var w = window;
this._deviceEvent = w.DeviceMotionEvent || w.DeviceOrientationEvent;

//TODO fix DeviceMotionEvent bug on QQ Browser version 4.1 and below.
if (cc.Browser.type == "mqqbrowser") {
this._deviceEvent = window.DeviceOrientationEvent;
}
return true;

this._deviceEventType = (this._deviceEvent == w.DeviceMotionEvent) ? "devicemotion" : "deviceorientation";
var ua = navigator.userAgent;
if (/Android/.test(ua) || (/Adr/.test(ua) && cc.Browser.type == "ucbrowser")) {
this._minus = -1;
}
},

getDelegate: function () {
Expand All @@ -89,18 +92,13 @@ cc.AccelerometerDispatcher = cc.Class.extend(/** @lends cc.AccelerometerDispatch

addDelegate: function (delegate) {
this._delegate = delegate;
var acc = this.didAccelerate.bind(this);

var acc = this.didAccelerate.bind(this), w = window, scheduler = cc.Director.getInstance().getScheduler();
if (this._delegate) {
if (this._deviceEvent == window.DeviceMotionEvent)
window.addEventListener('devicemotion', acc, false);
else
window.addEventListener('deviceorientation', acc, false);
w.addEventListener(this._deviceEventType, acc, false);
scheduler.scheduleUpdateForTarget(this);
} else {
if (this._deviceEvent == window.DeviceMotionEvent)
window.removeEventListener('devicemotion', acc);
else
window.removeEventListener('deviceorientation', acc);
w.removeEventListener(this._deviceEventType, acc);
scheduler.unscheduleUpdateForTarget(this);
}
},

Expand All @@ -115,48 +113,50 @@ cc.AccelerometerDispatcher = cc.Class.extend(/** @lends cc.AccelerometerDispatch
return;
}

var now = Date.now();
if ((now - this._acceleration.timestamp) / 1000 < this._interval) return;

var mAcceleration = this._acceleration;
if (this._deviceEvent == window.DeviceMotionEvent) {
var acceleration = eventData.accelerationIncludingGravity;
this._acceleration.x = this._minus * acceleration.x * 0.1;
this._acceleration.y = this._minus * acceleration.y * 0.1;
this._acceleration.z = acceleration.z * 0.1;
var eventAcceleration = eventData.accelerationIncludingGravity;
mAcceleration.x = this._minus * eventAcceleration.x * 0.1;
mAcceleration.y = this._minus * eventAcceleration.y * 0.1;
mAcceleration.z = eventAcceleration.z * 0.1;
}
else {
this._acceleration.x = (eventData.gamma / 90) * 0.981;
this._acceleration.y = -(eventData.beta / 90) * 0.981;
this._acceleration.z = (eventData.alpha / 90) * 0.981;
mAcceleration.x = (eventData.gamma / 90) * 0.981;
mAcceleration.y = -(eventData.beta / 90) * 0.981;
mAcceleration.z = (eventData.alpha / 90) * 0.981;
}
this._acceleration.timestamp = Date.now();
mAcceleration.timestamp = eventData.timeStamp || Date.now();

var tmp = this._acceleration.x;
var tmpX = mAcceleration.x;
switch (window.orientation) {
case cc.UIInterfaceOrientationLandscapeRight://-90
this._acceleration.x = -this._acceleration.y;
this._acceleration.y = tmp;
mAcceleration.x = -mAcceleration.y;
mAcceleration.y = tmpX;
break;

case cc.UIInterfaceOrientationLandscapeLeft://90
this._acceleration.x = this._acceleration.y;
this._acceleration.y = -tmp;
mAcceleration.x = mAcceleration.y;
mAcceleration.y = -tmpX;
break;

case cc.UIInterfaceOrientationPortraitUpsideDown://180
this._acceleration.x = -this._acceleration.x
this._acceleration.y = -this._acceleration.y;
mAcceleration.x = -mAcceleration.x;
mAcceleration.y = -mAcceleration.y;
break;

case cc.UIInterfaceOrientationPortrait://0
break;
}

this._delegate.onAccelerometer(this._acceleration);
},
update:function(dt){
if(this._curTime > this._interval){
this._curTime -= this._interval;
this._delegate.onAccelerometer(this._acceleration);
}
this._curTime += dt;
}
});


cc.AccelerometerDispatcher.getInstance = function () {
if (!this._instance) {
this._instance = new cc.AccelerometerDispatcher();
Expand Down
2 changes: 1 addition & 1 deletion cocos2d/actions/CCAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ cc.Action = cc.Class.extend(/** @lends cc.Action# */{
* @return {object}
*/
copy:function () {
return cc.clone(this);
return this.clone();
},

/**
Expand Down
Loading