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

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

1. 调试-帧率统计 [ 100%]

..., Browser.clientHeight - 100 >> 1); } } new Debug_FPSStats();module laya { import Browser = Laya.Browser; import Stat = Laya.Stat; export class Debug_FPSStats { constructor() { Laya.init(Browser.clientWidth, Browser.clientHeight); Stat.show(Browser.clientWidth - 120 >> 1, Browser.clientHeight - 100 ...

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

2. 区块地图-PerspectiveWall [ 99%]

...aya.stage.height), null); } } new TiledMap_PerspectiveWall();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class TiledMap_PerspectiveWall { private tiledMap: TiledMap; cons...

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

3. 粒子-粒子演示1 [ 97%]

... 2; partIns.y = Laya.stage.height / 2; } } new Particle_T1();module laya { import Stage = Laya.Stage; import Loader = Laya.Loader; import Particle2D = Laya.Particle2D; import ParticleSetting = Laya.ParticleSetting; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat...

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

4. 粒子-粒子演示2 [ 97%]

... 2; partIns.y = Laya.stage.height / 2; } } new Particle_T2();module laya { import Stage = Laya.Stage; import Loader = Laya.Loader; import Particle2D = Laya.Particle2D; import ParticleSetting = Laya.ParticleSetting; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat...

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

5. 粒子-粒子演示3 [ 97%]

... 2; partIns.y = Laya.stage.height / 2; } } new Particle_T3();module laya { import Stage = Laya.Stage; import Loader = Laya.Loader; import Particle2D = Laya.Particle2D; import ParticleSetting = Laya.ParticleSetting; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat...

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

6. 区块地图-带动画的地图 [ 97%]

... Laya.stage.height), null); } } new TiledMap_AnimationTile();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class TiledMap_AnimationTile { private tiledMap: TiledMap; constructor() { // 不支持WebGL时...

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

7. 性能测试-卡通人物 [ 97%]

...aractor.x = -extraSpace; } } } new PerformanceTest_Cartoon();module laya { import Sprite = Laya.Sprite; import Loader = Laya.Loader; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class PerformanceTest_Cartoon { private colAmo...

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

8. 动画-图集动画 [ 96%]

...width / 2, Laya.stage.height / 2); } } new Animation_Altas();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Rectangle = Laya.Rectangle; import Loader = Laya.Loader; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_Altas { private An...

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

9. 动画-SWF动画 [ 96%]

...t - MCHeight) / 2; mc.load(SWFPath); } } new Animation_SWF();module laya { import MovieClip = Laya.MovieClip; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_SWF { private SWFPath: string = "res/swf/dragon.swf"; private MCWidth: number = 31...

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

10. UI-Image [ 96%]

....addChild(dialog); dialog.pos(165, 62.5); } } new UI_Image();module laya { import Stage = Laya.Stage; import Image = Laya.Image; import WebGL = Laya.WebGL; export class UI_Image { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MI...

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