大约有 2 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0011 秒)
...ript三种开发语言、LayaAirIDE让项目开发更高效。//swipe滚动范围 let TrackLength = 200; //触发swipe的拖动距离 let TOGGLE_DIST = TrackLength / 2; let buttonPosition, beginPosition, endPosition; let button; class Interaction_Swipe { constructor() { const Browser = Laya.Browser,...
来源: Laya2.0_示例 发布时间: 20241117
...置 targetPosition.x += vx; targetPosition.y += vy; // 限制蛇的移动范围 this.limitMoveRange(); // 检测觅食 this.checkEatFood(); // 更新所有关节位置 let targetX = targetPosition.x; let targetY = targetPosition.y; for (let i = 0, len = segments.length; i Laya.stage.width) targetPos...
来源: Laya2.0_示例 发布时间: 20241117