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

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

1. 在Laya中使用Matter.js的最简示例 (JS) [ 100%]

...aya的渲染器,而不是matter自带的渲染器 2、必须执行 Laya.init(stageWidth, stageHeight, WebGL);否则会报错:TypeError: Cannot read property 'frameLoop' of nullvar Browser = Laya.Browser; var WebGL = Laya.WebGL; var Matter = window.Matter; var LayaRender = window.LayaRender; var...

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

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

示例打地鼠发布打包后提示TypeError: 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 Conn...

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

3. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 94%]

... 初始化 IsLand.__super.call(this); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体 this.ball = new Sprite(); // 城堡 this.tower = new Spr...

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

4. socket大型项目回调 [ 83%]

...private handshakeCallback:any = null; private handshakeBuffer:any; private initCallback:Function = null; private _callbacks:any = {}; private reqId:number = 0; private _package:IPackage; private _message:IMessage; constructor(){ if(!console.group){ console.group = console.log; console.groupEnd = fun...

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

5. 构建apk后,java报错 [ 56%]

...ptorFactory.java:80)         at miui.contentcatcher.InterceptorFactory.initInterceptorClass(InterceptorFactory.java:99)         at miui.contentcatcher.InterceptorFactory.createInterceptor(InterceptorFactory.java:41)         at miui.contentcatcher.InterceptorProxy$H.handleMessage(Intercep...

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