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

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

11. 重复背景,全方向地图拖动Demo [ 97%]

...背景,全方向地图拖动Demo UI创建4个image  var分别: map0,map1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Lay...

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

12. 小程序不支持matter.js吗 [ 97%]

小程序不支持matter.js吗 VM145:1 gameThirdScriptError Matter is not defined ReferenceError: Matter is not defined at http://xxx.xxx.x.x:14680/game/code.js:1:839076 at http://xxx.xxx.x.x:14680/game/code.js:1:843108 at require (http://xxx.xxx.x.x:14680/game/ ... :77964) at http://xxx.xxx.x.x:14...

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

13. 飞机大战地图滚动报错,麻烦看下? [ 97%]

飞机大战地图滚动报错,麻烦看下? Laya.init(650, 316, Laya.WebGL); var bg1 = null; var bg2 = null; var box = null; function bg_rolling() {     box = new laya.display.Sprite();     Laya.stage.addChild(box);     bg1 = new laya.display.Sprite();     bg1.loadImage("res/bg1.png");...

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

14. laya2.X使用jszip3.x出现JSzip为空如何解决 [ 97%]

...c就会出现这种情况……,是3.x默认支持laya3.0吗~~~~ 2023-02-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 layabox小高 赞同来自: 您好,给个示例吧,我们这里来复现一下。 20...

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

15. 输入设备-指南针 [ 97%]

...var directionIndicator; var firstTime = true; (function() { Laya.init(700, 1024, WebGL); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handler.create(this, init)); })(); function init() { /...

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

16. 输入设备-指南针 [ 97%]

...r = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, t...

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

17. 重写X Y在android studio里运行会变成00 [ 96%]

重写X Y在android studio里运行会变成00 1 新建一个工程 2 创建任意一个继承Sprite的对象 比如 XSprite extends Sprite 3 new出这个对象 将对象addChild到TestUI里 this.addChild(xSprite); 4 然后设置xSprite.x = 100; xSprite.y = 200; 5 然后再XSprite这个类里将XY...

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

18. layaide 1.7.x typescript断点挂载经常失败 [ 96%]

layaide 1.7.x typescript断点挂载经常失败 layaide 1.7.x typescript断点挂载经常失败。 用1.6x版本是好的。求破 2017-04-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来...

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

19. loadImage加载资源的同时指定x,y和sprite对象指定x,y相同的值为什么结果不同 [ 96%]

...aya.stage.width)/2; ape.y=(Laya.stage.height)/2;不同这是为什么? 2017-07-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 第一种方式是图片在sprite容器中的...

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

20. Unity插件使用:LayaAir 2.x版本的引擎,适配的unity什么版本的? [ 96%]

...:LayaAir 2.x版本的引擎,适配的unity什么版本的? LayaAir 1.x版本的引擎,适配的是Unity 5.6.x。 请问LayaAir 2.x版本的引擎,适配的unity什么版本的? 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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