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

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

1. UI-Clip [ 100%]

...hild(bg); } function createTimerAnimation() { counter = new Clip(clipSkin, 10, 1); counter.autoPlay = true; counter.interval = 1000; counter.x = (Laya.stage.width - counter.width) / 2 - 35; counter.y = (Laya.stage.height - counter.height) / 2 - 40; Laya.stage.addChild(counter); } function showTotalS...

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

2. 射线检测-射线检测 [ 94%]

...; //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 1, 3)); camera.clearColor = null; Laya.loader.create(["../../res/threeDimen/skinModel/NvWu/NvWu-shenminvwu.lm", "../../res/threeDimen/skinModel/CunMinNan/CunMinNan-cunminn...

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

3. 高级应用-寻路导航 [ 93%]

...ndex = 0; this.curPathIndex = 0; this.nextPathIndex = 1; this.pointCount = 10; Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.path = new Array(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/TerrainS...

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

4. 物理引擎-Slingshot [ 79%]

...tyle: '#dfa417' } }); var pyramid = Matter.Composites.pyramid(500, 300, 9, 10, 0, 0, function(x, y, column) { var texture = column % 2 === 0 ? '../../res/physics/img/block.png' : '../../res/physics/img/block-2.png'; return Matter.Bodies.rectangle(x, y, 25, 40, { render: { sprite: { texture: texture,...

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