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

大约有 901 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0067 秒)

881. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 47%]

...使用时需要多大的字就在此处设置相同大小的字号。 ​ Height:设置字体的拉伸高度,保持默认的100%就可以。 ​ * 注意:Charset的值选择Unicode。* ​ ![图片1.png](http://ldc.layabox.com/uploadfile/image/20160518/1463538956945255.png) ​ 5.在选择菜...

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

882. 请问object层中添加的sprite怎么添加点击事件 [ 47%]

... flower.pivotY=80; flower.zOrder = budai.y; flower.autoSize = true; flower.height = 100; flower.width = 100; flower.size(100,100); flower.on(Laya.Event.CLICK,this,function() {    alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld...

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

883. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 47%]

...e; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; // 关于透传接口,请参考: https...

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

884. List滚动条问题 [ 45%]

...g; this._goldImage.pos((312-this._goldImage.width)/2, (462-this._goldImage.height)/2); }; this.setPrice = function(price) { this._goldButton.label = "RMB " + price; }; } Laya.class(MarketItem, "xgame.marketitem", _super); })(Laya.Box);list代码如下: var list = new Laya.List(); list.itemRender =...

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

885. 分享一个Shader版的CoolDown实现 [ 45%]

...    var texWidth: number = texture.width;                 var texHeight: number = texture.height;                 //定义颜色值,取值范围0~1 浮点。                 const red: number = 1;                 const greed: number = 1;                 co...

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

886. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 44%]

...iewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠标点击屏幕时,会发射一...

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

887. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 44%]

...exture2, 0, 0); //把草垛居底部显示 // this.grass.y = Browser.clientHeight - this.grass.height; this.addChild(this.grass); //创建一个帧循环处理函数,用于背景位置的更新,实现背景滚动效果。 Laya.timer.frameLoop(1, this, this.onLoop) } _proto.onLoop = function(){ /...

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

888. 列表组件 · LayaAir3.0文档 · LAYABOX [ 44%]

...eatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 设置List的垂直滚动 list.scrollType = Laya.ScrollType.Vertical; // 设置List的垂直滚动皮肤,不设置或者""就没有滚动条皮肤 list.vScrollBarSkin = ""; // 开...

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

889. 微信小游戏利用开放域好友关系链做排行榜 [ 44%]

...sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height);                  // console.log("再次往开放域发请求");                 // openDataContext.postMessage({                 //  cmd:2,              ...

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

890. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 42%]

....x + this.width) && y > this.y && y < (this.y + this.height)){ return true; } return false; } })();   这里通过Floor中的init方法来增加type参数  1 代表默认宽度 传其他值 则是随机宽度 然后我们打开 MapFloor.js 也需要将初始化Floor的地...

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