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

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

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

...(); function nextStep() { if (guideStep == guideSteps.length) { Laya.stage.removeChild(guideContainer); Laya.stage.removeChild(tipContainer); } else { var step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000"); interactionArea.graphics...

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

2. 输入设备-贪吃蛇(重力感应) [ 75%]

...tTestPoint(targetPosition.x, targetPosition.y)) { addSegment(); Laya.stage.removeChild(food); foods.splice(i, 1); } } } function produceFood() { // 最多五个食物同屏 if (foods.length == 5) return; var food = new Sprite(); Laya.stage.addChild(food); foods.push(food); const foodSize = 40; food....

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

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

...Y = laser.alpha; if (laser.alpha < 0.01) { lasers.splice(i, 1); Laya.stage.removeChild(laser); i--; } } } // increment the ticker tick += 1; } } } import laya.display.Sprite; class Laser extends Sprite { public var life:int; }

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