大约有 17 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0040 秒)
...能量条都是一样的 只是颜色不一样 那我们可以只写一个HP.js 来实现两个能量条的功能,我们创建一个Hp.js 代码如下 (function () { /** * 血条 * */ function Hp(type){ //背景 this.bg = null; //进度条 this.bar = null; //最小值 this.MIN_VALUE = 0; //最...
来源: Laya_社区 发布时间: 20160803
...地址: http://layabox.github.io/layaair-examples/ BUG: 吃了血瓶,HP变成0,显示错误 官方Game.ts源码: https://github.com/layabox/lay ... me.ts 解决方式: 请修改Game.ts第264行,将参数role.hp改成this.hero.hp,这样才能正确显示主角的HP血量 附件 :...
来源: Laya_社区 发布时间: 20161106
...如图片使用的资源是:res://318c6b25-05a2-47f5-8ce0-bcd0556ec848@hp_bg,底层转换后得到texture/battle/battle-ui/hp_bg.png,用这个URL去加载这个图片就会报图片未找到。 正确的逻辑应该是,首先加载res://318c6b25-05a2-47f5-8ce0-bcd0556ec848这个资源,...
来源: Laya_社区 发布时间: 20240221
...this.score = 0; // 子弹级别 this.bulletLevel = 0; // 敌机血量 this.hps = [1,4,10]; // 敌机速度 this.speeds = [3,2,1]; // 敌机半径 this.radius = [15,30,70]; // 初始化引擎,设置舞台大小 Laya.init(400,852); // 创建循环滚动的悲剧 this.bg = new BackGround(); // 把背...
来源: Laya_社区 发布时间: 20170525
...this.score = 0; // 子弹级别 this.bulletLevel = 0; // 敌机血量 this.hps = [1,4,10]; // 敌机速度 this.speeds = [3,2,1]; // 敌机半径 this.radius = [15,30,70]; // 初始化引擎,设置舞台大小 Laya.init(400,852); // 创建循环滚动的悲剧 this.bg = new BackGround(); // 把背...
来源: Laya_社区 发布时间: 20170525
... Laya.stage.addChild(over); } hero类: (function() { function Hero(type, hp) { Hero.__super.call(this); this.fly(); } Laya.class(Hero,"Hero", Air); var _proto = Hero.prototype; _proto.fly = function() { this.playAction("fly") } })(); air类: (function() { function Air(type, hp) { this.hp = hp; t...
来源: Laya_社区 发布时间: 20180911
... 人 Laya_Aaron • 2018-08-14 14:16 这个demo我们会检查修正的 缪hp • 2018-10-18 19:03 @Laya_Aaron:然后现在还是没修复。。。求教是什么问题? 缪hp • 2018-10-18 19:17 @Laya_Aaron:"#include?DIRECTIONLIGHT||POINTLIGHT||SPOTLIGHT 'LightHelper.glsl';\n" + 是这...
来源: Laya_社区 发布时间: 20180813
...reset = function(){ this.infoLabel.text = ""; this.hp(5); this.level(0); this.score(0); } _proto.onPauseBtnClick = function(e){ e.stopPropagation(); this.infoLabel.text = "游戏已暂停,点击任意地方恢复游...
来源: Laya_社区 发布时间: 20170416
...度了!/** * 角色创建 */ public function init(interval,type:String,hp:Number,speed:Number,hitRadius:Number,camp:Number,heroType:Number = 0):void { //初始化属性 this.type = type; this.hp = hp; this.speed = speed; this.hitRadius = hitRadius; this.camp = camp; this.heroType = heroType; if(!R...
来源: Laya_社区 发布时间: 20170420
...被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 缪hp 相关问题 使用了u3D导出来的粒子,不停的显示移除并销毁其克隆对象,统计面板的显存和内存就会显示成负数 Skeleton动画销毁之后依然占用内存 如何加载图集、销毁图集...
来源: Laya_社区 发布时间: 20181108