大约有 1,779 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
...行失败 //使精灵走到鼠标位置 function walkToMousePos(sprite){ console.log(Laya.stage.mouseX) ; console.log(Laya.stage.mouseY) ; console.log(sprite.x) ; console.log(sprite.y) ; var hDir = Laya.stage.mouseX>sprite.x? "right" : "left" ; var vDir = Laya.stage.mouseY>sprite.y? "down" :...
来源: Laya_社区 发布时间: 20180331
如何在chrome console 里模拟canvas点击事件 在一个用laya开发的小游戏界面上,想做一个类似自定点击的脚本。 就是固定几个位置,过一段时间点击一次。 能帮忙做的联系我~ 小游戏页面: https://pokereos.io/ 2019-01-26 添加评论 已悬...
来源: Laya_社区 发布时间: 20190126
...yFile({srcPath:tempFilePath,destPath:saveFilePath,success:function (data){ console.log(data, fileObj) if (!fileObj){ MiniFileMgr.onSaveFile(readyUrl,tempFileName); callBack !=null && callBack.runWith([0]); }else { console.log(fileObj.readyUrl == readyUrl, 'zhege') if (fileObj.readyUrl !=read...
来源: Laya_社区 发布时间: 20180104
...; } private openHandler(event: any = null): void { //正确建立连接; console.log("建立"+event);//没有写出 } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 console.log("收到"+msg);;//没有写出 console.log(msg);;//没有写出 } private closeHandler(e: ...
来源: Laya_社区 发布时间: 20180210
...l.name = i.toString(); } console.log("add finished: ", myscene.numChildren); for(var i=0; i<myscene.numChildren; i++){ console.log(myscene.getChildAt(i).name) ...
来源: Laya_社区 发布时间: 20200723
...) { var item = {pic:{skin:'cards/'+i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.lis...
来源: Laya_社区 发布时间: 20170914
...fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { console.log("----------the event resize-------") console.log("ref-resize:", this.myref.getBounds()); console.log("pan-resize", this.mypan.getBounds()); } private fitDOMElements_scroll(a, b, c, d, e, f): void { console.log("--...
来源: Laya_社区 发布时间: 20170720
... Laya.stage.addChild(img1); img1.on(Laya.Event.CLICK,this, function(name){ console.log(name);},['图1']); var img2 = new Laya.Sprite(); img2.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/apes/monkey2.png',200,300,90,90); Laya.stage.addChild(img2); img2.on(Laya.Event.CLICK,this, function(nam...
来源: Laya_社区 发布时间: 20180621
... this.state_ = EConnectionState.eConnected; console.log("conect to 127.0.0.1"); } protected _onMessage(msg: any): void { super._onMessage(msg); console.log("receve msg : "); console.log(msg); ...
来源: Laya_社区 发布时间: 20170602
...的是DDMS+夜神模拟器的方式来看打印调试 TS代码如下: console.debug("--- test debug print ---"); console.error("--- test error print ---"); console.info("--- test Info print ---"); console.warn("--- test Trace print ---"); 打包apk后 使用模拟器运行 DDMS查看打...
来源: Laya_社区 发布时间: 20180302