大约有 99 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
...on spHandler() { sp.graphics.clear(); var rc:number = Math.floor(Math.random()*0xffffff); sp.graphics.drawRect(-50,-100,100,100,"#"+rc); } 这样多包几层,点击区域就会怪怪的,绘制的区域和点击区域不一样,不知道是不是我理解的有问题 2018...
来源: Laya_社区 发布时间: 20180106
... 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
... 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
...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
...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
...Map.ORIENTATION_STAGGERED: tileX = Math.floor(tileX); tileY = Math.floor(tileY); screenPos.x = tileX * _map.tileWidth + (tileY & 1) * _tileWidthHalf; screen...
来源: Laya_社区 发布时间: 20161109
... (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
...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
...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
...间玩会引发 throw Error("IBQuadrangle count:"+count+" must<:"+Math.floor(65535 / 4)); 游戏sprite的峰值在500以下,稳定后,基本不会新增对象。 游戏重绘稍微有点高,是因为重绘吗? 2018-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180730