-
键盘监听事件无法响应按键
测试环境:PC web
浏览器:Chrome
引擎版本:cocos2d-js 3.0 beta
cc.eventManager.addListener({
event : cc.EventListener.KEYBOARD,
onKeyPressed : function(keyCode, event){
cc.log(keyCode);
},
onKeyReleased…
-
[First Case]
If for example I use the code:
`LabelTTF.setString( "\nThis is a sentence" )`
I'm expecting `This is a sentence` to appear on the second line.
(with the first line blank)
If
`LabelTTF…
-
CCTypes.js relies on `_tmp.WebGLColor` being a function. If one forgets to include CCTypesWebGL.js (which is currently the case in tools/build.xml!), then running minified on WebGL will produce an und…
-
there was a bug in plist loader that read the plist file repeat both in jsb and cpp
to fix it is either just read in jsb or read in cpp
i have fixed in #320 to read in cpp, but @joshuastray choose ano…
-
I use script cocos new to create a new project, and open with webstorm, then debug. However it outputs errors below!
Uncaught Missing file: CCDirectorWebGL.js
cc.assert CCDebugger.js:296
(anonymo…
-
following the related discussion in the forum, here is a first basic benchmark that compared object creation/inheritance with and without deepcopy : http://jsfiddle.net/obiot/GwTPj/8/
For now the ben…
obiot updated
10 years ago
-
why to hardcode like this: que.push('main.js');
if do this, I dont change my dir of main.js.
-
https://github.com/cocos2d/cocos2d-html5/blob/8842c38c3fe975c710d885a360e293e223f5541c/extensions/gui/scrollview/CCTableView.js#L615-L616
are these two lines useless?
https://github.com/cocos2d/cocos…
-
-
see http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Cocos2d-html5