大约有 15 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0041 秒)
...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
... = "http://www.coderluan.com"; }); Laya.stage.addChild(copyright); 3.设置积分板和开始菜单 右下弄了个“点击开始游戏”的文本,点击只会游戏开始,这个文本会变成得分,游戏结束,这个文本会变成得分信息。var txt = new laya.display.Text(); txt.te...
来源: Laya_社区 发布时间: 20160623
...===== 接下来我们来讲讲道具 道具我们有那几种? 1、普通积分道具 2、加速道具 3、悬空能量道具 同样我们新建一个Item.js (function(){ /** * 物品类 */ function Item(){ //图标 this.icon = null; //星星贴图 this.starTexture = null; //加速贴图 this...
来源: Laya_社区 发布时间: 20160803
... 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
...应的逻辑 if (other.label === "buttle") { //碰撞到子弹后,增加积分,播放声音特效 //省略若干代码…… } else if (other.label === "ground") { //只要有一个盒子碰到地板,则停止游戏 //省略若干代码…… } } 3.2.7 编辑碰撞体形状 点击编辑碰撞...
来源: Laya3.0_文档 发布时间: 20251010