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

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

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

重写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

22. 输入设备-指南针 [ 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

23. laya.ui.AutoBitmap_API3.0 [ 97%]

...erties _color _color: string = "#ffffff" Defined in laya/ui/AutoBitmap.ts:31 uv uv: number[] = null Defined in laya/ui/AutoBitmap.ts:29 Accessors cmds get cmds(): any[] set cmds(value: any[]): void Inherited from Graphics.cmds Defined in laya/display/Graphics.ts:151 命令流。存储了所有绘制...

来源: Laya3.0_api 发布时间: 20231115

24. 输入设备-指南针 [ 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

25. 关于LAYA TS重写X和Y坐标的问题 [ 96%]

...坏设计了 , 况且这个是基础功能 我觉得应该要支持的 2018-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 为什么一定要重写呢 2018-02-28 0 5 分享 微博 ...

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

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

27. 输入设备-贪吃蛇(重力感应) [ 96%]

...otype.getPinPosition = function() { var radian = this.rotation * Math.PI / 180; var tx = this.x + Math.cos(radian) * this.width; var ty = this.y + Math.sin(radian) * this.width; return new Point(tx, ty); } this.size(width, height); this.init(); } Laya.class(Segment, "Segment", Sprite); var seg; var ...

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

28. 输入设备-贪吃蛇(重力感应) [ 96%]

...ANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, this.animate); // 食物生产 Laya.timer.loop(3000, this, this.produceFood); // 游戏开始时有一个食物 this.produceFood(); } initSnake() { const Point = Laya.Point; for (let i = 0; i 0) { let prevSeg = segme...

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

29. json图片中带有pivot属性无效吗 [ 96%]

...吗 我有这么个素材配置: {     "frames": {         "idle_01.png": {             "frame": {                 "x": 1,                 "y": 1,                 "w": 137,                 "h": 299             },             "rotated": false,...

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

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