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

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

61. Laya api 中可能的bug [官方来看] [ 82%]

...wGridList顺序,这样在调整zorder时是调整不到的__proto.render=function(context,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,context,x,y); this._childs=childs; }2.core中Sprite的zorder的set方法中 有一行代码有疑似bug,麻...

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

62. 请问怎么制作一个layabox js版本的加载效果 [ 82%]

...2-31 0 0 分享 微博 QZONE 微信 gaowei2024 赞同来自: var Loadings=(function(_super) { function Loadings(){ Loadings.super(this); var Stage = Laya.Stage; var ProgressBar = Laya.ProgressBar; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var progressBar; Laya.init(1024, 600,WebGL); Laya.s...

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

63. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 82%]

..., laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我们看到 图片加载了 而且...

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

64. 一个场景,两个线形碰撞体,出错 [ 82%]

...个版本修复,    chaincollider的  方法    override protected function getDef():* {             if (!_shape) {                 _shape = new window.box2d.b2ChainShape();                 _setShape(false);             }        ...

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

65. 关于环形进度条,进度不能重置问题 [ 81%]

... 提交 2 个回复 cuixueying 赞同来自: gls_laybox var IndexView = (function(_super){ this.angle; this.draw; this.box; this.circle; function IndexView(){ IndexView.super(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.bo...

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

66. 针对2.0.0 beta5 setLoadingPage 做增强 [ 80%]

...e((resolve, reject) => { Laya.Scene.load(url, Laya.Handler.create(this, function (scene) { // setLoadingPage为null 是为了避免引擎加载完场景自动关闭loadingPage Laya.Scene.setLoadingPage(null) resolve(scene) }), progress) }) } _promiseHandler() { return new Promise((resolve, reject...

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

67. laya中js 如何实现Sprite类继承 [ 80%]

...片32x48 this.Role.pos(100, 200);   Role.js基础代码: var Role = ( function ( _super ) { function Role () { Role._super.call(this); /***一些基础信息***/ } Laya.class( Role , "Role" , Sprite ); var _proto_ = Role.prototype; /******/ return Role; })(); 2018-10-12 添加评论 免费帖 -->...

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

68. js飞机大战报错 请大神看看 [ 80%]

...l=null;          this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) {     function GameInfo() {         GameInfo.super(this);         // this.infoLabel.text = "abc"; 这个也报异常应该是找不到infoLabel         // 注册按钮点击事件 点击后暂...

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

69. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 80%]

...* this class is a extension of texts with gradient color  */ var effect; (function (effect) {     var GradientText = (function (_super) {         const style = {             DEFAULT: "default",             VERTICAL: "vertical",             HORIZONTAL: "horizontal",       ...

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

70. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 79%]

...这是官方提供的代码 微信主域代码: Laya.timer.once(400,this,function():void{ var rankTexture:Texture = new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,rankTe...

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