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

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

1621. 分享:销毁龙骨动画! [ 44%]

...ublic function ASDemo() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); var DesBtn:Sprite = createButton("销毁动画"); DesBtn.x = 50; DesBtn.y = 50; Laya.stage.addChild(DesBtn); //创建一个Sprite充当音乐播放按钮 var addBtn:Sprite...

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

1622. List滚动条问题 [ 44%]

...g; this._goldImage.pos((312-this._goldImage.width)/2, (462-this._goldImage.height)/2); }; this.setPrice = function(price) { this._goldButton.label = "RMB " + price; }; } Laya.class(MarketItem, "xgame.marketitem", _super); })(Laya.Box);list代码如下: var list = new Laya.List(); list.itemRender =...

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

1623. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 44%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.URL.basePath += "../../"; Laya.loader.load("r...

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

1624. 【简单跑酷--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

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

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

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

1626. 动态加载代码后,总是出现 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

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

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

1629. 角色控制器 · LayaAir3.4 · 引擎文档 · 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

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