大约有 1,017 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0054 秒)
Laya_社区(598) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(37)
...(tick > frequency) { tick = 0; // iterate through the dudes and update the positions var laser = new Sprite(); laser.loadImage("../../res/pixi/laser0" + ((type % 5) + 1) + ".png"); type++; laser.life = 0; var pos1; var pos2; if (type % 2) { pos1 = new Point(-20, Math.random() * viewHeight); pos2 = n...
来源: Laya_示例 发布时间: 20241117
...(tick > frequency) { tick = 0; // iterate through the dudes and update the positions laser = new Sprite(); laser.loadImage("res/pixi/laser0" + ((type % 5) + 1) + ".png"); type++; laser.life = 0; let pos1; let pos2; if (type % 2) { pos1 = new Point(-20, Math.random() * viewHeight); pos2 = new Point(v...
来源: Laya2.0_示例 发布时间: 20241117
... glitterTemplet.maxSlerpCount = 128; glitterTemplet.maxSegments = 600; var pos1 = new Laya.Vector3(0, 0, -0.5); var pos2 = new Laya.Vector3(0, 0, 0.5); var scaleDelta = 0; var scaleValue = 0; Laya.timer.frameLoop(1, this, loop); function loop() { scaleValue = Math.sin(scaleDelta += 0.01); pos1.eleme...
来源: Laya_示例 发布时间: 20241117
...2; /* 以下用于计算移动位置 */ /** 下一步位置 */ private _to_pos:Point = <Point>{ x: -1, y: -1 }; /** 步数 */ private _step: number; /** 路径起点 */ private _head_pos: Point = <Point>{ x: -1, y: -1 }; /** 路径终点 */ private _tail_pos: Point = <Point>{ x: ...
来源: Laya_社区 发布时间: 20180515
...的问题 2017-11-22 0 0 分享 微博 QZONE 微信 dnvqqk 赞同来自: pos0:Laya.Point=new Laya.Point(); pos1:Laya.Point=new Laya.Point(); __mouseDown(e:Event){ this.pos0.x=this.bmp.mouseX; this.pos0.y=this.bmp.mouseY; this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; this.bmp.on(Laya.Event...
来源: Laya_社区 发布时间: 20170831
... "#232628"; setup(); })(); function setup() { createLabel("#FFFFFF", null).pos(30, 50); createLabel("#00FFFF", null).pos(290, 50); createLabel("#FFFF00", "#FFFFFF").pos(30, 100); createLabel("#000000", "#FFFFFF").pos(290, 100); createLabel("#FFFFFF", "#00FFFF").pos(30, 150); createLabel("#0080FF", "...
来源: Laya_示例 发布时间: 20241117
...r = "#232628"; this.setup(); } setup() { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel("#FFFFFF", "#00FFFF").pos(30, 150); this...
来源: Laya2.0_示例 发布时间: 20241117
...(); })(); function createTexts() { createLabel("只允许输入数字:").pos(50, 20); var input = createInput(); input.pos(50, 50); input.restrict = "0-9"; createLabel("只允许输入字母:").pos(50, 100); input = createInput(); input.pos(50, 130); input.restrict = "a-zA-Z"; createLabel("只...
来源: Laya_示例 发布时间: 20241117
...ateTexts(); } createTexts() { this.createLabel("只允许输入数字:").pos(50, 20); let input = this.createInput(); input.pos(50, 50); input.restrict = "0-9"; this.createLabel("只允许输入字母:").pos(50, 100); input = this.createInput(); input.pos(50, 130); input.restrict = "a-zA-Z"; thi...
来源: Laya2.0_示例 发布时间: 20241117
pos会影响精灵缩放效果的问题 我想对精灵进行放大,代码很简单,如下 let img2: Laya.Sprite = new Laya.Sprite(); img2.graphics.drawTexture(texture, 0, 0, 200, 200); img2.graphics.drawCircle(100, 100, 20, "#ffff00"); img2.scale(2, 2); img2.pos(0, 0); img2.pivot(0, 0);效果...
来源: Laya_社区 发布时间: 20170821