Error

C++博客 首页 新随笔 联系 聚合 管理
  217 Posts :: 61 Stories :: 32 Comments :: 0 Trackbacks
// plsit测试
cc.log("begin test plist");
cc.spriteFrameCache.addSpriteFrames("res/hall_entrance.plist");
//var imageView = new ccui.ImageView("#hall_enter_3.png");  错误用法,js里边需要通过ccui.Widget.PLIST_TEXTURE参数明确指定
var imageView = new ccui.ImageView("hall_enter_3.png", ccui.Widget.PLIST_TEXTURE);
this.addChild(imageView);




ccui使用:
在project.json中的modules属性修改为:"modules" : ["cocos2d","extensions"],
posted on 2017-04-16 23:54 Enic 阅读(341) 评论(0)  编辑 收藏 引用 所属分类: 从零开始写棋牌游戏平台cocos2d-x

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理