大约有 4,033 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0086 秒)
Laya_社区(3263) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... constructor() { super(...arguments); this.relativeX = 0; this.relativeY = 0; this.isAloneObject = false; this.isHaveAnimation = false; this.drawImageNum = 0; this._map = nul...
来源: Laya_社区 发布时间: 20220627
...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_示例 发布时间: 20250221
... 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
...码如下 (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
...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
... 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_示例 发布时间: 20250221
...—操作对象-回调 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
...合我们调试代码 我们打开Floor.js 找到 Laya.timer.frameLoop(1, this, this.onLoop); 把这一行代码先给注释了 接着 我们先理一理自己的思路 我们要做玩家踩在地板上 那就要用到碰撞检测 上图中紫色的小点点是 两个物体的 坐标起始点 假设...
来源: Laya_社区 发布时间: 20160801
...牌大了。可是我的牌还是出不去 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
... = 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