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

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

1. 输入设备-地图 [ 100%]

...eateInfoText() { const Text = Laya.Text; infoText = new Text(); Laya.stage.addChild(infoText); infoText.fontSize = 50; infoText.color = "#FFFFFF"; infoText.size(Laya.stage.width, Laya.stage.height); } // 更新设备位置 updatePosition(p) { const Browser = Laya.Browser, BMap = Browser.window.BMap;...

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

2. 2D物理-碰撞事件与传感器 [ 99%]

...nsor(); } createSensor() { let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,400,50,600,1...

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

3. 其他引擎的Demo-Example_23 [ 89%]

...2(distY, distX) + Math.PI) * 180 / Math.PI; lasers.push(laser); Laya.stage.addChild(laser); frequency *= 0.9; } for (let 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; cons...

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