大约有 55 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0029 秒)
...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
...; 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
...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
...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
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
...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
... = 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
...请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: <em>privateem> onMouseDown(e: Event): void { var touches: Array<any> = e.touches; if (touches && touches.length == 2) { this.preRadian = Math.atan2( ...
来源: Laya_社区 发布时间: 20171201
... = 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
...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