官方文档上的demo为什么运行不了

新手刚上车,不是很懂,demo是官方上下载的 http://fbdemos.leanapp.cn/star-catcher/
但是demo运行了之后报错,报错如下:


想请大大们看一下,是为啥?

Simulator: libpng warning: iCCP: known incorrect sRGB profile

Simulator: E/jswrapper (271): ERROR: Uncaught TypeError: Cannot read property ‘length’ of null, location: src/cocos2d-jsb.js:0:0

Simulator: E/jswrapper (271): ERROR: Uncaught TypeError: Cannot read property ‘_activeInHierarchy’ of null, location: src/cocos2d-jsb.js:0:0
Simulator: D/jswrapper (129): JS: [ERROR]: object already destroyed

Simulator: E/jswrapper (271): ERROR: Uncaught TypeError: Cannot read property ‘length’ of null, location: src/cocos2d-jsb.js:0:0

Simulator: E/jswrapper (271): ERROR: Uncaught TypeError: Cannot read property ‘length’ of null, location: src/cocos2d-jsb.js:0:0

Simulator: E/jswrapper (271): ERROR: Uncaught TypeError: Cannot read property ‘length’ of null, location: src/cocos2d-jsb

为啥没有人来呀,是不是我的问题太简单了 :joy:

因为是好多年前的demo了,很多接口方法都变了

不会吧,那像我这样的新手怎么上车呀 :sleepy:

官方的程序 都是给你看的 你想象成是伪代码就是了 不是给你运行的

地址地址是哪个?

https://github.com/cocos-creator/tutorial-first-game/tree/v2.4 这个吆

是这样的吗?那叫什么demo :rofl:

看你给的链接地址,是2.4.0版本的。你使用2.0.9版本的creator打开,是会有问题的。

换下2.4.0的creator编辑器试试?

哦。好的。我试一下,谢谢