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

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

11. 【简单跑酷--JS版】---Lv.3 添加地板 [ 81%]

...添加东西  (function(){ /** * 地板类 */ function Floor(){ Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.fram...

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

12. 跟着老师打地鼠游戏写的代码,JS为什么会出错 [ 80%]

...师打地鼠游戏写的代码,JS为什么会出错 var Game=(function(_super){ function Game(){ Game.super(this); this.mole=new Mole() //这里会报错 } Laya.class(Game,"Game",_super); return Game; })(ui.GameUI) var GameUI=(function(_super){ function GameUI(){ this.btn_start=null; this.audio=nu...

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

13. 这个写法是什么意思,能否解释一下,谢谢 [ 79%]

...s.bg2 = null;         //初始化父类         BackGround.__super.call(this);         this.init();     }     //注册类 BackGround     Laya.class(BackGround, "BackGround", laya.display.Sprite);   问题: 1.Laya.class(BackGround, "BackGround", laya.display.Sprite); ...

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

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

...: 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

15. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 79%]

...91859396用户 • 2020-06-11 15:11 @Laya_Aaron:var MainSceneUI=(function(_super){ function MainSceneUI(){ this.Btn_Task=null; MainSceneUI.__super.call(this); } CLASS$(MainSceneUI,'ui.MainSceneUI',_super); var __proto__=MainSceneUI.prototype; __proto__.createChildren=function(){ _super.prototype.cre...

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

16. 物体随着鼠标滑动旋转脚本 [ 78%]

...滑动旋转脚本 function ObjectRotate() {          ObjectRotate.super(this);//这里不太清楚作用       //最终鼠标在X轴上的值     this.lastMouseX = NaN;           //最终鼠标在Y轴上的值                  this.lastMouseY = NaN;            ...

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

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

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

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

18. LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 [ 75%]

LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 LoginView.super(this);这是在教学视频里用的方法,好像不能用了。 这些layaair中特别的语法规则在哪里统一可以找到 var LoginView = function () {     LoginView.super(this);     t...

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

19. 【简单跑酷--JS版】---Lv.6 终篇 [ 75%]

..._VALUE = 0; //最大值 this.MAX_VALUE = 100; //值 this.value = 100; Hp.__super.call(this); this.init(type); } //能量类型 Hp.HP_TYPE_ENERGY = "hp_type_energy"; //速度类型 Hp.HP_TYPE_SPEED = "hp_type_speed"; //Hp Laya.class(Hp,"Hp", laya.display.Sprite); var _proto = Hp.prototype; _proto.ini...

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

20. Laya api 中可能的bug [官方来看] [ 75%]

...n(context,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,context,x,y); this._childs=childs; }2.core中Sprite的zorder的set方法中 有一行代码有疑似bug,麻烦官方帮忙确认 /**z排序,更改此值,则会按照值的大小对同一...

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