大约有 657 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)
laya.debug.DebugTool.init is not a function laya.debug.DebugTool.init(); 调用DebugTool报错,求大神解答!!! TypeError: laya.debug.DebugTool.init is not a function 2019-04-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20190426
js继承模式 new function() { var className = 'BackGround'; window[className] = (function() { Laya.class(Class, className, Laya.Sprite); function Class() { Class.super(this); // this定义.. this.init(); } Class.prototype.init = function() { console.log(this); }; return Class; })(); } var _...
来源: Laya_社区 发布时间: 20170619
...左边边界 就移除存入对象池 2、地板上可以添加东西 (function(){ /** * 地板类 */ function Floor(){ Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(t...
来源: Laya_社区 发布时间: 20160728
...应呢? 单独用在其它文件也是没有反应, var LoginView = (function (_super) { function LoginView() { LoginView.super(this); //调用父类构造函数 this.dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Even...
来源: Laya_社区 发布时间: 20170215
...t(type) 调用init方法时候闪退,错误信息是 "fish.init is not a function" "TypeError: fish.init is not a function at Function.CFSprite.reusableFishWithType (file:///Users/heboyce/Desktop/Work/Web/CatchFish/bin/js/common/CFSprite.js:28:14) at GameView.addFinsh (file:///Users/heboyce/Deskto...
来源: Laya_社区 发布时间: 20180404
...us) @ gamePage.html:148 VM163:1 gameThirdScriptError window.focus is not a function TypeError: window.focus is not a function at Function.Browser.__init__ (http://127.0.0.1:61836/game/code.js:7139:21) at Function._$GET_clientWidth (http://127.0.0.1:61836/game/code.js:7056:11) at ne...
来源: Laya_社区 发布时间: 20180426
...加Floor碰撞范围检测功能 Ok~~ 打开Floor.js开始 修改代码 (function(){ /** * 地板类 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //最大右边距离 this.maxRight = 0; //判断是否超过右边最大距离了 this.isOutComplete = false; //背景 this.bg = nul...
来源: Laya_社区 发布时间: 20160801
Laya3D初始化 window.wxMiniGame is not a function 具体错误信息、错误发生位置、打包后libs中的min文件如下 附件 : --> 2021-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_A 赞...
来源: Laya_社区 发布时间: 20211215
...实现两个能量条的功能,我们创建一个Hp.js 代码如下 (function () { /** * 血条 * */ function Hp(type){ //背景 this.bg = null; //进度条 this.bar = null; //最小值 this.MIN_VALUE = 0; //最大值 this.MAX_VALUE = 100; //值 this.value = 100; Hp.__super.call(this); this.in...
来源: Laya_社区 发布时间: 20160803
...? 2017-08-28 0 1 分享 微博 QZONE 微信 a1284964657 赞同来自: (function() { var Stage = Laya.Stage; var Image = Laya.Image; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400); // Laya.init(550, 400); ...
来源: Laya_社区 发布时间: 20170828