diff --git a/assets/resources/gui/Hinfo.prefab b/assets/resources/gui/Hinfo.prefab index f9acff36..283d2389 100644 --- a/assets/resources/gui/Hinfo.prefab +++ b/assets/resources/gui/Hinfo.prefab @@ -23429,7 +23429,7 @@ "__id__": 1028 }, "templateMode": true, - "watchPath": "data.data.exp", + "watchPath": "", "labelType": "cc.Label", "watchPathArr": [ "data.data.exp" @@ -23438,7 +23438,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "72vaj8M3lF/7do+oUrRwU/" + "fileId": "d7kRqkXtZIRZv6hDkhqBSk" }, { "__type__": "cc.PrefabInfo", diff --git a/assets/resources/gui/hero_select.prefab b/assets/resources/gui/hero_select.prefab index e8478f22..a5913afc 100644 --- a/assets/resources/gui/hero_select.prefab +++ b/assets/resources/gui/hero_select.prefab @@ -1151,11 +1151,11 @@ "height": 40 }, "_startAxis": 1, - "_paddingLeft": 15, - "_paddingRight": 15, + "_paddingLeft": 10, + "_paddingRight": 10, "_paddingTop": 15, "_paddingBottom": 15, - "_spacingX": 15, + "_spacingX": 10, "_spacingY": 15, "_verticalDirection": 1, "_horizontalDirection": 0, diff --git a/assets/script/game/common/SingletonModuleComp.ts b/assets/script/game/common/SingletonModuleComp.ts index 620bad64..6bd31903 100644 --- a/assets/script/game/common/SingletonModuleComp.ts +++ b/assets/script/game/common/SingletonModuleComp.ts @@ -34,8 +34,7 @@ export class SingletonModuleComp extends ecs.Comp { gold:100, //升级主要资源 diamond:100, //商店购买 及 双倍奖励资源 meat:0, - exp:0, //升级经验 - + exp:0, } fight_heros:any={ 0:5001, 1:5005, 2:0, 3:0, 4:0, } heros:any = { @@ -63,15 +62,7 @@ export class SingletonModuleComp extends ecs.Comp { gold:100, //升级主要资源 diamond:100, //商店购买 及 双倍奖励资源 meat:0, - exp:0, //升级经验 - ghstone:0, //英雄石 绿色 普通英雄升星 - bhstone:0, //英雄石 蓝色 稀有英雄升星 - phlestone:0, //英雄石 紫色 史诗英雄升星 - rhstone:0, //英雄石 红色 传说英雄升星 - herocard:0, //英雄卡,抽卡凭证 - ckey:0, //铜钥匙 解锁稀有英雄 也可以直接兑换金币 - skey:0, //银钥匙 解锁史诗英雄 也可以直接兑换金币 - gkey:0, //金钥匙 解锁传说英雄 也可以直接兑换金币 + exp:0, }, mission_data:{ mon_num:0,//怪物数量 diff --git a/assets/script/game/common/Test.ts b/assets/script/game/common/Test.ts index be88eca5..437511f6 100644 --- a/assets/script/game/common/Test.ts +++ b/assets/script/game/common/Test.ts @@ -24,10 +24,7 @@ export class Test{ } init_local_data(){ let init_data = { - data : { - score: 0, mission: 1, gold: 100, diamond: 100, meat: 0, exp: 0, - ghstone: 0, bhstone: 0, phlestone: 0, rhstone: 0, herocard: 0, - ckey: 0, skey: 0, gkey: 0,}, + data : { score: 0, mission: 1, gold: 100, diamond: 100, meat: 0, exp: 0,}, fight_heros: { 0: 0, 1: 0, 2: 0, 3: 0, 4: 0 }, heros: { 5001: { uuid: 5001, lv: 1 }, diff --git a/build-templates/wechatgame/cloud_functions/cocos_cloud/user_init_data.js b/build-templates/wechatgame/cloud_functions/cocos_cloud/user_init_data.js index db2562d4..07a5f68a 100644 --- a/build-templates/wechatgame/cloud_functions/cocos_cloud/user_init_data.js +++ b/build-templates/wechatgame/cloud_functions/cocos_cloud/user_init_data.js @@ -20,18 +20,7 @@ const DEFAULT_GAME_DATA = { diamond: 100, // 钻石 - 商店购买及双倍奖励资源 meat: 0, // 肉类资源 exp: 0, // 升级经验 - - // 英雄升星石头资源 - ghstone: 0, // 绿色英雄石 - 普通英雄升星 - bhstone: 0, // 蓝色英雄石 - 稀有英雄升星 - phlestone: 0, // 紫色英雄石 - 史诗英雄升星 - rhstone: 0, // 红色英雄石 - 传说英雄升星 - - // 抽卡和解锁资源 - herocard: 0, // 英雄卡 - 抽卡凭证 - ckey: 0, // 铜钥匙 - 解锁稀有英雄/兑换金币 - skey: 0, // 银钥匙 - 解锁史诗英雄/兑换金币 - gkey: 0 // 金钥匙 - 解锁传说英雄/兑换金币 + }; /** @@ -80,13 +69,7 @@ const DEFAULT_HEROS = { * ID 1001-1007 对应不同类型的道具 */ const DEFAULT_ITEMS = { - 1001: 0, // 生命药水 - 1002: 0, // 魔法药水 - 1003: 0, // 力量药水 - 1004: 0, // 敏捷药水 - 1005: 0, // 智力药水 - 1006: 0, // 复活卷轴 - 1007: 0 // 传送卷轴 + }; /** @@ -94,13 +77,7 @@ const DEFAULT_ITEMS = { * ID 1001-1007 对应不同的天赋技能 */ const DEFAULT_TALS = { - 1001: 0, // 攻击强化 - 1002: 0, // 防御强化 - 1003: 0, // 生命强化 - 1004: 0, // 速度强化 - 1005: 0, // 暴击强化 - 1006: 0, // 经验强化 - 1007: 0 // 金币强化 + }; /** @@ -108,11 +85,7 @@ const DEFAULT_TALS = { * ID 1001-1005 对应不同部位的装备 */ const DEFAULT_EQUIPS = { - 1001: 0, // 武器 - 1002: 0, // 头盔 - 1003: 0, // 胸甲 - 1004: 0, // 护腿 - 1005: 0 // 靴子 + }; /**