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

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

1. 性能测试-卡通人物 [ 100%]

...toonCharactors.json", Handler.create(this, createCharacters), null, Loader.ATLAS); })(); function createCharacters() { characterGroup = []; for(var i = 0; i = 0; --i) { animateCharactor(characterGroup[i]); } } function animateCharactor(charactor) { charactor.x += moveSpeed; charactor.rotation += rot...

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

2. IDE-显示IDE创建的界面 [ 94%]

...; } } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game...

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

3. 动画-图集动画 [ 87%]

...ader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); })(); function createAnimation() { var ani = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.pl...

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