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

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

1. 引擎 TiledMap 居然不支持图块翻转 [ 100%]

... constructor() {             super(...arguments);             this.relativeX = 0;             this.relativeY = 0;             this.isAloneObject = false;             this.isHaveAnimation = false;             this.drawImageNum = 0;             this._map = nul...

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

2. UI-RefreshList [ 99%]

...ya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.loadingLabel = null; this.refreshList = null; /** 消息生成的当前最大id值 */ this.msgIdNow=1; /** 滚动条效果是否停止 */ this.scro...

来源: Laya2.0_示例 发布时间: 20241001

3. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 99%]

...  init( box: GunBox, doll_item: DollItem, doll_area: Area ):void { // if(!this._body_ani) // { // this._body_ani = new Laya.Animation(); // this.addChild(this._body_ani); // } // this._body_ani.play(0, true, doll_item.animation_name);  this._box = box;  this._fly_site.w = this._box._area.w - 20; ...

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

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

...码如下  (function () { /** * 血条 * */ function Hp(type){ //背景 this.bg = null; //进度条 this.bar = null; //最小值 this.MIN_VALUE = 0; //最大值 this.MAX_VALUE = 100; //值 this.value = 100; Hp.__super.call(this); this.init(type); } //能量类型 Hp.HP_TYPE_ENERGY = "hp_type_energy...

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

5. 分享,扩展Laya.Text组件实现简单的富文本 [ 99%]

...m visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font) : this.fo...

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

6. 骨骼动画-适配版Spine [ 99%]

... var SpineTemplet = Laya.SpineTemplet; class SpineBinary { constructor() { this.aniPath = "res/bone/spineboy-pma.skel"; this.index = -1; Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } startF...

来源: Laya2.0_示例 发布时间: 20241001

7. 给以个对象绑定两个on方法为什么只能执行一次 ? [ 99%]

...—操作对象-回调     function BtnFeed(obj,backEdHd){         this.obj = obj;         this.backEdHd = backEdHd||void(0);         this.clickEnd = function(){             Laya.timer.once(0,this,this.reset);         };         this.reset = function(){             ...

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

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

...合我们调试代码 我们打开Floor.js 找到 Laya.timer.frameLoop(1, this, this.onLoop); 把这一行代码先给注释了 接着 我们先理一理自己的思路 我们要做玩家踩在地板上 那就要用到碰撞检测 上图中紫色的小点点是 两个物体的 坐标起始点 假设...

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

9. 关于这个timer我的跑的快在 自己出完牌之后没有人比我的牌大了。可是我的牌还是出不去 [ 99%]

...牌大了。可是我的牌还是出不去 computer() { Laya.timer.clear(this,this.computer); var NTS: number; var NTE: number; this.nextTurn; let i = this.turnNumber; if(i==0){ return; }  this.getPlayer(); }  gotoNext(){ this.turnNumber++; if(this.turnNumber>3) { this.turnNumber=0 } }  public...

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

10. 3D中摄像机绕物体旋转该如何实现? [ 99%]

... = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addCom...

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