大约有 1,720 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0044 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...游戏端正常: GameConfig的配置: static width:number=1136; static height:number=640; static scaleMode:string="exactfit"; static screenMode:string="horizontal"; static alignV:string="top"; static alignH:string="left"; static startScene:any="desktop.scene"; 附件 : --> IOStest.zip 2023-08-15...
来源: Laya_社区 发布时间: 20230815
...关的链接 提交 2 个回复 cuixueying 赞同来自: Laya.init(width,height,WebGL)即可,你是怎么写的,还有具体表现,麻烦截图看下吧! 2017-07-18 0 4 分享 微博 QZONE 微信 godssl 赞同来自: 2017-07-18 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20170718
...mage("res/basketball.png"); ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2); this.ball = Matter.Bodies.circle(0, -100, 34, { layaSprite: ball_skin, // 绑定一个laya的Sprite, 不能用render.sprite density: 1, // 密度 restitution: 0.85 // 弹性 }); 2017-07-04 3 0...
来源: Laya_社区 发布时间: 20170102
...e); mArmature.pos(parent.x+parent.width/2, parent.y+parent.height/2); mArmature.scale(3, 3); mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); mArmature.play(1, true); } completeHandler() { } } ...
来源: Laya_社区 发布时间: 20190730
...听有效,但是如果使用 var sp = new Sprite(); sp.width = 720; sp.height = 1280 Laya.stage.addChild(sp) sp.on(laya.events.Event.KEY_DOWN, this, this.onkeyDown); 就不能监听到键盘事件呢,这是怎么回事呢? 2018-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180112
...2.text = "上个Lable的宽: " + demoLable1.width + ", 高: " + demoLable1.height; demoLable2.fontSize = 50; demoLable2.bgColor = "#0FF"; demo.addChild(demoLable2.pos(0,50)); } 附件 : --> 2018-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20180530
...put = new Laya.TextInput(); this.addChild(input); input.width = 100; input.height = 50; input.on(Laya.Event.BLUR, this, e=>{ let str = input.text.split(''); for (let i = 0; i < str.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j++) { if (str[i] == j.toString()) { isNotNumbe...
来源: Laya_社区 发布时间: 20190225
...ct: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.createMap("res/mario_map/new_map2.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { var layer = this.tMap.getLayerByIndex(9); var gs = layer.getObjectByName('others1'); v...
来源: Laya_社区 发布时间: 20190214
... p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; min-height: 14.0px} p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'} span.s1 {font: 12.0px 'Helvetica Neue'} span.s2 {font: 12.0px '.PingFang SC'} 岗位职责: 1、移动端、小程序的页面开发和...
来源: Laya_社区 发布时间: 20190606
...vas.toTempFilePathSync(); canvas.toTempFilePath({ x: 0, y: 0, width: 1280, height: 720, destWidth: 1280, destHeight: 720, success:function(res:Object):void{ imagePath = res.tempFilePath; __JS__('wx').saveImageToPhotosAlbum({ filePath:imagePath, success:function(res:*):void{ trace("-----------saveIma...
来源: Laya_社区 发布时间: 20180830