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

大约有 795 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0057 秒)

81. 如何设置js加载顺序? [ 88%]

...一目录里创建了两个文件: Main.js(定义了一个类“Main”)game.js 然后我想在game.js里创建一个 Main实例,但发觉Main不存在的。   我分别在两个文件里加上了console.log("Main"), console.log("game"),发现game.js是执行比Main.js早的,所以出现Mai...

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

82. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 88%]

... this.preinitialize is not a function $ adb shell am start -n "com.layabox.game/demo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Waiting for application to come online: com.layabox.game.test | com.layabox.game Connecting to com.layabox.game Capturing and displa...

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

83. https://ask.layabox.com/question/13181官方Demo运行不起来 [ 88%]

...rix),而不是 message.matrix,一旦代码改正确,就有错误了。 gameSubContextThirdScriptError this._canvasTransform.identity is not a function;at requestAnimationFrame callback function TypeError: this._canvasTransform.identity is not a function     at Stage.__proto.setScreenSize (http...

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

84. laya微信小游戏开发game.json配置问题 [ 88%]

laya微信小游戏开发game.json配置问题 发现在引擎game.json配置里,"showStatusBar"字段默认值为"false",小游戏方面此字段也是默认false但是!!是boolean类型的,所以这样一个非空字段导入小游戏后会导致该字段值为true,希望检查修改...

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

85. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 88%]

... this file.     at MyScene.__proto.onAsynLoaded (http://127.0.0.1:59022/game/code.js:81644:10)     at ResInfo.onLoaded (http://127.0.0.1:59022/game/code.js:12995:61)     at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:711:59)     at ResInfo.__proto.event (http://127.0.0....

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

86. 播放背景音乐报错,引发闪退 [ 88%]

...是音乐也能正常播放)   12-26 14:27:10.053 1552-1616/com.mylafe.game.handsomecat E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair.game.utility.LayaAudioMusic,methodName:stopBackgroundMusic 12-26 1...

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

87. 请问 咱的VR 实例能运行么? 我这里没有任何反应, 电脑手机上都无法操作 [ 88%]

...找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 game4d 赞同来自: https://layaair.ldc.layabox.co ... cene1 2017-11-22 0 4 分享 微博 QZONE 微信 wudi199553 赞同来自: 可以啊,现在官网上的示例,都是能看的 2017-11-22 0 2 分享 微博 QZONE 微信 ...

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

88. 续飞机大战 [ 88%]

...助于你对js更好的理解 你的项目修改如下即可正常运行 Game.js var Game = (function(){ function Game(){ // 初始化引擎,设置了游戏的宽高 Laya.init(480,852); Laya.stage.bgColor="#EEFFCC"; var bg = new BackGround(); Laya.stage.addChild(bg); } return Game; }()); var gameI...

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

89. LayaAirNative初始化的4个问题 [ 87%]

...如果可以的话,如何进行优化呢 __JS__("window.eval(str)") var game:* = __JS__("new Game(this.enviroment)");   4.在游戏初始化的时候,一定会报这两个异常,请问是为啥   06-27 18:03:47.976 27945-27945/com.twand.kozhanji I/art: Rejecting re-init on previously-failed ...

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

90. 微信小游戏 关系链数据上屏绘制问题 [ 87%]

...nvas.getContext('2d'))会报错,普通2D微信小游戏正常   VM291:1 gameThirdScriptError Cannot set property '__proto__' of null TypeError: Cannot set property '__proto__' of null     at HTMLCanvasElement.n.getContext (http://127.0.0.1:56214/game/__ ... :23503)     at http://127.0.0.1:562...

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