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

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

1. 区块地图-带动画的地图 [ 100%]

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

2. 文本-HTML文本 [ 98%]

....href = "res/html/test.html"; p.y = 200; } } new Text_HTML();module laya { import Stage = Laya.Stage; import HTMLDivElement = Laya.HTMLDivElement; import HTMLIframeElement = Laya.HTMLIframeElement; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_HTML { constructor() { // ...

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

3. IDE-显示IDE创建的界面 [ 97%]

...值,先获得一个数据源数组 var arr = []; for (var i = 0; i /// import test = game.ui.test.TestPageUI; import Label = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定...

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

4. 文本-位图字体 [ 97%]

...a.stage.height - txt.height >> 1); } } new Text_BitmapFont();module laya { import BitmapFont = Laya.BitmapFont; import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Text_BitmapFont { private fontName...

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

5. 鼠标交互-鼠标交互 [ 82%]

...FFFF"; Laya.stage.addChild(txt); } } new Interaction_Mouse();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Mouse { private txt: Text; constru...

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