• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 45 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

31. 分享一个自己做的游戏公告功能,跑马灯效果 [ 72%]

... 动画是否出于播放状态 */ isPlayIng:boolean = false /** 空格 */ <em>privateem> space:string = "&lt;span&gt;                          &lt;/span&gt;" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this....

来源: Laya_社区 发布时间: 20180314

32. 特效LOADED监听不到 [ 71%]

...rt laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { <em>privateem> const AniConfPath:String = "fighter/fighter.json"; public function LayaAirDemo() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN...

来源: Laya_社区 发布时间: 20170628

33. 请大家帮助优化一下这个抛物线的代码 [ 71%]

...s://my.oschina.net/u/659068/blog/1564002  class Ball extends Laya.Sprite{ <em>privateem> static cached:boolean = false; <em>privateem> body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/ball.pn...

来源: Laya_社区 发布时间: 20171108

34. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 71%]

...讯*/     export class Socket extends Laya.EventDispatcher {         <em>privateem> pomelo: Pomelo;         <em>privateem> mDecorate:Decorate;//装饰器         <em>privateem> mHost: string;         <em>privateem> mPort: number;         <em>privateem> mConnected: boolean;         /** 开启*/         pu...

来源: Laya_社区 发布时间: 20161109

35. 为什么我获取不到鼠标滚轮的delta值,我查看laya.events.Event 里面没有这个属性 [ 70%]

..., true, false); Laya.stage.on(Event.MOUSE_WHEEL,this,this.onMouseWheel); } <em>privateem> onMouseWheel(e:Event):void { e. //没有delta 属性 } } } new laya.Interaction_Scale(); cuixueying • 2017-03-21 15:58 你的d.ts提示文件有问题,去下载最新的替换下!

来源: Laya_社区 发布时间: 20170321

36. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 68%]

...如下: const { regClass, property } = Laya; @regClass() class Animal { <em>privateem> _weight: number = 0; @property( { type : Number } ) get weight() : number { return this._weight; } set weight(value: number) { this._weight = value; } } 3.2.3 是否序列化保存 通过装饰器定义为组件属性...

来源: Laya3.0_文档 发布时间: 20240528

37. UI-RefreshList [ 67%]

...]; /** 纪录鼠标按下状态,true为已按下,用于状态判断 */ <em>privateem> mouseDown: boolean = false; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1334, 750, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode =...

来源: Laya2.0_示例 发布时间: 20240930

38. drawToTexture截大图有问题,会丢失 [ 67%]

drawToTexture截大图有问题,会丢失 <em>privateem> nsp:Laya.Sprite;     init(): void {         this.nsp=new Laya.Sprite();         this.nsp.graphics.drawRect(0,0,1600,1600,"#ff0000");         this.nsp.mouseThrough=true;         Laya.stage.addChild(this.nsp);         this.nsp....

来源: Laya_社区 发布时间: 20220809

39. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 65%]

...) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } <em>privateem> function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onSwfLoad...

来源: Laya_社区 发布时间: 20151224

40. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 64%]

...+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender); } <em>privateem> function listRender(e:MouseEvent,index:int):void { // TODO Auto Generated method stub if(e.type==MouseEvent.CLICK) { if(index==2) { trace("okla") } } } } } 2015-12-24 0 2 分享 微博 QZONE 微信 为什么被折叠?...

来源: Laya_社区 发布时间: 20151224