大约有 370 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0057 秒)
Laya_社区(320) Laya2.0_文档(33) Laya3.0_文档(8) Laya2.0_示例(3) Laya_示例(3) Laya3.0_api(2) Laya2.0_api(1)
...unction () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBirdSing.index = 0; // 当前播放索引 this.aniBirdSing.zOrder = 1; this.aniBirdSing.play(); this.aniBird...
来源: Laya_社区 发布时间: 20171026
...下: ```JavaScript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = ...
来源: Laya2.0_文档 发布时间: 20210715
...r.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); } 2、你打包图集的时候,.json文件的prefix键是没有值的,这个是因为你直接针对散图所在文件夹进...
来源: Laya_社区 发布时间: 20170821
...png"], "fish_live_16"); //播放不正常 Laya.Animation.createFrames("res/atlas/fish/fish_16.json", "fish_live_16"); 2017-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: ...
来源: Laya_社区 发布时间: 20170908
...下: ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = ...
来源: Laya2.0_文档 发布时间: 20210714
...new Laya.HTMLDivElement(); div.innerHTML="<img src='res/atlas/test.png'/>" Laya.stage.addChild(div); } TypeError: Illegal constructor laya.core.js:11687 at Function.getInstance (file:///D:/work/test2/bin/libs/laya.core.js:11687:24) at Functio...
来源: Laya_社区 发布时间: 20190926
...下: ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = ...
来源: Laya2.0_文档 发布时间: 20210714
...毕,此方法只执行一次 */ onAwake(): void { this.sprite.loadImage("atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y =...
来源: Laya3.0_文档 发布时间: 20251010
... private beginLoad():void{ Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.onLoaded)); } private onLoaded(): void { console.log("onLoaded ......"); GameBootstrap.wxPostMessage({ cmd...
来源: Laya_社区 发布时间: 20180529
... Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置射击类型 th...
来源: Laya_社区 发布时间: 20170525