大约有 14 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0044 秒)
... 170*****199 • 2018-05-25 17:04 var loadData = [ { "url": 'res/atlas/main.atlas', "type":Laya.loader.ATLAS }, { "url": 'res/atlas/newUser.atlas', "type":Laya.loader.ATLAS }, { 'url': "res/atlas/role_skin.atlas", "type":Laya.loader.ATLAS }...
来源: Laya_社区 发布时间: 20180525
...在GameAni.ani内制作 private var aniArr:Array = [ "res/atlas/role/hero.atlas", "res/atlas/role/monster/monsterA/die.atlas", "res/atlas/role/monster/monsterA/move.atlas" ]; Laya.loader.load(aniArr, Handler.create(this, onAni), null, Loa...
来源: Laya_社区 发布时间: 20170619
...1094 关注: 5 人 jacksing888 • 2018-01-22 23:37 Laya.loader.load( 'res/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; rol...
来源: Laya_社区 发布时间: 20180122
... 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
... 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
...成后我们会看到输出目录的3个文件,分别为.rec , Girl.atlas 和 Girl.png 看到这3个文件说明我们成功的将图集打包,图4 接下来我们需要将打包后的atlas和png文件存放到项目的bin/h5/res路径下, .rec是打包工具用的文件,我们可以不...
来源: Laya_社区 发布时间: 20171221
... { urls.push("Res/atlas/array/stand/" + ((dir*4) + i) + ".png"); } for (var j:int = 0 ; j < 8 ; j ++) { urls.push("Res/at...
来源: Laya_社区 发布时间: 20170921
...的示例里,制作好UI页面以后发布,会产生一个ui页面的atlas文件,而我制作好以后发布,缺没有出现页面的atlas文件,只有图片资源的atlas文件,何解???例如官方的例子:Laya.loader.load(["./res/atlas/ListPage.atlas", "res/atlas/template/But...
来源: Laya_社区 发布时间: 20170904
... //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(t...
来源: Laya_社区 发布时间: 20171228
...F12发布后,生成的图集会自动识别h5项目路径(bin/h5/res/atlas/或者bin/res/atlas)并进行保存。 实际上项目正式发布后你用到的资源是bin下的,laya下的资源是编辑器原始的小图资源,不冲突。 第二个问题: 图片是否合成一个图...
来源: Laya_社区 发布时间: 20160818