大约有 1,326 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0058 秒)
...sole.info(mapLayer.layerName); this.sp.pos(0,0); mapLayer._childs[0].addChild(this.sp); } } new GameInfo(); 遇到的问题1 把精灵插入地图时 如果代码这样写就会报错 mapLayer.addChild(this.sp); 必须要这样写才可以 mapLayer._childs[0].addChild(this.sp); ...
来源: Laya_社区 发布时间: 20171125
... mainCan = new Sprite(); Laya.stage.addChild(mainCan); dialogCan = new Sprite(); Laya.stage.addChild(dialogCan); tipCan = new Sprite(); ...
来源: Laya_社区 发布时间: 20180306
...raphics.drawRect(0,0,200,100,"#FF0000"); sp.graphics.restore(); Laya.stage.addChild(sp);我测试没有问题,可以把你详细的代码发下,我们看下! 2017-06-09 0 0 分享 微博 QZONE 微信 raytrace 赞同来自: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Tex...
来源: Laya_社区 发布时间: 20170609
...hics.drawCircle(0,0,100,"#00CC33"); sprite.graphics = graphics; Laya.stage.addChild(sprite); //画一条直线,添加进圆 var sprite2:Sprite = new Sprite(); var graphics2:Graphics = new Graphics(); graphics2.drawLine(500,500,500,400,"#000000",2); sprite2.graphics = graphics2; Laya.stage.addChild...
来源: Laya_社区 发布时间: 20190515
... fish.scoreItem.y = fish.getBox().y - fish.scoreItem.height; this.scoreBox.addChild(fish.scoreItem); fish.scoreGold = new Laya.Image(); fish.scoreGold.skin = "assets/ui_imgs/icon_00312.png"; fish.scoreGold.x = fish.scoreItem.x; fish.scoreGold.y = fish.scoreItem.y; fish.scoreGold.scaleX = 0...
来源: Laya_社区 发布时间: 20180516
...tructor() { super(); //添加3D场景 var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.scene3d = scene; //添加照相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, ...
来源: Laya_社区 发布时间: 20190618
...ar.x = -50; par.y = 1280; par.autoPlay = false; MonsterHunt2.battleUILayer.addChild(shade); MonsterHunt2.battleUILayer.addChild(par); } 粒子系统的教程地址你可以参考一下 https://layaair.ldc.layabox.co ... %3DT3 Azure • 2018-04-11 17:09 我用的是3D的lh后缀的特效,教程我...
来源: Laya_社区 发布时间: 20180409
...age.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } function createTimerAnimation() { counter = new Clip(clipSkin, 10, 1); counter.autoPlay = true; counter.interval = 1000; counter.x = (Laya.stage.width - counter.width) / 2 - 35; counter.y = (Laya.stage.height ...
来源: Laya2.0_文档 发布时间: 20210715
...tion onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _list = new List(); _list.itemRender = RecordItem; _list.repeatX = 1; _list.repeatY = 13; _list.spaceY = 3; _list.vScrollBarSkin = "";...
来源: Laya_社区 发布时间: 20170323
...x = new Sprite(); this.box.cacheAs = "bitmap"; this.box.pos(0,0); this.say.addChild(this.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, this.say.height/2, this.say.width/2+9,0,this.angle, "#ffffff"); this.circle = new Sprite(); this.circle....
来源: Laya_社区 发布时间: 20170807