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

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

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" }); } })(); module la...

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

2. 文本-Overflow [ 76%]

....pos(10, 10); var t2 = createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); var t3 = createText(); t3.overflow = Text.HIDDEN; t3.pos(10, 210); } function createText() { var txt = new Text(); txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发者提...

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

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

...cter function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadImages(images); animation.interval = 70; animation.p...

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

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

...(Event.CLICK, this, onPlayMusic); } function createButton(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); retur...

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

5. 灯光-点光 [ 70%]

...niSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.Vector3(); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); Laya.Vector3.transformQuat(p...

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

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

..../res/guide/help4.png", tipx: 730, tipy: 380 }, { x: 1128, y: 583, radius: 110, tip: "../../res/guide/help3.png", tipx: 900, tipy: 300 }]; var guideStep = 0; var hitArea; var interactionArea; (function() { Laya.init(1285, 727); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_...

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

7. UI-Clip [ 68%]

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

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

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

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

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