• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 72 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0038 秒)

21. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 76%]

...代码(function () { /** * 游戏入口 */ function RunGame(){ RunGame.__super.call(this); this.init(); } //RunGame 是一个显示对象 继承此 Sprite Laya.class(RunGame,"RunGame", laya.display.Sprite); //定义RunGame的prototype var _proto = RunGame.prototype; //初始化 _proto.init = functio...

来源: Laya_社区 发布时间: 20160722

22. 关于js继承类class的参数问题 [ 75%]

... 1 个回复 w1114367261 赞同来自:  * @example      * (function (_super){      *     function Item(){      *         Item.__super.call(this);//初始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new laya.ui.Lab...

来源: Laya_社区 发布时间: 20180426

23. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 75%]

...//背景 this.bg = null; //背景右边补丁 this.rightBg = null; Floor.__super.call(this); } //事件名称 //超过屏幕一定值出发新的floor事件 Floor.OUT_COMPLETE = "floor_out_complete"; //整个地板都不在屏幕里面事件 Floor.OUT_DIE = "floor_out_die"; //Floor 是一个显示...

来源: Laya_社区 发布时间: 20160801

24. 升级引擎到1.7.19.1beta List报错问题 [ 75%]

...aya技术留意下;   解决方案: 需要把_cells和_offset放置到super.call()前 附件 : --> 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: Calvin ok,是编译过去...

来源: Laya_社区 发布时间: 20180810

25. viewport 的用法 [ 75%]

...ectangle = Laya.Rectangle;   function layaSlot(info){       layaSlot.__super.call(this);       this.size(200,200);       this.graphics.drawRect(0,0,200,200,'#123456');       var viewPort = new Rectangle(0,0,200,200);             this.viewport = viewPort;       var ccc = new Spr...

来源: Laya_社区 发布时间: 20170323

26. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 74%]

...: var Test = (function(_surper){    function Test(){         Test.super(this);     };     Laya.class(Test, "Test", _surper);     return Test;      })(ui.TestUI);     报错Uncaught TypeError: Cannot read property 'call' of undefined     at Function.<anonymous> (laya.core.j...

来源: Laya_社区 发布时间: 20170621

27. HTMLDIVElement设置innerHTML时报错 [ 74%]

...ion(){ if (this._width)return this._width; return this.contextWidth; },[b]_super.prototype._$set_width[/b]);此次出问题的版本为/** *获取对象的宽 */ __getset(0,__proto,'width',function(){ if (this._width)return this._width; return this.contextWidth; },[b]function(value){ var changed=fal...

来源: Laya_社区 发布时间: 20170620

28. laya中js 如何实现Sprite类继承 [ 74%]

...his.Role.pos(100, 200);   Role.js基础代码: var Role = ( function ( _super ) { function Role () { Role._super.call(this); /***一些基础信息***/ } Laya.class( Role , "Role" , Sprite ); var _proto_ = Role.prototype; /******/ return Role; })(); 2018-10-12 添加评论 免费帖 --> 分享 ...

来源: Laya_社区 发布时间: 20181012

29. List滚动条问题 [ 74%]

...t item里的button图片显示不出来   item代码如下: (function (_super){ function MarketItem() { MarketItem.__super.call(this); this.size(312, 462); // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\xiao...

来源: Laya_社区 发布时间: 20170422

30. 关于js继承类class的参数问题 [ 73%]

... QZONE 微信 w1114367261 赞同来自:  * @example      * (function (_super){      *     function Item(){      *         Item.__super.call(this);//初始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new laya.ui.La...

来源: Laya_社区 发布时间: 20180426