大约有 572 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
Laya_社区(338) Laya3.0_api(158) Laya2.0_文档(35) Laya3.0_文档(19) Laya2.0_示例(7) laya_api(7) Laya_示例(6) Laya2.0_api(2)
...("2d").fillStyle = "#FFFF00"; htmlCanvas.getContext("2d").fillRect(20, 20, 60, 60); // 把单独画布绘制到舞台。 var texture:Texture = new Texture(htmlCanvas); Laya.stage.graphics.drawTexture(texture, 0, 0, 100, 100); 2016-10-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20161020
...是这手机,跑同样一个小游戏用纯h5做出来的却可以跑到60帧。能不能分析一下瓶颈在哪里? 附件 : --> 2018-04-04 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自:...
来源: Laya_社区 发布时间: 20180404
... console.log(sp.name); sp = project.drawsomething(20, 20+60*i, "#eeb9b3"); sp.on(Event.CLICK,this, onsp); Laya.stage.addChild(sp); } private function onsp(e:Event){ console.log("监听到按钮"+e.target); c...
来源: Laya_社区 发布时间: 20170330
...reateCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(text); Laya.timer.frameLoop(1, this, gameLoop); })(); function createCharacters() { var char; var charSkin; for (var i = 0; i = 0; i--) { characters[i].update(); } if (Laya.timer...
来源: Laya_示例 发布时间: 20251130
...a.stage.addChild(sp); //画多边形 sp.graphics.drawPoly(264, 166, [0, 0, 60, 0, 60,100, 50, 100, 50,80, 40, 80, 40, 90, 30,90, 30, 80,20, 80,20,90,0, 90], "#ffff00"); } })(); 绘制出来的多边形无法闭合 附件 : --> 2017-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20171219
...reateCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(text); Laya.timer.frameLoop(1, this, this.gameLoop); } createCharacters() { let char; let charSkin; for (let i = 0; i = 0; i--) { characters[i].update(); } if (Laya.timer.currFra...
来源: Laya2.0_示例 发布时间: 20251130
...export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { //60帧后,图片的透明度变为0.5 Laya.timer.frameOnce(60, this, () => { this.Image.alpha = 0.5; }) } } 1.2 定时重复执行 (基于帧率) Laya.timer.frameLoop,定义如下: /** * 定时重复执行(基于帧...
来源: Laya3.0_文档 发布时间: 20251010
...接口。 在Stage下只有以下设置 /**全速模式,以60的帧率运行。*/ public static const FRAME_FAST:String = "fast"; /**慢速模式,以30的帧率运行。*/ public static const FRAME_SLOW:String = "slow"; /**自...
来源: Laya_社区 发布时间: 20170610
...irIDE2]华为手机微信版本8.0.45浏览器出现闪屏问题 华为mate60/mate 60pro手机在微信浏览器中打开Laya2.x版本的游戏后会出现闪屏现象,在系统自带浏览器中则不会。 闪屏一段时间后会停止,但点击屏幕后又会继续开始闪屏。经试验,...
来源: Laya_社区 发布时间: 20231228
...情况下: 发布为 web版本, 微信浏览器打开,可以稳定在60FPS下运行. 发布为 微信小游戏版本, 在微信小游戏里打开, 或者使用微信小游戏开发工具的预览功能(扫码打开), FPS: 55左右波动. 用一份空的工程测试, 也会出现类似...
来源: Laya_社区 发布时间: 20180609