大约有 3 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0018 秒)
... Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Keyboard = Laya.Keyboard; var TimeLine = Laya.TimeLine; var WebGL = Laya.WebGL; var target; var timeLine = new TimeLine(); (function () { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV...
来源: Laya_示例 发布时间: 20241118
...E_UP, this, drawCollider); } function onKeyDown(e) { if (e.keyCode == Laya.Keyboard.UP) this.layaMonkey.transform.translate(this._tempUnitX1); else if (e.keyCode == Laya.Keyboard.DOWN) this.layaMonkey.transform.translate(this._tempUnitX2); else if (e.keyCode == Laya.Keyboard.LEFT) this.layaMonkey.tr...
来源: Laya_示例 发布时间: 20241118
..."; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { listenKeyboard(); createLogger(); Laya.timer.frameLoop(1, this, keyboardInspector); } function listenKeyboard() { keyDownList = []; //添加键盘按下事件,一直按着某按键则会不断触发 Laya.stage.on(Event.KEY_DOWN, th...
来源: Laya_示例 发布时间: 20241118