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

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

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

...{ var 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(); tipContainer.loadImage(step.tip...

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

2. Sprite-绘制各种形状 [ 95%]

...Poly(400, 166, [0, 100, 50, 0, 100, 100], "#ffff00"); //画圆 sp.graphics.drawCircle(98, 332, 50, "#00ffff"); //画扇形 sp.graphics.drawPie(240, 290, 100, 10, 60, "#00ffff"); //绘制圆角矩形,自定义路径 sp.graphics.drawPath(400, 310, [ ["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 11...

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

3. 输入设备-指南针 [ 89%]

...ionIndicator); directionIndicator.alpha = 0.8; directionIndicator.graphics.drawCircle(0, 0, 70, "#343434"); directionIndicator.graphics.drawLine(-40, 0, 40, 0, "#FFFFFF", 3); directionIndicator.graphics.drawLine(0, -40, 0, 40, "#FFFFFF", 3); directionIndicator.x = compassImg.x; directionIndicator.y ...

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