HaidaoCfg.js 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. //游戏配置
  2. let HaidaoCfg = {};
  3. let Global = {
  4. appFocus : true,
  5. appPause : false,
  6. androidVersion : null,
  7. OAID : null,
  8. UUID : null,
  9. uiMap : {},
  10. isChangeTable : false,
  11. quitFromTorpedoGame : false,
  12. ifShowPopUpWindows : true,
  13. inGuide : false,
  14. huaweiLoginResultCache : null,
  15. maxMapRate : 1.55,
  16. JoystickActive : false,
  17. go_map : ["alertClose"],
  18. loadingPanel : null,
  19. GameTimeScale : 1,
  20. curPanel : "hallPanel",
  21. //闯关场内暂停游戏变量
  22. otherScreen : false,
  23. otherScreenY : 1,
  24. saveBoxIsShow : false,
  25. guideShootNumber : 12,
  26. curNewPlayerTaskDay : 1,
  27. NewPlayerjifenPoint:false,
  28. overTaskDay : 0,
  29. curDay : 0,
  30. isWujin : false,
  31. curRoleNum : 0,
  32. otherRoleNum : 0,
  33. goldPos : null,
  34. otherRoleVIP : 0,
  35. OpenUICanNotFire : false,
  36. CARVEFOLDWINDOW : true,
  37. Is360SDK : false,
  38. IsOpenOtherPanel : false,
  39. OtherCurfa : null,
  40. OtherNexthb : null,
  41. ManXiangWind : true,
  42. ManXiangNum : 0,
  43. ShopGoodId : 0,
  44. ShowHotUpdate : false,
  45. CurBetNum : 0,
  46. };
  47. let Game = {
  48. playerObj : null,
  49. attackAudio : null,
  50. sep_bullet : null,
  51. Enemys : {},
  52. EnemyDes : {},
  53. EnemyCount : 0,
  54. PaoKou : 10,
  55. BeiLv : 1,
  56. SelectPfb : null,
  57. Player : null,
  58. LoadCount : 2,
  59. CurLoadCount : 0,
  60. mapRange : {
  61. width : 3.6,
  62. height : 8
  63. },
  64. sprites : {},
  65. forceDeathEff : {},
  66. otherEff : {},
  67. uihide : null,
  68. hbtip : true,
  69. bxtip : true,
  70. guidestep : null,
  71. guidestepbx : 1,
  72. guidestephb : 1,
  73. guidesteppowerup : 0,
  74. guidestepvip : 0,
  75. loginsucess : false,
  76. birtheffs : null,
  77. bh : null,
  78. pid : 0,
  79. exchange : 0,
  80. fire5 : 0,
  81. shopSortingOrder : 0,
  82. AutoRedType : 0,
  83. OnlineTime : 0,
  84. OnlineBox : 0,
  85. AssetLoadCompete : false,
  86. WeChatOrAlipay : 0,
  87. SaveBoxDouble : 0,
  88. guideShootFreeTime : -1,
  89. };
  90. let GAME_RES_MAP = {
  91. Diamond : 1, // --元宝/钻石
  92. Copper : 2, // --铜币
  93. Gold : 0, //--金币
  94. POWER : 5, // --体力
  95. QiHai : 6,
  96. DaoXin : 7,
  97. PlayerExp : 8, //--经验值
  98. Red : 99,
  99. YaoHun : 11, //--妖魂
  100. RedBookEXP : 39, //--红包宝典经验
  101. RedBookIntegral : 40, //--红包宝典积分
  102. }
  103. let ClientConfigKeys = {
  104. WECHATPAY_TYPE : "wxpaytype",
  105. ALIPAY_TYPE : "alipaytype",
  106. DELAY_CONFIG : "delayconfig",
  107. VERIFICATION_ENABLED : "verificationenabled",
  108. IDENTIFICATION_CHECK_TYPE : "identificationchecktype",
  109. FREE_MONTH_CARD_ENABLED : "freemonthcardenabled",
  110. REGISTERPAY_TYPE : "registerpay",
  111. }
  112. let Attribute_Name = {
  113. HPMax : "HPMax",
  114. HPMaxValue : "HPMaxValue",
  115. HPAdd : "HPAdd",
  116. HPAddValue : "HPAddValue",
  117. Attack : "Attack",
  118. AttackValue : "AttackValue",
  119. AttackModify : "AttackModify",
  120. Defence : "Defence",
  121. DefenceValue : "DefenceValue",
  122. MoveSpeed : "MoveSpeed",
  123. AttackSpeed : "AttackSpeed",
  124. DamageResist : "DamageResist",
  125. BodyHittedReduce : "BodyHittedReduce",
  126. BulletReduce : "BulletReduce",
  127. MissRate : "MissRate",
  128. CritRate : "CritRate",
  129. CritDamage : "CritDamage",
  130. KillVampire : "KillVampire",
  131. HitBack : "HitBack",
  132. HitBackReduce : "HitBackReduce",
  133. HeadShot : "HeadShot",
  134. ReboundTimes : "ReboundTimes", //--反弹
  135. ReboundHit : "ReboundHit",
  136. TransmitTimes : "TransmitTimes", //--弹射
  137. TransmitHit : "TransmitHit",
  138. ThroughHit : "ThroughHit",
  139. BulletForward : "BulletForward",
  140. BulletSide : "BulletSide",
  141. BulletBackward : "BulletBackward",
  142. BulletContinue : "BulletContinue",
  143. Att_Poison : "Att_Poison",
  144. Att_Fire : "Att_Fire",
  145. Anger : "Anger",
  146. TrapHit : "TrapHit", //--地图陷阱伤害加成
  147. DefenceReduce : "DefenceReduce", //--防御穿透
  148. HitToFar : "HitToFar", //--对远程伤害增强
  149. HitFromFar : "HitFromFar", //--远程伤害减免
  150. HitToNear : "HitToNear", //--对近战伤害增强
  151. HitFromNear : "HitFromNear", //--近战伤害减免
  152. HitToBoss : "HitToBoss", //--对BOSS伤害增强
  153. HitFromBoss : "HitFromBoss", //--BOSS伤害减免
  154. HitToGround : "HitToGround", //--对地面伤害增强
  155. HitFromGround : "HitFromGround", // --地面伤害减免
  156. HitToFly : "HitToFly", //--对飞行伤害增强
  157. HitFromFly : "HitFromFly", // --飞行伤害减免
  158. EquipBsase : "EquipBsase", // --单一装备基础属性百分比
  159. AllEquipBsase : "AllEquipBsase" //--全局装备基础属性百分比
  160. }
  161. let Quality_Name = {
  162. [1] : {name : ""},
  163. [2] : {name : "普通"},
  164. [3] : {name : "精良"},
  165. [4] : {name : "稀有"},
  166. [5] : {name : "史诗"},
  167. [6] : {name : "传说"},
  168. [7] : {name : "神话"}
  169. }
  170. let Animation_Name = {
  171. Idle : "Idle",
  172. Run : "Run",
  173. AttackPrev : "AttackPrev",
  174. AttackEnd : "AttackEnd",
  175. Hitted : "Hitted",
  176. Dead : "Dead",
  177. Stand : "Stand",
  178. Show : "Show",
  179. Skill : "Skill",
  180. SkillEnd : "SkillEnd",
  181. Warp : "Warp",
  182. ShowToStand : "ShowToStand" // --传送技能动作
  183. }
  184. let Skill_Type = {
  185. FanTan : 4,
  186. ChuanTou : 5,
  187. TanShe : 6
  188. }
  189. let Layer_Name = {
  190. Default : "Default",
  191. Water : "Water",
  192. Enemy : "Enemy",
  193. Player : "Player",
  194. Trigger : "Trigger",
  195. Obstrace : "Obstrace",
  196. BulletWall : "BulletWall"
  197. }
  198. let BulletHitLayers = {
  199. default : "xxxxxxxx",
  200. normal : "xxxxxx"
  201. }
  202. let LuaEvent_Name = {
  203. INIT_OBSTRACLE : "INIT_OBSTRACLE",
  204. MAP_INITOVER : "MAP_INITOVER",
  205. HERO_ADDSKILL : "HERO_ADDSKILL", //--英雄新增技能
  206. HERO_BULLET_HIT : "HERO_BULLET_HIT", //--英雄被子弹击中
  207. HERO_UPDATE_HP : "HERO_UPDATE_HP", //--英雄血量更新
  208. STAGE_EXP_UPDATE : "STAGE_EXP_UPDATE", // --局内经验更新
  209. STAGE_BOSS_HP_INIT : "STAGE_BOSS_HP_INIT", //--初始化BOSSHP
  210. STAGE_BOSS_HP_UPDATE : "STAGE_BOSS_HP_UPDATE", //--boss血量更新
  211. STAGE_ROOM_INIT_OVER : "STAGE_ROOM_INIT_OVER", //--闯关房间初始化完成
  212. EQUIP_UPDATE : "EQUIP_UPDATE", //--装备数据更新
  213. EQUIP_TAKE_ON : "EQUIP_TAKE_ON", //--穿戴
  214. EQUIP_TAKE_OFF : "EQUIP_TAKE_OFF", //--卸下
  215. EQUIP_PUT_IN : "EQUIP_PUT_IN", //--放入
  216. EQUIP_GET_OUT : "EQUIP_GET_OUT", //--取下
  217. PLAYER_UPDATE : "PLAYER_UPDATE", //--player数据更新
  218. GAME_START_ROOM : "GAME_START_ROOM", //--开始房间
  219. GAME_QUIT_STAGE : "GAME_QUIT_STAGE", //--退出闯关游戏
  220. GAME_MONSTER_DIE : "GAME_MONSTER_DIE", //--怪物死亡
  221. GAME_MONSTER_LOAD : "GAME_MONSTER_LOAD", //--进入房间怪物加载
  222. GAME_ROOM_REWARD : "GAME_ROOM_REWARD", //--房间奖励
  223. UPDATE : "UPDATE", //--闯关内UPDATE
  224. COMMON_UPDATE : "COMMON_UPDATE", //--通用UPDATE
  225. PLAYER_ENERGY_UPDATE : "PLAYER_ENERGY_UPDATE", //--玩家能量更新
  226. INIT_PLAYER_SKILL : "SET_PLAYER_SKILL", //--初始化技能
  227. PLAYER_USE_SKILL : "PLAYER_USE_SKILL", //--使用玩家技能
  228. HERO_SKIN_UPDATE : "HERO_SKIN_UPDATE", //--皮肤更新
  229. GAME_PAUSE : "GAME_PAUSE", // --游戏暂停
  230. UI_TOP_UPDATE : "UI_TOP_UPDATE", //--最上层的UI改变
  231. MONSTER_BULLET_DESTROY : "MONSTER_BULLET_DESTROY",
  232. SHARE_BIND_UPDATE : "SHARE_BIND_UPDATE", //--分享绑定信息
  233. REALM_UPDATE : "REALM_UPDATE", //--矩阵信息更新
  234. HERO_UPDATE : "HERO_UPDATE", //-- 英雄信息改变
  235. PASS_TASK_UPDATE : "PASS_TASK_UPDATE",
  236. HALLPANEL_BUTTON_UPDATE : "HALLPANEL_BUTTON_UPDATE", //--主界面Button变化
  237. UI_OPEN_TYPE : "UI_OPEN_TYPE", //--打开界面处理
  238. GAME_SEPARATION_SWITCH : "GAME_SEPARATION_SWITCH", //--渔场玩家开启分身
  239. GAME_PREPAREASSET : "GAME_PREPAREASSET", // --渔场资源加载完成
  240. OPEN_AUTO : "OPEN_AUTO" // --开启自动
  241. }
  242. //--装备部件对应ID
  243. let EquipLocation = {
  244. [1] : "Ammunition", //--弹药
  245. [2] : "Muzzle", //--炮口
  246. [3] : "Armor", //--装甲
  247. [4] : "Chassis", //--底盘
  248. [5] : "Chip", //--芯片
  249. [6] : "Energy", //--能源
  250. [7] : "Deputyweapon_1", //--副武器1
  251. [8] : "Deputyweapon_2" //--副武器2
  252. }
  253. let EquipLocationName = {
  254. [1] : "弹药",
  255. [2] : "炮口",
  256. [3] : "装甲",
  257. [4] : "底盘",
  258. [5] : "芯片",
  259. [6] : "能源",
  260. [7] : "副武器",
  261. [8] : "副武器"
  262. }
  263. let EquipStatusEnum = {
  264. None : 0,
  265. EquipOn : 1, //--穿戴中
  266. ReforgeMain : 3, //--词条重铸主装备
  267. ReforgeCost : 4, // --词条重铸消耗装备(未使用乾坤)
  268. ReforgeCostCanSave : 5, //--词条重铸消耗装备(使用乾坤)
  269. TransformCost : 8, //--套装重铸消耗装备
  270. TransformProduct : 11, // --套装重铸产出装备
  271. ReforgeKeepMail : 12 //--词条重铸保留主装备
  272. }
  273. let SystemID = {
  274. JingYing : 102,
  275. KunNan : 103,
  276. HeCheng : 202,
  277. ZhuLing : 203,
  278. XiLian : 204,
  279. TaoZhuang : 205,
  280. ShuXing : 206,
  281. JingJie : 301,
  282. BaoXiang : 501
  283. }
  284. let ClientType ={
  285. Default : "坦克向前冲",
  286. Tank_BY : "坦克霸业",
  287. }
  288. window.Global = Global;
  289. window.Game = Game;
  290. window.GAME_RES_MAP = GAME_RES_MAP;
  291. window.ClientConfigKeys = ClientConfigKeys;
  292. window.Attribute_Name = Attribute_Name;
  293. window.Quality_Name = Quality_Name;
  294. window.Animation_Name = Animation_Name;
  295. window.Skill_Type = Skill_Type;
  296. window.Layer_Name = Layer_Name;
  297. window.BulletHitLayers = BulletHitLayers;
  298. window.LuaEvent_Name = LuaEvent_Name;
  299. window.EquipLocation = EquipLocation;
  300. window.EquipLocationName = EquipLocationName;
  301. window.EquipStatusEnum = EquipStatusEnum;
  302. window.SystemID = SystemID;
  303. window.ClientType = ClientType;