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

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

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

22. 新手,图片加载不进去,没有报错。很疑问 [ 75%]

...链接 提交 1 个回复 Laya_XS 赞同来自: var BackGround=(function(_super){ function BackGround(){ BackGround.__super.call(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("comp/bg.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya.S...

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

23. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 74%]

...ddChild(over); } hero类: (function() { function Hero(type, hp) { Hero.__super.call(this); this.fly(); } Laya.class(Hero,"Hero", Air); var _proto = Hero.prototype; _proto.fly = function() { this.playAction("fly") } })(); air类: (function() { function Air(type, hp) { this.hp = hp; this.type = ty...

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

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

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

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

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

26. 报错,这不是个构造函数 "StartPage is not a constructor" [ 71%]

...ctor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya....

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

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

...代码(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

28. viewport 的用法 [ 71%]

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

29. 关于实例化 动画特效.efc 文件的问题 [ 71%]

...时候报错: 具体是layaUI.max.all.js里的这一行:effect01UI.__super.call(this); TypeError: Cannot read property 'call' of undefined   请问我应该怎么实例化 effectAnimation.efc 这种模板?   2018-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

30. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 71%]

...的继承的示范: ```javascript var HttpRequestExtension = (function (_super) { function HttpRequestExtension() { HttpRequestExtension.__super.call(this); } Laya.class(HttpRequestExtension, 'HttpRequestExtension', _super); var __proto = HttpRequestExtension.prototype; __proto.send = function (ur...

来源: Laya2.0_文档 发布时间: 20210714