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

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

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

...ientWidth - 120 >> 1, Browser.clientHeight - 100 >> 1); })();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 ...

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

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

...le(0, 0, Laya.stage.width, Laya.stage.height), null); } })();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...

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

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

...= Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })();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...

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

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

...= Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })();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...

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

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

...= Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })();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...

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

6. 性能测试-卡通人物 [ 96%]

...ge.width + extraSpace) { charactor.x = -extraSpace; } } })();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...

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

7. 区块地图-带动画的地图 [ 96%]

...le(0, 0, Laya.stage.width, Laya.stage.height), null); } })();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时...

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

8. UI-Image [ 95%]

...; dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } })();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...

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

9. 滤镜-模糊滤镜 [ 95%]

... blurFilter.strength = 5; ape.filters = [blurFilter]; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import BlurFilter = Laya.BlurFilter; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Blur { private apePath...

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

10. 动画-图集动画 [ 95%]

... 2, Laya.stage.height / 2); Laya.stage.addChild(ani); } })();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...

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