大约有 73 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0036 秒)
Laya_社区(35) Laya2.0_文档(15) Laya2.0_示例(11) Laya_示例(6) Laya2.0_api(2) Laya3.0_文档(2) laya_api(1) Laya3.0_api(1)
... } else{ Laya.init(720, 1280, Laya["WebGL"]); } Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = "fixedheight"; ...
来源: Laya_社区 发布时间: 20190429
...his.scale]; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.Laya.stage.scaleMode = Laya.Stage.SCALE...
来源: Laya2.0_示例 发布时间: 20241117
...s 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.init(1280, 720, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.ali...
来源: Laya2.0_示例 发布时间: 20241117
... { var Stage = Laya.Stage; var Text = Laya.Text; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var Sprite = Laya.Sprite; var Animation = Laya.Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; ...
来源: Laya_示例 发布时间: 20241117
...eConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameCon...
来源: Laya2.0_文档 发布时间: 20210715
...eConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && Laya["Physics"].enable(); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; //打开调试面板(通过I...
来源: Laya2.0_文档 发布时间: 20210715
...的官方示例代码为(为小游戏做了轻微的改动): import WebGL = Laya.WebGL import Handler = Laya.Handler module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // // 不支持WebGL时自动切换至Canv...
来源: Laya_社区 发布时间: 20180529
...s.Handler; import view.TestView; import laya.net.WorkerLoader; import laya.webgl.WebGL; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400,WebGL); //设置Laya提供的worker.js的路径 WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 W...
来源: Laya2.0_文档 发布时间: 20210715
... Event = Laya.Event; var Browser = Laya.Browser; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 200; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; var mFactory2; (function() { Laya.init(Browser.width, Brow...
来源: Laya_示例 发布时间: 20241117
... Event = Laya.Event; var Browser = Laya.Browser; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 200; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; var mFactory2; (function() { Laya.init(Browser.width, Brow...
来源: Laya_示例 发布时间: 20241117