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

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

71. laya中js 如何实现Sprite类继承 [ 74%]

...片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

72. [临时解决]bug?加载sk问题 [ 74%]

...,代码大概就是下面这样 // Test01是ui的逻辑类 var Test01 = (function (_super) {     function Test01() {         Test01.__super.call(this);// 调试用,看看过了多少帧,才就绪         this.numPreloadCalls = 0; // 执行预加载         this.prel...

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

73. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 73%]

...加Floor碰撞范围检测功能 Ok~~ 打开Floor.js开始 修改代码  (function(){ /** * 地板类 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //最大右边距离 this.maxRight = 0; //判断是否超过右边最大距离了 this.isOutComplete = false; //背景 this.bg = nul...

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

74. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 73%]

...------ | ---------------------------------------- | | onreadystatechange | function | 一个JavaScript函数对象,当readyState属性改变时会调用它。 | | readyState | unsigned short | 请求的五种状态 | | response | varies | 响应实体的类型由 `responseType 来指定,` 可以...

来源: Laya2.0_文档 发布时间: 20210715

75. Laya 绑定显示内容到骨骼动画 [ 73%]

...阵的方法 //返回变化矩阵     __proto.getResultMatrixByFrame=function(index){         var matrix=this._resultMatrixCache[index];         if(matrix){             return matrix;         }         return this.resultMatrix;     }   2. Bone ...

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

76. Laya api 中可能的bug [官方来看] [ 73%]

...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

77. 2.0 Beta3版本中,runtime脚本的的问题 [ 72%]

...c exportSceneToJson:boolean=false; constructor(){} static init(){ var reg: Function = Laya.ClassUtils.regClass; reg("game/ImageRunTime.ts",ImageRunTime); } } GameConfig.init(); 2018-10-15 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-1  照着...

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

78. UI-List [ 72%]

...laya.utils.Handler; import laya.webgl.WebGL; public class UI_List { public function UI_List() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage...

来源: Laya2.0_示例 发布时间: 20260929

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

...* 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

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

...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