大约有 11 项符合查询结果, 库内数据总量为 30,956 项。 (搜索耗时: 0.0041 秒)
...00,600,1100,600,1100,200"; } private function createBox(posx, posy, width, height, ratio) { var box = new Sprite(); box.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.addChild(box); box.pos(posx, posy).size(width * ratio, height * ratio); var rigidbody: RigidBody = box.addComponent(RigidBody...
来源: Laya2.0_示例 发布时间: 20250404
...dFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; for (var w = 0; w < textureWidth; w++) { var colaStarArr = aStarArr[w] = []; for (var h = 0; h < textureHeight; h++) { var...
来源: Laya3.0_文档 发布时间: 20230303
...么回事? game.max.js:57464 WebGL: INVALID_VALUE: texImage2D: width or height out of range [.Offscreen-For-WebGL-00000000098F0810]GL ERROR :GL_INVALID_VALUE : glRenderbufferStorage: dimensions too large index.html:1 [.Offscreen-For-WebGL-00000000098F0810]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION...
来源: Laya_社区 发布时间: 20170512
...dFinish() { // .......前面摄影机,猴子精灵相关操作忽略 var heightMap = Laya.Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png"); //初始化MeshTerrainSprite3D this.terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh a...
来源: Laya2.0_文档 发布时间: 20210714
...的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = "#ffffff"; // 加载进度条 this.refreshLoading = new Box(); this.refreshLoading.pos(133, 0); this.refreshLoading.bottom = 10; this.refreshLoading.visible = fal...
来源: Laya2.0_示例 发布时间: 20250404
...proto = Hp.prototype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getR...
来源: Laya_社区 发布时间: 20160803
...ish():void{ // .......前面摄影机,猴子精灵相关操作忽略 var heightMap = Laya.Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png"); //初始化MeshTerrainSprite3D this.terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh a...
来源: Laya2.0_文档 发布时间: 20210715
...ish():void { .......//前面摄影机,猴子精灵相关操作忽略 var heightMap:Texture2D = Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Texture2D; //初始化MeshTerrainSprite3D terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter...
来源: Laya2.0_文档 发布时间: 20210714
...tmap"; _colorSpr.pos((1024 - _colorTex.width) >> 1, (768 - _colorTex.height) >> 1); _colorSpr.size(_colorTex.width, _colorTex.height); Laya.stage.addChild(_colorSpr); _initPixelCount = getPixel(_colorTex); addEvent(); } private function addEvent():void { _colorSpr.on(Event.MOUSE_MOVE, th...
来源: Laya_社区 发布时间: 20180302
....x + this.width) && y > this.y && y < (this.y + this.height)){ return true; } return false; } })(); 这里通过Floor中的init方法来增加type参数 1 代表默认宽度 传其他值 则是随机宽度 然后我们打开 MapFloor.js 也需要将初始化Floor的地...
来源: Laya_社区 发布时间: 20160801