大约有 1,232 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...Laya.WebGL; import Event = Laya.Event; export class InputDevice_Compasss { private compassImgPath:string = "res/inputDevice/kd.png"; private compassImg:Sprite; private degreesText:Text; private directionIndicator:Sprite; private firstTime:Boolean = true; constructor() { Laya.init(700, 1024, WebGL); ...
来源: Laya2.0_示例 发布时间: 20251130
.../* * 位图字体; */ class BPFont extends Laya.Sprite { // 文本内容 private _text: string; // 水平排列方式 private _align: string; // 资源前缀 private resFix: string; // 间距 private _padding: number; // 位图集合 private chars: Laya.Sprite = ; // 回收池 private static fontPoo...
来源: Laya_社区 发布时间: 20180302
...ser = Laya.Browser; import WebGL = Laya.WebGL; export class Network_POST { private hr: HttpRequest; private logger: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH =...
来源: Laya2.0_示例 发布时间: 20251130
...wser = Laya.Browser; import WebGL = Laya.WebGL; export class Network_GET { private hr: HttpRequest; private logger: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH =...
来源: Laya2.0_示例 发布时间: 20251130
...roperty({ type: Laya.Sprite }) public building: Laya.Sprite; private playerScript: Player; private joystickScript: Joystick; private cameraController: CameraController; onStart() { // 初始化组件引用 this.playerScript = this.player.getC...
来源: Laya_社区 发布时间: 20251125
...age.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.listenKeyboard(); this.createLogger(); Laya.timer.frameLoop(1, this, this.keyboardInspector); } private listenKeyboard(): void { this.keyDownList = []; //添加键盘按下事件,一直按着某...
来源: Laya2.0_示例 发布时间: 20251130
...ure 使用的图片资源不存在,则自动恢复。 */ class GameMain{ private spBg:Sprite; private aniFly:Animation; private btn:Sprite; private txt:Text; private isDestroyed:Boolean = false; private readonly PathBg:string = "res/bg2.png"; private readonly PathFly:string = "res/fighter/fighter....
来源: Laya2.0_示例 发布时间: 20251130
...a.Tween; import WebGL = Laya.WebGL; export class Tween_EaseFunctionsDemo { private character: Sprite; private duration: number = 2000; private tween: Tween; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH...
来源: Laya2.0_示例 发布时间: 20251130
...a.Tween; import WebGL = Laya.WebGL; export class Tween_EaseFunctionsDemo { private character: Sprite; private duration: number = 2000; private tween: Tween; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH...
来源: Laya_示例 发布时间: 20251130
...webgl.WebGL; public class LayaDemo { private var socket:Socket; private var output:Byte; private var txt:Text; public function LayaDemo() { Laya.init(600, ...
来源: Laya_社区 发布时间: 20170209