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

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

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

... 166, 90, "#ffff00"); //画多边形 sp.graphics.drawPoly(264, 166, [0, 0, 60, 0, 78.48, 57, 30, 93.48, -18.48, 57], "#ffff00"); //画三角形 sp.graphics.drawPoly(400, 166, [0, 100, 50, 0, 100, 100], "#ffff00"); //画圆 sp.graphics.drawCircle(98, 332, 50, "#00ffff"); //画扇形 sp.graphics.drawP...

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

2. 计时器-延迟执行 [ 89%]

...on1.on(Event.CLICK, this, onDecreaseAlpha1); button2 = createButton("点我60帧之后 alpha - 0.5"); button2.pos(button1.x, button1.y + vGap); Laya.stage.addChild(button2); button2.on(Event.CLICK, this, onDecreaseAlpha2); } function createButton(label) { var w = 300, h = 60; var button = new Sprite...

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

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

...reateCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(text); Laya.timer.frameLoop(1, this, gameLoop); })(); function createCharacters() { var char; var charSkin; for (var i = 0; i = 0; i--) { characters[i].update(); } if (Laya.timer...

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

4. 其他引擎的Demo-Example_23 [ 70%]

...(laser); Laya.stage.addChild(laser); frequency *= 0.9; } for (var i = 0; i 60 * 0.3) { laser.alpha *= 0.9; laser.scaleY = laser.alpha; if (laser.alpha = []; private tick: number = 0; private frequency: number = 80; private type: number = 0; constructor() { Laya.init(this.viewWidth, this.viewHeight, ...

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

5. UI-Clip [ 66%]

...er; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.ut...

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

6. 射线检测-射线检测 [ 19%]

...; label.text = "是否发生碰撞"; label.pos(300, 100); label.fontSize = 60; label.color = "#40FF40"; Laya.stage.addChild(label); } } }

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