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

大约有 1,720 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0060 秒)

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

....x + this.width) && y > this.y && y < (this.y + this.height)){ return true; } return false; } })();   这里通过Floor中的init方法来增加type参数  1 代表默认宽度 传其他值 则是随机宽度 然后我们打开 MapFloor.js 也需要将初始化Floor的地...

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

1622. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 44%]

...2;//400; pBar.x = (Laya.stage.width - pBar.width) / 2; pBar.y = Laya.stage.height / 2; 。。。 }这是 progressBar 资源加载完毕之后,构造progressBar的脚本。 总是在这里出现错误,如下:   ncaught TypeError: ProgressBar is not a constructor at onLoadComplete (game.js:81) ...

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

1623. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 44%]

...      _mapW = tJsonData.width;             _mapH = tJsonData.height;                          _mapTileW = tJsonData.tilewidth;             _mapTileH = tJsonData.tileheight;                          _width = _mapTileW * _mapW;          ...

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

1624. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 44%]

...text.text="لحسن نهر123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); }   参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有...

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

1625. emoji表情文字乱码 [ 44%]

...         var tHTMLChar=words[i]=new HTMLChar(w[i],size.width,size.height||style.fontSize,style);             if (this.href){                 var tSprite=new Sprite();                 this.addChild(tSprite);                 tHTMLCha...

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

1626. 角色控制器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...色控制器1、碰撞形状相关1.1 胶囊半径 radius1.2 胶囊高度 height1.3 碰撞形状编辑工具1.4 胶囊偏移 centerOffset2、碰撞分组设置2.1 所属碰撞组 collisionGroup2.2 可碰撞组 canCollideWith3、IDE面板的专有属性3.1 重力 gravity3.2 推动力 pushForce3.3 最...

来源: Laya3.0_文档 发布时间: 20251010

1627. Swift中接入Native,执行完drawInRect后不执行update了! [ 44%]

...5537+0800 SwiftLayaNative[98971:4069811] =============onGLReady width=2436,height=1125 2019-05-10 17:10:38.275788+0800 SwiftLayaNative[98971:4069811] download thread num = 3 2019-05-10 17:10:38.479069+0800 SwiftLayaNative[98971:4069811] createOpenALSource current num=10 2019-05-10 17:10:38.479438+08...

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

1628. 动画-旧版骨骼动画 [ 44%]

... - this.changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); this.changeActionButton.on(Laya.Event.CLICK, this, function (): void { this.playSkinAnimation(this.zombie, ++this.curStateIndex % this.skinAniUrl.length); }); })); } } new SkinAnimatio...

来源: Laya_示例 发布时间: 20251219

1629. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...三个选项。none:无自适应模式,both:宽高自适应模式,height:高度自适应模式。 space属性就是设置子对象之间的垂直间隔,以像素为单位,可以自行输入数字,也可以通过鼠标左键长按滑动来输入数值。假设VBox有三个Button组件...

来源: Laya3.0_文档 发布时间: 20251010

1630. 在Laya中使用Matter.js的最简示例 (JS) [ 43%]

...是matter自带的渲染器 2、必须执行 Laya.init(stageWidth, stageHeight, WebGL);否则会报错:TypeError: Cannot read property 'frameLoop' of nullvar Browser = Laya.Browser; var WebGL = Laya.WebGL; var Matter = window.Matter; var LayaRender = window.LayaRender; var stageWidth = 800; var s...

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