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

大约有 1,002 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)

1001. 【简单跑酷--JS版】---Lv.6 终篇 [ 35%]

...yer.x, this.player.y)){ //人物如果踩到地板了 就把人物的坐标设置到地板上面 this.player.y = floor.y; //如果到地板上面的 就得重置跳的方法 this.player.jumpReset(); } } } //点击 出发人物 跳跃 _proto.onMouseDown = function(){ this.player.jump(); } _proto.onMo...

来源: Laya_社区 发布时间: 20160803

1002. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 32%]

...点击地面时,通过鼠标事件发起获得最短路径的调用: //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { //起始和目标点 var start = this.graph.grid[this.startPoint.x][this.startPoint.y]; var end = this.graph.grid[this.endPoint.x][this.en...

来源: Laya3.0_文档 发布时间: 20230303