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

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

1. Sprite-新手引导 [ 100%]

...tipContainer); return; } let step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000"); interactionArea.graphics.clear(); interactionArea.graphics.drawCircle(step.x, step.y, step.radius, "#000000"); tipContainer.graphics.clear(); tipConta...

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

2. Sprite-切换纹理 [ 81%]

...ey = (this.flag = !this.flag) ? monkey1Res : monkey2Res; this.ape.graphics.clear(); this.ape.graphics.drawTexture(monkey, 0, 0); this.ape.size(monkey.width, monkey.height); } } new Sprite_SwitchTexture();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Text...

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

3. 其他引擎的Demo-Example_21 [ 80%]

...sGraphics.drawPoly(0, 0, path.concat(), color); } animate() { liveGraphics.clear(); liveGraphics.drawPoly(0, 0, path, color); } } new PIXI_Example_21();module laya { import Graphics = Laya.Graphics; import Sprite = Laya.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class P...

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

4. 鼠标交互-Hold [ 76%]

...0.8 }, 300); } else { // 如果未触发hold,终止触发hold Laya.timer.clear(this, this.onHold); } Laya.stage.off(Event.MOUSE_UP, this, this.onApeRelease); } } new Interaction_Hold();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture =...

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

5. 混合模式-Lighter [ 72%]

...onTweenComplete() { this.evalBgColor(); } renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, this.getHexColorString()); } getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g = 0; //o...

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

6. 缓动-缓动函数演示 [ 67%]

...een = Laya.Tween, Ease = Laya.Ease; character.pos(100, 50); tween && tween.clear(); tween = Tween.to(character, { x: 350, y: 250 }, duration, Ease[list.selectedItem]); } createDurationCrontroller() { const Event = Laya.Event; let durationInput = this.createInputWidthLabel("Duration:", '2000', 400, 1...

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

7. 骨骼动画-Spine事件 [ 64%]

...is.mStartX; this.mLabelSprite.y = this.mStartY; this.mLabelSprite.graphics.clear(); this.mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(this.mLabelSprite, { y:this.mStartY - 200 }, 1000, null,Handler.create(this,this.playEnd)) } private playEnd():v...

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

8. 网络和格式-Socket [ 63%]

... is ArrayBuffer) { trace(new Byte(message).readUTFBytes()); } socket.input.clear(); } private function onConnectError(e:Event=null):void { trace("error"); } } }

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

9. Sprite-屏幕截图 [ 61%]

...ak; case this.nameArr[2]: this.drawImage.skin = null; this.drawSp.graphics.clear(); this.drawSp.graphics.drawRect(0,0,this.drawSp.width,this.drawSp.height,"#ff0000"); break; } } } //激活启动类 new Sprite_ScreenShot(); package { import laya.d3.core.Sprite3D; import laya.display.Stage; import ...

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