大约有 1,023 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0071 秒)
Laya_社区(703) Laya3.0_api(74) Laya2.0_api(67) laya_api(58) Laya2.0_文档(34) Laya_示例(33) Laya2.0_示例(31) Laya3.0_文档(23)
...en.to 执行失败 //使精灵走到鼠标位置 function walkToMousePos(sprite){ console.log(Laya.stage.mouseX) ; console.log(Laya.stage.mouseY) ; console.log(sprite.x) ; console.log(sprite.y) ; var hDir = Laya.stage.mouseX>sprite.x? "right" : "left" ; var vDir = Laya.stage.mouseY>sprite.y?...
来源: Laya_社区 发布时间: 20180331
...种开发语言、LayaAirIDE让项目开发更高效。(function () { var 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 () { // 不支持We...
来源: Laya_示例 发布时间: 20241117
...actory.off(Laya.Event.COMPLETE, this, this.parseComplete); var sprite = this._factory.buildArmature(0); sprite.x = x; sprite.y = y; sprite.scale(0.5,0.5); sprite.autoSize = true; sprite.play("idle", true); Laya.stage...
来源: Laya_社区 发布时间: 20161108
....x = -extraSpace; } } } new PerformanceTest_Cartoon();module laya { import Sprite = Laya.Sprite; import Loader = Laya.Loader; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class PerformanceTest_Cartoon { private colAmount = 1...
来源: Laya2.0_示例 发布时间: 20241117
... y); } tick += 0.1; } } new PerformanceTest_Maggots();module laya { import Sprite = Laya.Sprite; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class PerformanceTest_Maggots { private texture...
来源: Laya2.0_示例 发布时间: 20241117
...; Laya.stage.on(Event.KEY_DOWN, this, this.keyDown); } createApe() { const Sprite = Laya.Sprite; this.target = new Sprite(); Laya.stage.addChild(this.target); this.target.loadImage("res/apes/monkey2.png"); this.target.pivot(55, 72); this.target.pos(100,100); } createTimerLine() { const TimeLine = La...
来源: Laya2.0_示例 发布时间: 20241117
...效果基本上还行, /* * 位图字体; */ class BPFont extends Laya.Sprite{ // 文本内容 private _text: string; // json数据 private _jsonData: any; // 图片数据 private _imageData: Laya.Texture; // 文本字间距 private _padding: number = 0; // 所有元素; private charSprites: Lay...
来源: Laya_社区 发布时间: 20161014
...Accessors inst touchCount touchTarget touches Methods getNodeUnderPoint getSprite3DUnderPoint getSpriteUnderPoint handleKeys handleMouse handleTouch hitTest cancelClick getTouchPos hasKeyDown Constructors constructor new InputManager(): InputManager Defined in laya/events/InputManager.ts:48 Returns ...
来源: Laya3.0_api 发布时间: 20231115
...ds | Events Packagelaya.mapClasspublic class MapLayerInheritanceMapLayer Sprite Node EventDispatcher Object 地图支持多层渲染(例如,地表层,植被层,建筑层等) 本类就是层级类 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Propert...
来源: laya_api 发布时间: 20170929
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Render = Laya.Render; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var stageWidth = 800; var stageHeight = 600; var Matter = window.Matter; var LayaRender = window.LayaRe...
来源: Laya_示例 发布时间: 20241117