• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 635 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)

421. 请问有没有关于编译选项的官方文档,比如/*[COMPILER OPTIONS:normal]*/这种的说明? [ 49%]

...宽是2M ADSL,所以在优化阶段,我们都会把模拟成2M的带宽200ms延迟下进行优化,让玩家能在网络稳定的情况下20s内进入到主游戏场景; 分包这种技术在大型页游的开发中,还是有必要的,而且手机网络的环境还没有PC端那么稳定...

来源: Laya_社区 发布时间: 20180829

422. 物理引擎-Slingshot [ 49%]

...5, yOffset: 28 } } }); }); var ground2 = Matter.Bodies.rectangle(610, 250, 200, 20, { isStatic: true, render: { fillStyle: '#edc51e', strokeStyle: '#b5a91c' } }); var pyramid2 = Matter.Composites.pyramid(550, 0, 5, 10, 0, 0, function(x, y, column) { var texture = column % 2 === 0 ? '../../res/physic...

来源: Laya_示例 发布时间: 20251209

423. 请问HtmlDivElement控件在innerHTML中有<div>标签的情况下获取实际宽高为0的问题? [ 49%]

...ment(); Laya.stage.addChild(p); p.href = "../../res/html/test.html"; p.y = 200; } })(); 2017-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 参考下这个链接:http://ask.layabox.co...

来源: Laya_社区 发布时间: 20170314

424. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 48%]

...yUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200) Laya.stage.addChild(hero) Laya.timer.once(3000, this, gameOver) } function gameOver() { map.removeSelf() play.removeSelf() over = new GameOverUI() over.txt_score.text = "25" over.btn_restart.on(Event.MOUSE_UP,this,gameIn...

来源: Laya_社区 发布时间: 20180911

425. 文字在框内滑动、滚动文本 [ 48%]

...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@";     this.txt.size(200,100);     //这里没看出来是什么意思     this.txt.x=Laya.stage.width-this.txt.width&gt;&gt;1;     this.txt.y=Laya.stage.height-this.txt.height&gt;&gt;1;     this.txt.borderColor="#ffff00";     this.txt....

来源: Laya_社区 发布时间: 20170810

426. [LayaAirIDE3]在laya3.3.2中使用加载跨域资源拼接成后边缘出现缝隙 [ 48%]

...质 资源是从另外一个资源服务器跨域下载的 但StatusCode=200因为响应头做跨域处理 图2是在laya3.3IDE中运行截图,杂质不明显 唯一区别是从项目启动加载资源是从缓存中读取的 StatusCode=304NotModifd 图3是发布到外网后抓到的报错,图...

来源: Laya_社区 发布时间: 20250814

427. 同一个Animation,创建多个实例只能显示一个(测试项目已上传) [ 48%]

...t;10;i++){ var p:wheel=Pool.getItemByClass("wheel", wheel); p.pos(i*90+100,200); p.init(); roleLayer.addChild(p) } /////////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } publ...

来源: Laya_社区 发布时间: 20190312

428. 同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count(带悬赏的每次都创建订单失败,之后在社区里面看不到) [ 48%]

同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count(带悬赏的每次都创建订单失败,之后在社区里面看不到) 顶点数超过65535 / 4会抛出错误这个知道,有没有办法绕开这个报错 尝试过draw 10000个点的时候...

来源: Laya_社区 发布时间: 20181113

429. 那个文本溢出需要滚动条怎么弄,API里面就说用Scroll接口,小白 不懂怎么弄 [ 48%]

...面向AS/JS/TS开发者提供HTML5开发技术方案!\n" ;this.txt.size(200,100);this.txt.borderColor = "#ffff00";this.txt.fontSize = 20;this.txt.color = "#ffffff";Laya.stage.addChild(this.txt);this.txt.on(Laya.Event.MOUSE_DOWN,this,startScrollText);}/*开始滚动文本*/function startScrollText(...

来源: Laya_社区 发布时间: 20180125

430. 在UI类里调用启动类的静态函数失败了 [ 48%]

...; this.init(); } public init(): void { Laya.Tween.to(this.kaishi_btn, { y: 200 }, 800, Laya.Ease.backOut, Laya.Handler.create(this, this.onLogoCompete)); } onLogoCompete(): void { Laya.Tween.to(this.biaoti_lable, { y: 120 }, 800, Laya.Ease.backOut); } onStart(): void { Laya.Tween.to(this.kaishi_btn,...

来源: Laya_社区 发布时间: 20180507