按照http://www.cocos2d-x.org/docs/tutorial/framework/html5/parkour-game-with-javascript-v3.0/chapter3/zh在
this.addChild(menu)处本地cocos模拟器闪退
然后我把
var menuItemPlay=
new cc.MenuItemSprite(
new cc.Sprite(res.start_n_png), *// normal state image
new cc.Sprite(res.start_s_png), *//select state image
this.onPlay,
this);
换成
var menuItemPlay =
new cc.MenuItemFont(
“game start”,
this.onPlay,
this);就好了
以后是不是不能用MenuItemSprite了?
还有在使用cc.log()的时候没有输出显示?