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

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

31. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 27%]

...l; //背景右边补丁 this.rightBg = null; Floor.__super.call(this); } //事件名称 //超过屏幕一定值出发新的floor事件 Floor.OUT_COMPLETE = "floor_out_complete"; //整个地板都不在屏幕里面事件 Floor.OUT_DIE = "floor_out_die"; //Floor 是一个显示对象 继承此 Sprite ...

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

32. 【简单跑酷--JS版】---Lv.6 终篇 [ 24%]

...this.player.y = 32 * 4; this.addChild(this.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _p...

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

33. laya.ui.Button_API3.0 [ 23%]

...ndler = new Handler(this, onClickButton,[button]);//设置 button 的点击事件处理器。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } private function onClickButton(button:Button):void { trace("按钮button被点击了!"); } } } example Laya.init(640, 800);//...

来源: Laya3.0_api 发布时间: 20231115