大约有 298 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0044 秒)
Laya_社区(77) Laya3.0_api(62) Laya2.0_api(58) laya_api(54) Laya2.0_文档(19) Laya2.0_示例(11) Laya_示例(11) Laya3.0_文档(6)
...0 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg']) Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown) Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp) this.moveMap(this.offsetX,this.offsetY) } move...
来源: Laya_社区 发布时间: 20181220
...dler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var tiledMap; var mLastMouseX = 0; var mLastMouseY = 0; var mX = 0; var mY = 0; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(...
来源: Laya_社区 发布时间: 20171205
...lickHandler); } private function __clickHandler():void { trace(_view.stage.mouseX + "---" + _view.stage.mouseY); /*获取所画曲线鼠标点击处的像素,为何坐标对不上?导致无法拿到正确位置的Texture*/ var hc:HTMLCanvas = _view.drawToCanvas(1, 1, _view.stage.mouseX, _view.st...
来源: Laya_社区 发布时间: 20180319
...太清楚作用 //最终鼠标在X轴上的值 this.lastMouseX = NaN; //最终鼠标在Y轴上的值 this.lastMouseY = NaN; this.yawPitchRoll = new Laya.Vector3(); // //实例化一个四元素 ...
来源: Laya_社区 发布时间: 20170810
... = 0; } function onMouseMove() { if (!isDown) return; path.push(Laya.stage.mouseX); path.push(Laya.stage.mouseY); } function onMouseUp() { isDown = false; canvasGraphics.drawPoly(0, 0, path.concat(), color); } function animate() { liveGraphics.clear(); liveGraphics.drawPoly(0, 0, path, color); } })(...
来源: Laya_示例 发布时间: 20241119
...th.length = 0; } onMouseMove() { if (!isDown) return; path.push(Laya.stage.mouseX); path.push(Laya.stage.mouseY); } onMouseUp() { isDown = false; canvasGraphics.drawPoly(0, 0, path.concat(), color); } animate() { liveGraphics.clear(); liveGraphics.drawPoly(0, 0, path, color); } } new PIXI_Example_21...
来源: Laya2.0_示例 发布时间: 20241119
...k() { var p = new Point(0, 0); layer.getTilePositionByScreenPos(Laya.stage.mouseX, Laya.stage.mouseY, p); layer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); sprite.pos(p.x, p.y); } function mapLoaded() { layer = tiledMap.getLayerByIndex(0); var radiusX = 32; var radiusY = Math.ta...
来源: Laya_示例 发布时间: 20241119
...取选中格子的索引 this.layer.getTilePositionByScreenPos(Laya.stage.mouseX, Laya.stage.mouseY, p); // 通过地图坐标得到屏幕坐标 this.layer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); this.sprite.pos(p.x, p.y); } mapLoaded() { this.layer = this.tiledMap.getLayerB...
来源: Laya2.0_示例 发布时间: 20241119
...ction(){ var mouseY=Laya.stage.mouseY; var mouseX=Laya.stage.mouseX; this._lastOffset=this.isVertical ? (mouseY-this._lastPoint.y):(mouseX-this._lastPoint.x); if (this._clickOnly){ //TODO vison 2019/5/9 ...
来源: Laya_社区 发布时间: 20181028
...ger mouseMoveAccuracy : Number = 2 鼠标移动精度。MouseManager mouseX : Number = 0 canvas 上的鼠标X坐标。MouseManager mouseY : Number = 0 canvas 上的鼠标Y坐标。MouseManager multiTouchEnabled : Boolean = true[static] 是否开启多点触控MouseManagerPublic Methods ...
来源: laya_api 发布时间: 20170929