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

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

511. 其他引擎的Demo-Example_04 [ 53%]

... = this.w / 2; private slideY:number = this.h / 2; private speedInfo:Text; constructor() { Laya.init(this.w, this.h, WebGL); this.createText(); this.start(); } private start():void { for (var i:number = 0; i this.w) { this.stars[i].x = this.stars[i].x - this.w; } else if (this.stars[i].x this.h) { t...

来源: Laya_示例 发布时间: 20251209

512. 2D物理-碰撞事件与传感器 [ 53%]

...ayaAirIDE让项目开发更高效。class Physics_Physics_CollisionEvent { constructor() { this.count = 7; this.bodys = []; this.touching = []; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.st...

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

513. drawToCanvas转出图片与游戏内显示颜色差距过大 [ 53%]

...示颜色差距过大 测试代码 export default class TestView {     constructor() {         this.init();     }     init() {         Laya.stage.bgColor='#ffffff';         Laya.stage.addChild(new Laya.Image('comp/img/img1.png'));         Laya.timer.once(1000, this, this.delayS...

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

514. 粒子系统-场景与粒子 [ 53%]

...r3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(Laya.Scene.load("../../res/t...

来源: Laya_示例 发布时间: 20251209

515. laya.device.motion.RotationInfo [ 53%]

...转角度,其值范围从-90至90。代表设备从左至右的运动。 Constructor DetailRotationInfo()Constructorpublic function RotationInfo()Fri Sep 29 2017, 06:34 PM +08:00

来源: laya_api 发布时间: 20170929

516. 飞机大战JS版创建子弹报错 [ 53%]

...方出错了,大神们求帮助 报错如下: TypeError: cls is not a constructor 最后项目文件也上传了 2018-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_XS 赞同来自: 你的问题用...

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

517. 创建laya的视图销毁destroy()清除不了 [ 53%]

...s Mail2View extends laya.display.Sprite { private display:ui.mail.mail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSelf(); super.destroy(); } }就是这段简单的测试代码,...

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

518. layaair2.0 js的程序入口在哪?跟以前的不一样了 。 [ 53%]

...的不一样了 。 很久没用了,都2.0了,入口是哪个main类的constructor里吗?官网新手手册还是老版的。 2018-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Xq 赞同来自: M...

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

519. 使用发光滤镜和模糊滤镜一直报错 [ 53%]

...和模糊滤镜一直报错 Uncaught TypeError: Laya.GlowFilter is not a constructor     at LearnGlowFilter.createGlowFilter (LearnGlowFilter.ts:24)     at new LearnGlowFilter (LearnGlowFilter.ts:15)     at GameUI.onTipClick (GameUI.ts:36)     at EventHandler.__proto.runWith (laya.core.js:13...

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

520. laya.d3.core.particleShuriKen.module.TextureSheetAnimation [ 53%]

...typeproperty public var type:int类型,0为whole sheet、1为singal row。Constructor DetailTextureSheetAnimation()Constructorpublic function TextureSheetAnimation(frame:FrameOverTime, startFrame:StartFrame) 创建一个 TextureSheetAnimation 实例。 Parameters frame:FrameOverTime — 动画帧...

来源: Laya2.0_api 发布时间: 20190513