大约有 1,204 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0054 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...Handler; import WebGL = Laya.WebGL; export class TiledMap_IsometricWorld { private tiledMap: TiledMap; private layer: MapLayer; private sprite: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1600, 800, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = S...
来源: Laya_示例 发布时间: 20241123
...ort laya.webgl.WebGL; public class UI_Clip { /***控制器按钮资源***/ private var buttonSkin:String = "../../../../res/ui/button-7.png"; /***切片资源***/ private var clipSkin:String = "../../../../res/ui/num0-9.png"; /***背景资源***/ private var bgSkin:String = "../../../../res/ui/coutD...
来源: Laya2.0_文档 发布时间: 20210714
... = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; private JS_WS_CLIENT_VERSION:string = '0.0.5'; private RES_OK:number = 200; private RES_FAIL:number = 500; private RES_OLD_CLIENT:number = 501; private socket:Laya.Socket = n...
来源: Laya_社区 发布时间: 20180119
...Handler; import WebGL = Laya.WebGL; export class TiledMap_IsometricWorld { private tiledMap: TiledMap; private layer: MapLayer; private sprite: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1600, 800, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = S...
来源: Laya2.0_示例 发布时间: 20241123
...e.scaleMode = "showall"; Laya.stage.bgColor = "#ffffff"; this.showApe(); } private showApe(): void { // 方法1:使用loadImage var ape: Sprite = new Sprite(); ape.pos(100,50); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); } } } new laya.Sprite_DisplayImage(); ``` 在示...
来源: Laya2.0_文档 发布时间: 20210715
...ls.Browser; import laya.utils.HitArea; public class KouTu extends Sprite { private var box:Sprite; private var interactionArea:Sprite; private var maskArea:Sprite; private var guideContainer:Sprite; private var gameContainer:Sprite; public function KouTu() { super(); //绘制一个蓝色方块,不...
来源: Laya_社区 发布时间: 20170315
...erationInfo; public class LayaSample { private var m_bkSound:Sound; private var m_mapLayer:Sprite; private var m_MapImgUrl:String; private var m_Role:Animation; private var m_RolePosition:Point = new Point(12...
来源: Laya_社区 发布时间: 20170921
...Wnd extends BaseWin { public view: UIMain; /** 角色 */ private character: Laya.Sprite /** 角色刚体*/ private rig: Laya.RigidBody /** 医疗包*/ private addhp: Laya.Sprite /** 速度包*/ private addseed: Laya.Sprite /** 跳跃高度...
来源: Laya_社区 发布时间: 20221207
...his.rowSpacing + this.rowHeight), 150, this.rowHeight); } }class DOM_Form{ private form:Laya.Sprite; private rowHeight:number = 30; private rowSpacing:number = 10; constructor() { Laya.init(600,400); Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage...
来源: Laya_示例 发布时间: 20241123
...L = Laya.WebGL; export class Sound_SimpleDemo { //声明一个信息文本 private txtInfo: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Lay...
来源: Laya2.0_示例 发布时间: 20241123