大约有 101 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
... var sp:Sprite = new Sprite(); sp.loadImage(url); addChild(sp); sp.pos(100, 200); trace("url=" + url);//blob:file%3A///1c4effc4-4022-4ab5-8feb-e39ff76b7410 trace(sp.width);//0...
来源: Laya_社区 发布时间: 20170417
... 报错堆栈 TypeError: tex.getIsReady is not a function at Graphics.loadImage (file:///D:/zxl/2.0_stable/lfGame2.0/bin/libs/laya.core.js:11477:26) at Function.createFrames (file:///D:/zxl/2.0_stable/lfGame2.0/bin/libs/laya.core.js:23134:23) at Animation.loadImages (file:///D:/zxl/2.0_stable/l...
来源: Laya_社区 发布时间: 20200417
...w(); } private _initView():void { let sprite:Sprite = new Sprite(); sprite.loadImage("res/scene/1001/layer1/qiang.jpg", 100, 100, 100, 100); this.addChild(sprite); sprite = new Sprite(); sprite.graphics.drawCircle(100, 500, 50, "#0000ff"); //sprite.graphics.scale(2, 2); this.addChild(sprite); sprite...
来源: Laya_社区 发布时间: 20180308
...r img:Sprite = new Sprite(); //加载显示图片,坐标位于100,50 img.loadImage("res/layabox.png"); img.x=(Laya.stage.width-256)/2; //添加到舞台 Laya.stage.addChild(img); var img2:Sprite = new Sprite(); //加载显示图片,坐标位于100,50 img2.loadImage("res/layabox.png"); img2.x=(La...
来源: Laya_社区 发布时间: 20200217
...ya.wxmini.js中MinAspter的init方法里添加一行Laya.Loader.prototype._loadImage = MiniImage.prototype._loadImage;即可正常 附件 : --> 2019-12-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron ...
来源: Laya_社区 发布时间: 20191210
...awyuan.graphics.drawCircle(0,0,50,"#232628");//反应非常迟钝 drawyuan.loadImage("../laya/assets/comp/textinput.png");//反应没有问题 drawyuan.size(100, 100); var x = Math.random() * Laya.stage.width; var y = Math.random() * Laya.stage.height; console.log(x + "" + y); drawyuan.pos(x,y); ret...
来源: Laya_社区 发布时间: 20170905
...背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("war/bc.png"); //把背景1放在容器中 this.addChild(this.bg1); //创建游戏背景2 this.bg2 = new Laya.Sprite(); //加载并显示背景图 this.bg2.loadImage("war/bc.png"); //更改背景2,放在背景1的...
来源: Laya_社区 发布时间: 20191018
图片加载问题 var s:Sprite = new Sprite; s.loadImage("res/soil.png"); Laya.stage.addChild(s); chrome报错:Access to Image at 'file:///E:/study/LayaAirStudy/bin/h5/res/soil.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed acces...
来源: Laya_社区 发布时间: 20170116
...); //WebGL Laya.Stat.show(0,0); let sp:Laya.Sprite = new Laya.Sprite; //sp.loadImage("comp/big.png"); //读取分辨率小的图片 正常 sp.loadImage("comp/hug.png"); //读取大分辨率图片 无法显示 Laya.stage.addChild(sp); } } new GameMain();//问题描述 客户要求使用LAYA引擎打...
来源: Laya_社区 发布时间: 20180314
怎么从图集加载单张图片 小图片被打包成图集,通过loadimage 从图集中加载单张图片怎么实现。 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 图集制...
来源: Laya_社区 发布时间: 20180124