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

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

11. 为什么会出现报错 ani not found:ufo1_down [ 38%]

...vel = 0; // 升级等级所需要的成绩数量 this.levelUpScore = 0; // 积分成绩 this.score = 0; // 子弹级别 this.bulletLevel = 0; // 敌机血量 this.hps = [1,4,10]; // 敌机速度 this.speeds = [3,2,1]; // 敌机半径 this.radius = [15,30,70]; // 初始化引擎,设置舞台大小 ...

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

12. LayaAir开发笔记(1)五十音图连连看 [ 34%]

... = "http://www.coderluan.com"; }); Laya.stage.addChild(copyright); 3.设置积分板和开始菜单 右下弄了个“点击开始游戏”的文本,点击只会游戏开始,这个文本会变成得分,游戏结束,这个文本会变成得分信息。var txt = new laya.display.Text(); txt.te...

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

13. 【简单跑酷--JS版】---Lv.6 终篇 [ 32%]

...===== 接下来我们来讲讲道具 道具我们有那几种? 1、普通积分道具 2、加速道具 3、悬空能量道具   同样我们新建一个Item.js  (function(){ /** * 物品类 */ function Item(){ //图标 this.icon = null; //星星贴图 this.starTexture = null; //加速贴图 this...

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

14. 组件脚本的内置方法 · LayaAir3.4 · 引擎文档 · LAYABOX [ 26%]

... Laya.Sprite; if (other.label === "buttle") { //碰撞到子弹后,增加积分,播放声音特效 if (this._level > 1) { this._level--; this._text.text = (this._level + ""); owner.getComponent(Laya.RigidBody).setVelocity({ x: 0, y: -10 }); Laya.SoundManager.playSound("resources/sound/hit.wav...

来源: Laya3.0_文档 发布时间: 20251010

15. 2D物理系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 11%]

...应的逻辑 if (other.label === "buttle") { //碰撞到子弹后,增加积分,播放声音特效 //省略若干代码…… } else if (other.label === "ground") { //只要有一个盒子碰到地板,则停止游戏 //省略若干代码…… } } 3.2.7 编辑碰撞体形状 点击编辑碰撞...

来源: Laya3.0_文档 发布时间: 20251010