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

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

1. UI-List [ 100%]

...项目开发更高效。const WID = 373, HEI = 85; const Box = Laya.Box; class Item extends Box { constructor(){ super(); const Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin = src; } } class UI_List { constructor() { const Bro...

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

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

... = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Laya.CLICK, this, this.onBtnClick); this.btn2.on(Laya....

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

3. 输入设备-贪吃蛇(重力感应) [ 84%]

...[], foods = [], initialSegmentsAmount = 5, vx = 0, vy = 0, targetPosition; class InputDevice_GluttonousSnake { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Accelerator = Laya.Accelerator; // 不支...

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

4. 缓动-缓动函数演示 [ 83%]

...ayaAirIDE让项目开发更高效。let character, duration = 2000, tween; class Tween_EaseFunctionsDemo { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Browser = Laya.Browser, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, Web...

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

5. UI-Tree [ 79%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class UI_Tree { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage....

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

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

...= [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_示例 发布时间: 20240929

7. UI-RefreshList [ 48%]

...ya.Text; Point = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.loadingLabel = null; this.refreshList = null; /** 消息生成的当前最大id值 */ this.msgIdNow=1; /** ...

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