大约有 1,038 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0065 秒)
Laya_社区(609) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(47)
...形比如 var mapMask = new Laya.Sprite(); mapMask.size(100,100); mapMask.pos(50,50); mapMask.graphics.drawCircle(0, 0, 50, "#000000") 我这么获得mapMask的matrix,然后放进graphics.drawTexture中呢? 不要说直接用mask,因为微信小游戏不支持,谢谢 2018-11-25 添加评论 ...
来源: Laya_社区 发布时间: 20181125
...toSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage...
来源: Laya3.0_api 发布时间: 20231115
...调参数,如何传递和接收? Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 微信开发者工具与Html标签 问题状态 最新活动: 2018-06-25 15:42 浏览: 1163 关注: 2 人 186*****590 • 2018-06-25 17:09 非常感谢,我试试 186*****...
来源: Laya_社区 发布时间: 20180625
...w GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200) Laya.stage.addChild(hero) Laya.timer.once(3000, this, gameOver) } function gameOver() { map.removeSelf() play.removeSelf() over = new GameOverUI() over.txt_score.text = "25" over.btn_restart.on(Event.MOUSE_UP,thi...
来源: Laya_社区 发布时间: 20180911
.../资源路径 this.Res = "test.png"; this.img = new Laya.Image(); this.img.pos(200, 200) //获取图片资源,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage.addChild(this.img); } private cacheCanvas: Laya.HTMLCanvas private cacheTexture: Laya.Texture init(){ let rect = this....
来源: Laya_社区 发布时间: 20171211
...stroy onDisable onEnable once parentRepaint paused pivot play playbackRate pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild resetExternalSkin resume runCallLater scale setChildIndex setGraphics setMix setSelfBounds setSlotAttachment set_an...
来源: Laya3.0_api 发布时间: 20231115
...e(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private function onTween1():void { // TODO Auto Generated method stub num ; trace(num); Tween.clearTween(onTween1); Tween.to(sp,{x:100},1000...
来源: Laya_社区 发布时间: 20160913
...r i:int=0;i<10;i++){ var p:wheel=Pool.getItemByClass("wheel", wheel); p.pos(i*90+100,200); p.init(); roleLayer.addChild(p) } /////////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling....
来源: Laya_社区 发布时间: 20190312
...); this.fly.pivot(this.bounds.width / 2, this.bounds.height / 2); this.fly.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.diango.addChild(this.fly) this.diango.show(); this.diango.popup(); } _proto.onClose = function () { this.diango.close(); } return Loading_fly; }(Laya.Sprite); 2017-11-08 ...
来源: Laya_社区 发布时间: 20171107
...toSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage...
来源: Laya3.0_api 发布时间: 20231115