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

大约有 55 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0029 秒)

11. Sprite-轴心点 [ 92%]

...ser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Pivot { <em>privateem> sp1: Sprite; <em>privateem> sp2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stag...

来源: Laya2.0_示例 发布时间: 20241123

12. Sprite-容器 [ 91%]

...; export class Sprite_Container { // 该容器用于装载4张猩猩图片 <em>privateem> apesCtn: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; L...

来源: Laya2.0_示例 发布时间: 20241123

13. 【官网代码】加载dom音频报错,怎么回事? [ 90%]

...quest;import laya.net.Loader;import laya.utils.Browser; public class Main{<em>privateem> var AudioContext:Object;<em>privateem> var audioContext:Object;<em>privateem> var analyser:Object;<em>privateem> var audioBufferSourceNode:Object;public function Main(){Laya.init(500,500);AudioContext =Browser.window.AudioContext || Brows...

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

14. swf预加载问题 [ 89%]

...cher { public static const BEFORLOADERFINISH:String = "BeforLoaderFinish"; <em>privateem> const ADDONE:String = "bingan/AddOne.swf"; <em>privateem> const BG:String = "bingan/bg.swf"; <em>privateem> const CDOWNBIN:String = "bingan/cDownBin.swf"; <em>privateem> const CUOLE:String = "bingan/cuole.swf"; <em>privateem> const CUPBIN:String...

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

15. websocket请教下,服务器发送过来的数据怎么获取 [ 87%]

websocket请教下,服务器发送过来的数据怎么获取 <em>privateem> openHandler(event: any = null): void { console.log(`平台 正确建立连接`); this.socket.send("getScore"); } <em>privateem> receiveHandler(msg: any = null,data): void { console.log(`接收到数据触发函数:` + msg); ////////////...

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

16. 性能测试-虫子(慎入) [ 85%]

...ctangle; import WebGL = Laya.WebGL; export class PerformanceTest_Maggots { <em>privateem> texturePath:string = "../../res/tinyMaggot.png"; <em>privateem> padding:number = 100; <em>privateem> maggotAmount:number = 5000; <em>privateem> tick:number = 0; <em>privateem> maggots:Array = []; <em>privateem> wrapBounds:Rectangle; <em>privateem> maggotTextu...

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

17. 动画-图集动画 [ 85%]

... = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_Altas { <em>privateem> AniConfPath: string = "res/fighter/fighter.json"; constructor() { // 不支持eWebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.st...

来源: Laya2.0_示例 发布时间: 20241123

18. 请问如何获取触屏上两个或者更多位置的坐标 [ 84%]

...请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: <em>privateem> onMouseDown(e: Event): void {             var touches: Array&lt;any&gt; = e.touches;             if (touches &amp;&amp; touches.length == 2) {                 this.preRadian = Math.atan2(       ...

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

19. 动画-图集动画 [ 84%]

... = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_Altas { <em>privateem> AniConfPath: string = "../../res/fighter/fighter.json"; constructor() { // 不支持eWebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; L...

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

20. 性能测试-虫子(慎入) [ 84%]

...ctangle; import WebGL = Laya.WebGL; export class PerformanceTest_Maggots { <em>privateem> texturePath:string = "res/tinyMaggot.png"; <em>privateem> padding:number = 100; <em>privateem> maggotAmount:number = 5000; <em>privateem> tick:number = 0; <em>privateem> maggots:Array = []; <em>privateem> wrapBounds:Rectangle; <em>privateem> maggotTexture:any...

来源: Laya2.0_示例 发布时间: 20241123