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

大约有 1,608 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0057 秒)

171. 粒子-粒子演示1 [ 88%]

...{ sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })();module laya { import Stage = Laya.Stage; import Loader = Laya.Loader; import Particle2D = Laya.Particle2D; import ParticleSetting = Laya.Particle...

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

172. 计时器-延迟执行 [ 88%]

... = Laya.Sprite; let w = 300, h = 60; let button = new Sprite(); Laya.stage.addChild(button); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } onDecreaseAlpha1(e) { const Event = Laya.E...

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

173. 粒子-粒子演示2 [ 88%]

...{ sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })();module laya { import Stage = Laya.Stage; import Loader = Laya.Loader; import Particle2D = Laya.Particle2D; import ParticleSetting = Laya.Particle...

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

174. 粒子-粒子演示3 [ 88%]

...{ sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })();module laya { import Stage = Laya.Stage; import Loader = Laya.Loader; import Particle2D = Laya.Particle2D; import ParticleSetting = Laya.Particle...

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

175. 滤镜-模糊滤镜 [ 88%]

...ateApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y = (Laya.stage.height - texture.height) / 2; } applayFilter...

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

176. 动画-图集动画 [ 88%]

...ght / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani); } })();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Rectangle = Laya.Rectangle; import Loader = Laya.Loader; import Browser = Laya.Browser; import WebGL = Laya.WebGL; expor...

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

177. 粒子-粒子演示1 [ 88%]

...建 Particle2D 实例 let partIns = new Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; partIns.y = Laya.stage.height / 2; } } new Particle_T1();module laya { import Stage = Laya.Stage; imp...

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

178. 粒子-粒子演示2 [ 88%]

...建 Particle2D 实例 let partIns = new Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; partIns.y = Laya.stage.height / 2; } } new Particle_T2();module laya { import Stage = Laya.Stage; imp...

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

179. 粒子-粒子演示3 [ 88%]

...建 Particle2D 实例 let partIns = new Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; partIns.y = Laya.stage.height / 2; } } new Particle_T3();module laya { import Stage = Laya.Stage; imp...

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

180. 鼠标交互-滑动 [ 88%]

... / 2; this.button.on(Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.addChild(this.button); //左侧临界点设为圆形初始位置 beginPosition = this.button.x; //右侧临界点设置 endPosition = beginPosition + TrackLength; } drawTrack() { Laya.stage.graphics.drawLine( beginPosition, L...

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