大约有 6 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0017 秒)
... 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_示例 发布时间: 20241126
...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_示例 发布时间: 20241126
...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_示例 发布时间: 20241126
...(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_示例 发布时间: 20241126
...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_示例 发布时间: 20241126
...; label.text = "是否发生碰撞"; label.pos(300, 100); label.fontSize = 60; label.color = "#40FF40"; Laya.stage.addChild(label); } } }
来源: Laya_示例 发布时间: 20241126