大约有 379 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0042 秒)
Laya_社区(162) Laya3.0_api(70) Laya2.0_api(62) laya_api(59) Laya_示例(9) Laya2.0_文档(8) Laya2.0_示例(7) Laya3.0_文档(2)
...ge = Laya.Stage; var Event = Laya.Event; var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var tiledMap; var mLastMouseX = 0; var mLastMouseY = 0; var mX = 0; var mY = 0; (function() { /...
来源: Laya_示例 发布时间: 20241117
...at.show(); } // 创建地图 createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle, Handler = Laya.Handler, Browser = Laya.Browser; mX = mY = 0; // 创建地图对象 this.tiledMap = new TiledMap(); // 创建地图,适当的时候调用destory销毁地图 this.tiledMap.createMap...
来源: Laya2.0_示例 发布时间: 20241117
....Graphics; var Event = Laya.Event; var Layer = Laya.Layer; var Rectangle = Laya.Rectangle; function layaSlot(info){ layaSlot.__super.call(this); this.size(200,200); this.graphics.drawRect(0,0,200,200,'#123456'); var viewPort = new Rectangle(0,0,200,...
来源: Laya_社区 发布时间: 20170323
...rns void Static getGlobalPosAndScale getGlobalPosAndScale(sprite: Sprite): Rectangle Defined in laya/utils/SpriteUtils.ts:37 计算传入的显示对象 Sprite 的全局坐标系的坐标和缩放值,返回 Rectangle 对象存放计算出的坐标X值、Y值、ScaleX值、ScaleY值。 Parameters s...
来源: Laya3.0_api 发布时间: 20231115
...ody, engine: engine }); // create two boxes and a ground var boxA = Bodies.rectangle(400, 200, 80, 80); var boxB = Bodies.rectangle(450, 50, 80, 80); var ground = Bodies.rectangle(400, 500, 810, 60, { isStatic: true }); // add all of the bodies to the world World.add(engine.world, [boxA, boxB, groun...
来源: Laya_社区 发布时间: 20170905
...大小 TiledMap changeViewPortBySize(width:Number, height:Number, rect:Rectangle = null):Rectangle 在锚点的基础上计算,通过宽和高,重新计算视口 TiledMap createMap(mapName:String, viewRect:Rectangle, completeHandler:Handler, viewRectPadding:Rectangle = null, gridSize:Point...
来源: laya_api 发布时间: 20170929
...大小 TiledMap changeViewPortBySize(width:Number, height:Number, rect:Rectangle = null):Rectangle 在锚点的基础上计算,通过宽和高,重新计算视口 TiledMap createMap(mapName:String, viewRect:Rectangle, completeHandler:Handler, viewRectPadding:Rectangle = null, gridSize:Point...
来源: Laya2.0_api 发布时间: 20190513
....graphics; this.closeBtn.hitArea = hitA; // 写法三 let closeRect:Laya.Rectangle = new Laya.Rectangle(this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+20); this.closeBtn.hitArea = closeRect; // closeBtn 为 Laya.Button 实例 this.closeBtn.on(Event.CLICK,this,t...
来源: Laya_社区 发布时间: 20170920
...aya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Rectangle = Laya.Rectangle; import Loader = Laya.Loader; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_Altas { private AniConfPath: string = "res/fighter/fighter.json"; constructor() { // ...
来源: Laya2.0_示例 发布时间: 20241117
... { import laya.display.Node; import laya.display.Sprite; import laya.maths.Rectangle; import laya.ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import ui.TestDialogUI; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var spee...
来源: Laya_社区 发布时间: 20171129