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

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

1. 跟着老师打地鼠游戏写的代码,JS为什么会出错 [ 100%]

跟着老师打地鼠游戏写的代码,JS为什么会出错 var Game=(function(_super){ function Game(){ Game.super(this); this.mole=new Mole() //这里会报错 } Laya.class(Game,"Game",_super); return Game; })(ui.GameUI) var GameUI=(function(_super){ function GameUI(){ this.btn_start=null; thi...

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

2. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 97%]

...new Laya.Vector4(0, 1, 0, 1); var index = 0; Laya.timer.frameLoop(1, this, function () { index +=1; layaMonkey.meshRender.material.transformUV.offset = new Laya.Vector2(index 0/100.0, index 0/100.0);     layaMonkey.active = !debugModel;     layaMonkey.transform.rotate(rotation, false);     ...

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

3. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 96%]

...,但是每次都给我翻倍的增加,如何解决 _proto.room_xinxi=function(){ this.roombg=new Laya.Image($mj.Curr_Game_ImagePath + "hall/room_bg.png"); this.roombg.pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + "hall/room_jiesan....

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

4. 官方视频教程中飞机大战 "this.addChild is not a function" [ 96%]

官方视频教程中飞机大战 "this.addChild is not a function" IDE Layabox1.7.20.2 beta 版 src/Game.js//var WebGL = laya.webgl.WebGL; //Laya.init(480, 852, WebGL); var Game = (function(){ (function Game(){ Laya.init(480,852); this.bg = BackGround(); Laya.stage.addChild(this.bg); })(); })(); s...

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

5. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 96%]

...         private var log:ILogger;         }           public function Game()         {             CONFIG::debug             {                 log = Log.getLogger("Game");             }               this.addEventListener(Event.ADDED_TO_STAGE, onAdde...

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

6. Uncaught TypeError: Game.super is not a function [ 95%]

Uncaught TypeError: Game.super is not a function var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

7. 续飞机大战 [ 94%]

...的理解 你的项目修改如下即可正常运行 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 gameInstance = new Game()...

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

8. 截屏函数异常E/LayaBox:className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen [ 93%]

截屏函数异常E/LayaBox:className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen Offline.prototype.setSave=function(){ if( Laya.Browser.window.conch ) { var content=Laya.Browser.context; var width=800; var height=500; Laya.Browser.window.conch.captureScreen(function(content,...

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

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

...戏项目。 Scene: the .lh file root type must be Scene,please use other function to  load  this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to  load  this file.     at MyScene.__proto.onAsynLoaded (http://127.0....

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

10. 截屏问题className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen [ 92%]

截屏问题className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen 2018-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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