大约有 14 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0022 秒)
...= [character1, character2, character3, character4], characters = [], text; class PerformanceTest_Cartoon2 { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Text = Laya.Text; // 不支持WebGL时自动切换至Canvas Laya...
来源: Laya2.0_示例 发布时间: 20241125
...。 let assets = ["res/comp/fontClip_num.png", "res/comp/fontClip.png"]; class Font_Clip { constructor() { // 不支持WebGL时自动切换至Canvas const WebGL = Laya.WebGL, Stage = Laya.Stage; Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTE...
来源: Laya2.0_示例 发布时间: 20241125
...sDown = false, path = [], color = colors[0], liveGraphics, canvasGraphics; class PIXI_Example_21 { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init...
来源: Laya2.0_示例 发布时间: 20241125
... = Laya.Event; var Stat = Laya.Stat; var SpineTemplet = Laya.SpineTemplet; class SpineBinary { constructor() { this.aniPath = "res/bone/spineboy-pma.skel"; this.index = -1; Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; St...
来源: Laya2.0_示例 发布时间: 20241125
...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Sprite_ScreenShot { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; this.btnArr = ["res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png"]; t...
来源: Laya2.0_示例 发布时间: 20241125
...wHeight = Browser.height, lasers = [], tick = 0, frequency = 80, type = 0; class PIXI_Example_23 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(viewWidth, viewHeight, WebGL); Laya.stage.ali...
来源: Laya2.0_示例 发布时间: 20241125
...wser.width, h = Browser.height, slideX = w / 2, slideY = h / 2, speedInfo; class PIXI_Example_04 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(w, h, WebGL); Laya.stag...
来源: Laya2.0_示例 发布时间: 20241125
...开发更高效。let bgPath = "res/bg2.png", maskPath = "res/mask.png"; class Sprite_MagnifyingGlass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.st...
来源: Laya2.0_示例 发布时间: 20241125
...E让项目开发更高效。let aniConfPath = "res/fighter/fighter.atlas"; class Animation_Altas { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stag...
来源: Laya2.0_示例 发布时间: 20241125
...LayaAirIDE让项目开发更高效。let apePath = "res/apes/monkey2.png"; class Filters_Blur { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.A...
来源: Laya2.0_示例 发布时间: 20241125