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

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

1. Sprite-绘制各种形状 [ 100%]

...phics.drawPath(400, 310, [ ["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, 0, 110, 5, 5], ["lineTo", 110, 55], ["arcTo", 110, 60, 105, 60, 5], ["lineTo", 5, 60], ["arcTo", 0, 60, 0, 55, 5], ["lineTo", 0, 5], ["arcTo", 0, 0, 5, 0, 5], ["closePath"] ], { fillStyle: "#00ffff" }); } } new Sprite_Dr...

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

2. 文本-Overflow [ 76%]

...10, 10); let t2 = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); let t3 = this.createText(); t3.overflow = Text.HIDDEN; t3.pos(10, 210); } createText() { const Text = Laya.Text; let txt = new Text(); txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向...

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

3. 性能测试-卡通人物2 [ 75%]

....width + Character.WIDTH) this.x = -Character.WIDTH; } } Character.WIDTH = 110; Character.HEIGHT = 110; new PerformanceTest_Cartoon2();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import Animation = Laya.Animation; import Sprit...

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

4. 音频-播放演示 [ 72%]

...(Event.CLICK, this, this.onPlayMusic); } createButton(labelText) { let w = 110, h = 40; const Sprite = Laya.Sprite; let btn = new Sprite(); Laya.stage.addChild(btn); btn.size(w, h); btn.graphics.drawRect(0, 0, w, h, "#FF7F50"); btn.graphics.fillText(labelText, w / 2, 8, "24px SimHei", "#FFFFFF", "ce...

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

5. Sprite-新手引导 [ 68%]

...tip:"res/guide/help4.png", tipx:730, tipy:380 }, { x: 1128, y: 583, radius:110, tip:"res/guide/help3.png", tipx:900, tipy:300 } ], gameContainer, guideContainer, maskArea, interactionArea, hitArea, tipContainer, guideStep = 0; class Sprite_Guide { constructor() { const WebGL = Laya.WebGL, Stage = La...

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

6. UI-Clip [ 68%]

... 2; this.controller.y = (Laya.stage.height - this.controller.height) / 2 + 110; Laya.stage.addChild(this.controller); } onClipSwitchState() { if (this.counter.isPlaying) { this.counter.stop(); currFrame = this.counter.index; this.controller.label = "播放"; } else { this.counter.play(); this.counte...

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

7. 缓动-逐字缓动 [ 59%]

... char; letter.color = "#FFFFFF"; letter.font = "Impact"; letter.fontSize = 110; Laya.stage.addChild(letter); return letter; } } }

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