大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0151 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...ian) * this.width; var ty = this.y + Math.sin(radian) * this.width; return new Point(tx, ty); } this.size(width, height); this.init(); } Laya.class(Segment, "Segment", Sprite); var seg; var segments = []; var foods = []; var initialSegmentsAmount = 5; var vx = 0, vy = 0; var targetPosition; (functio...
来源: Laya_示例 发布时间: 20260303
...call 暴增 ?????????????? fish.scoreItem = new Laya.Image(); fish.scoreItem.skin = "assets/ui_imgs/img_10103.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.sc...
来源: Laya_社区 发布时间: 20180517
...性问题 这个问题我提过多次,但应该还没有解决。 text=new Text(); text.size(120,80); text.font="位图字体名"; text.piovtY=text.height>>1; text.align = "center"; text.valign= "middle"; text.borderColor="#ffffff"; 上下中心不对称,左右是对的,如图 附件...
来源: Laya_社区 发布时间: 20161116
... 1. 使用getBounds/ getGraphicBounds。 ```javascript var sp:Sprite = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#FF0000"); var bounds:Rectangle = sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但由于其需要计算边界,...
来源: Laya2.0_文档 发布时间: 20210715
js进度,进度,js场景进度效果 new function() { var className = 'Game'; window[className] = (function(original) { function Class() { this.arr = [ "res/atlas/lucky8.json", "res/atlas/lucky8/lewinlineicons.json", "res/atlas/lucky8/setting.json", "res/atlas/lucky8/setView.json", "res/atlas/lucky...
来源: Laya_社区 发布时间: 20170803
...能取得内部属性 removeChildren destroyChildren的区别 _bottomBtn = new BottomBtn();//这个对象内部有一个属性为testNum; this.addChild(_bottomBtn); trace("测试1 = " + _bottomBtn.testNum + "-" + _bottomBtn);// 测试1 = 1-[object Object] ...
来源: Laya_社区 发布时间: 20170328
... QZONE 微信 wqt542434707 赞同来自: var bimgBox = new laya.display.Sprite; var w = 490, h = 770; bimgBox.graphics.drawRect(0, 0, w, h, "#FF7F50"); var rect = new Rectangle(0,0,200,200); ...
来源: Laya_社区 发布时间: 20170526
... = Stage.ALIGN_CENTER; Laya.stage.bgColor = "#232628"; Laya.stage.viewport=new Rectangle(0,0,300,300); createMap(); } private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.heig...
来源: Laya_社区 发布时间: 20170419
... Laya.loader.load(['remote/music/' + this.soundUrl + '.mp3'], new Laya.Handler(this, () => { this.store.isDemo = true; Laya.Scene.open("scene/Home.scene") }), new Laya.Handler(this, (value:...
来源: Laya_社区 发布时间: 20201102
...要知道。 1. 使用getBounds/ getGraphicBounds。 ```javascript var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但由于其需要计算边界,不适合...
来源: Laya2.0_文档 发布时间: 20210715