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

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

31. 为什么会出现报错 ani not found:ufo1_down [ 75%]

...化子弹信息 bullet.init("bullet1",role.camp,1,-4-role.shootType - Math.floor(this.level / 15),1,1); // 设置角色类型为子弹类型 // bullet.isBullet = true; // 设置子弹发射初始化位置 bullet.pos(role.x + pos[index], role.y - role.hitRadius - 10 ); // 添加到舞台上 Laya.stag...

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

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

... 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. 为什么会出现报错 ani not found:ufo1_down [ 73%]

...化子弹信息 bullet.init("bullet1",role.camp,1,-4-role.shootType - Math.floor(this.level / 15),1,1); // 设置角色类型为子弹类型 // bullet.isBullet = true; // 设置子弹发射初始化位置 bullet.pos(role.x + pos[index], role.y - role.hitRadius - 10 ); // 添加到舞台上 Laya.stag...

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

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

... 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

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

...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

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

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

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

37. list随机生成图片优化 [ 72%]

list随机生成图片优化 var aa:int= Math.floor((Math.random()*4)+1); var bb:int; switch(aa) { case 1: bb=2; break; case 2: bb=4; break; case 3: bb=1; break; case 4: bb=3; break; } var img:Image = cell.getChildByName("img1") as Image; img.skin ="battle/xuanshangyu/Image_"+aa+"00"+bb+".png"; 一...

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

38. 为什么这个图片还是随机切换不了,新手求帮忙 [ 71%]

...odo 你好   以下代码是用Image的skin来替换资源var index= Math.floor(Math.random()*num); var img= new Laya.Image(); Laya.stage.addChild(img); img.skin = "res/"+index+".png"; 2017-01-11 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

39. list功能改变图片皮肤 [ 71%]

...:Number=0;q<130;q++){ var first:Object= new Object(); //first.lbl =Math.floor(Math.random()*3+1) ; if(q == 1) { var cc:*=_tempFruitUi.panel; var dd:List=aa.getChildByName("firstList") as List; var itemB:Box = dd.getCell(0); var specificPic:Image = itemB.getChildByName("img1") as Image; specificPi...

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

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

...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