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

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

41. 1.7.3之后的版本,重复类名出现bug [ 83%]

... __class(StartUpCommand,'com.game.modules.hall.controller.StartUpCommand',_super); __class(StartUpCommand,'com.game.modules.login.controller.StartUpCommand',_super,'StartUpCommand$1'); __class(StartUpCommand,'com.game.shell.controller.StartUpCommand',_super,'StartUpCommand$3');   我全文搜了下...

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

42. 物体随着鼠标滑动旋转脚本 [ 82%]

...滑动旋转脚本 function ObjectRotate() {          ObjectRotate.super(this);//这里不太清楚作用       //最终鼠标在X轴上的值     this.lastMouseX = NaN;           //最终鼠标在Y轴上的值                  this.lastMouseY = NaN;            ...

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

43. 报错,这不是个构造函数 "StartPage is not a constructor" [ 82%]

...ctor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya....

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

44. 【简单跑酷--JS版】---Lv.3 添加地板 [ 82%]

...添加东西  (function(){ /** * 地板类 */ function Floor(){ Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.fram...

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

45. 重写X Y在android studio里运行会变成00 [ 82%]

...ayaTest15.zip 2018-02-26 0 0 分享 微博 QZONE 微信 qian 赞同来自: super._x = xxx 改成super.x= xxx 不要直接改_x没有通知到native   2018-02-26 0 1 分享 微博 QZONE 微信 185*****914 - 一些用LAYABOX做的练习小游戏http://iuhigi.cn/ 赞同来自: 我习惯用sprite.p...

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

46. 如何在游戏入口处获取对象的子对象 [ 82%]

...ite = Laya.Sprite; var MapLayer = Laya.MapLayer; var loadMap = (function (_super) { function loadMap() { loadMap.super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function(num) ...

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

47. 看一下这是什么问题,运行报错 [ 82%]

看一下这是什么问题,运行报错 var MPanel1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下   附件 : --> 2018-02-06 添加评论 免费...

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

48. 请问laya中js如何继承自己写的类 [ 82%]

...: 与内容相关的链接 提交 3 个回复 gls_laybox 赞同来自: t2.super(this);也是报错的,说没有构造方法 2018-01-04 0 0 分享 微博 QZONE 微信 qian 赞同来自: 建议参考https://ask.layabox.com/question/811 2018-01-04 0 6 分享 微博 QZONE 微信 gls_laybox 赞同来...

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

49. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 81%]

...自适应得圆角矩形框,失败了,求解惑 var login = (function(_super){ function login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth...

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

50. 微信飞机大战报错 [ 81%]

...(_stream_readable.js:[...]   GameInfo.js代码: var GameInfo = (function(_super){     function GameInfo(){         GameInfo.super(this);         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         this.reset();     }     Laya.class(GameInfo, "GameInfo", _super)...

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