大约有 99 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0047 秒)
...化子弹信息 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
... style.height = screen.height + 'px'; style.width = Math.floor(screen.height / Laya.stage.height * Laya.stage.width) + 'px'; document.body.appendChild(this.nativeImg) } onEnable() { Laya.timer.once(1000, this, this.delayShowImg); } de...
来源: Laya_社区 发布时间: 20230323
...pPropagation(); if(!Game.runing) { Game.runing = true; Game.stepNum = Math.floor(Math.random() * 6) + 1; console.log(Game.stepNum) Animate.role(Game.stepNum); } },[this.items.shaizi]); 弹层的代码: this.prizeAlertLayer = new Sprite(); this.prizeAlertLayer.zOrder = 90; this.prizeAlertLayer.si...
来源: Laya_社区 发布时间: 20180601
...value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })(); ```
来源: Laya2.0_文档 发布时间: 20210715
...tr.substr(len, str.length - len - 1); console.log(name); let number = Math.floor(Math.random() * 9999); let name2; let lastIndex = name.lastIndexOf("_"); if(lastIndex == -1){ name2 = name + "_" + number; }else{ name2 = name.substr(0, lastIndex) + "_" + number; } let name2s = name2 + "("; //phpConten...
来源: Laya_社区 发布时间: 20190613
...; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar(); ```
来源: Laya2.0_文档 发布时间: 20210715
...ode referenceSpaceType: string referenceType = "viewer" | "local" | "local-floor" | "unbounded"; cameraInfo: WebXRCameraInfo WebXRCameraInfo webXRCamera设置 Returns Promise<WebXRSessionManager> Promise Static setWebXRCamera setWebXRCamera(camera: Camera, manager: WebXRSessionManager): WebXRC...
来源: Laya3.0_api 发布时间: 20231115
... 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 >...
来源: Laya3.0_文档 发布时间: 20230303
...*/ private function onChange(value:Number):void { trace("进度:" + Math.floor(value * 100) + "%"); } } } ```
来源: Laya2.0_文档 发布时间: 20210715
...取通行层 console.log(this.pass); } _proto.getLayer = function() { this.floor = this.map.getLayerByIndex(0);//获取通行层 console.log(this.pass); } console.log(this.map) return loadMap; })(Sprite);**游戏主入口** var Main = (function (){ (function Main(){ Laya.init(448,448); var map1 = ne...
来源: Laya_社区 发布时间: 20170605