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

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

31. 点击区域问题 [ 65%]

...on spHandler() {     sp.graphics.clear();     var rc:number = Math.floor(Math.random()*0xffffff);     sp.graphics.drawRect(-50,-100,100,100,"#"+rc); } 这样多包几层,点击区域就会怪怪的,绘制的区域和点击区域不一样,不知道是不是我理解的有问题 2018...

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

32. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 65%]

... cellZ = this.terrainSprite.depth / this.aStarMap.height; var gridX = Math.floor((x - minX) / cellX); var gridZ = Math.floor((z - minZ) / cellZ); var boundWidth = this.aStarMap.width - 1; var boundHeight = this.aStarMap.height - 1; (gridX > boundWidth) && (gridX = boundWidth); (gridZ > boundHeight) ...

来源: Laya2.0_文档 发布时间: 20210714

33. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 64%]

... cellZ = this.terrainSprite.depth / this.aStarMap.height; var gridX = Math.floor((x - minX) / cellX); var gridZ = Math.floor((z - minZ) / cellZ); var boundWidth = this.aStarMap.width - 1; var boundHeight = this.aStarMap.height - 1; (gridX > boundWidth) && (gridX = boundWidth); (gridZ > boundHeight) ...

来源: Laya2.0_文档 发布时间: 20210715

34. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 64%]

...cellZ:Number = terrainSprite.depth / aStarMap.height; var gridX:int = Math.floor((x - minX) / cellX); var gridZ:int = Math.floor((z - minZ) / cellZ); var boundWidth:int = aStarMap.width - 1; var boundHeight:int = aStarMap.height - 1; (gridX > boundWidth) && (gridX = boundWidth); (gridZ > boundHeight...

来源: Laya2.0_文档 发布时间: 20210714

35. 2D方向光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

...e + Laya.timer.delta / 1000) % this.dayDuration; const totalMinutes = Math.floor((this.getAdjustedProgress()) * 24 * 60); const hours = Math.floor(totalMinutes / 60); const minutes = totalMinutes % 60; const timeString = `${this.padNumber(hours)}:${this.padNumber(minutes)}`; // 更新文本显示 th...

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

36. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 62%]

...Map.ORIENTATION_STAGGERED:                     tileX = Math.floor(tileX);                     tileY = Math.floor(tileY);                     screenPos.x = tileX * _map.tileWidth + (tileY & 1) * _tileWidthHalf;                     screen...

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

37. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 62%]

... (this.loadedClips.length > 0) { const clipPath = this.loadedClips[Math.floor(Math.random() * this.loadedClips.length)]; this.playMcClip(clipPath); } else { // 兜底:用 Animator2D 状态机 const idx = Math.floor(Math.random() * 8) + 1; this._animator?.play(`move${idx}`); } } /* -------------...

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

38. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 60%]

...tion (file:///D:/zxl/2.0_stable/lfGame2.0/bin/js/bundle.js:3988:28) at Pry_floor.playShuiJingLoop (file:///D:/zxl/2.0_stable/lfGame2.0/bin/js/bundle.js:11677:28) at Pry_floor.<anonymous> (file:///D:/zxl/2.0_stable/lfGame2.0/bin/js/bundle.js:11663:22) at EventHandler.run (file:///D:/zxl/2.0_sta...

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

39. 没有人尝试使用3d物理引擎么 [ 57%]

...SpriteMoveScript); SpriteStat.show(box, 200, 50); //添加场景地板 var floor:MeshSprite3D=scene.addChild(new MeshSprite3D(new QuadMesh(100, 100))) as MeshSprite3D; var floorMat:StandardMaterial=new StandardMaterial(); floorMat.diffuseTexture=Texture2D.load("res/bw.jpg"); floor.meshRender.materia...

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

40. IBQuadrangle不停上涨,如何定位? [ 57%]

...间玩会引发 throw Error("IBQuadrangle count:"+count+" must<:"+Math.floor(65535 / 4)); 游戏sprite的峰值在500以下,稳定后,基本不会新增对象。 游戏重绘稍微有点高,是因为重绘吗? 2018-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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