大约有 1,204 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0058 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { Laya.init(500, 300, WebGL); this.drawSomething(); } private drawSo...
来源: Laya2.0_文档 发布时间: 20210714
... = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_Altas { private AniConfPath: string = "../../res/fighter/fighter.json"; constructor() { // 不支持eWebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; L...
来源: Laya_示例 发布时间: 20241124
... public class Sprite_DrawShapes { private var sp:Sprite; public function Sprite_DrawShapes() { Laya.init(500, 300, WebGL); drawSomething(); ...
来源: Laya2.0_文档 发布时间: 20210714
Laya tiledmap 监听事件未响应 private tiledMap: Laya.TiledMap /** */ private onLost() { this.tiledMap = new Laya.TiledMap(); this.tiledMap.createMap("resource/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.s...
来源: Laya_社区 发布时间: 20220929
...rt laya.webgl.WebGL; public class SocketSample { public var socket:Socket; private var byte:Byte; public function SocketSample() { //初始化引擎 this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket.endian = Byte.LITTL...
来源: Laya_社区 发布时间: 20180202
... * @author yung */ public class LayaAirDemo { private var red:Sprite; private var box:Sprite; public function LayaAirDemo() { Laya.init(1200, 800); Laya.stage.bgColor = "#efefef"; ...
来源: Laya_社区 发布时间: 20161122
...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100);...
来源: Laya_示例 发布时间: 20241124
...uest; import flash.utils.ByteArray; public class UrlImage extends Sprite { private var urlLoader:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoa...
来源: Laya_社区 发布时间: 20151228
...ength; ++i) { output.writeByte(message.charCodeAt(i)); } socket.flush(); } private function onSocketClose(e:*=null):void { trace("Socket closed"); } private function onMessageReveived(message:*=null):void { trace("Message from server:"); if (message is String) { trace(message); } else if (message is...
来源: Laya2.0_示例 发布时间: 20241124
...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { this.createText('left', 1, null, 100, 10); this.createText('center', 2, "#00BFFF", 155, 150); this.createText('right', 3, "#FF7F50", 210, 290); } private createText(align: string, underlineWidth:...
来源: Laya_示例 发布时间: 20241124