constants.ts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. export const constants = {
  2. gameName: "slgs",
  3. level: "level",
  4. icons: {
  5. coin_icon: "coin_icon",
  6. },
  7. // 玩家立绘初始缩放比
  8. playerBodyScale: 0.5,
  9. // 战斗播放攻击动画次数
  10. atkAniTotal: 1,
  11. // 角色每秒移动多少像素
  12. playerWalkSpeed: 500,
  13. // 怪物每秒移动多少像素
  14. monsterWalkSpeed: 600,
  15. // 战力增减时候,每隔多少秒变化一次战力
  16. atkChangeTimeGap: 0.03,
  17. // 战力增减时候,最大变化显示时间,单位:秒
  18. atkChangeTimeMax: 2,
  19. roleItemTypes: {
  20. player: -1,
  21. monster: 0,
  22. coinBox: 1,
  23. shop: 2,
  24. arrow: 3,
  25. atk: 4,
  26. equip: 5,
  27. skill: 6,
  28. dapao: 7,
  29. gunshi: 8,
  30. },
  31. arrowTypes: {
  32. right: 0,
  33. left: 1,
  34. },
  35. equipTypes: {
  36. weapon: 1,
  37. dress: 2,
  38. },
  39. shopTypes: {
  40. equip: 0,
  41. skill: 1,
  42. secret: 10
  43. },
  44. animations: {
  45. attack: "attack",
  46. chuansong: "chuansong",
  47. die: "die",
  48. hit: "hit",
  49. standBy: "standBy",
  50. walk: "walk",
  51. win: "win",
  52. animation: "animation",
  53. standBy1: "standBy1",
  54. standBy2: "standBy2",
  55. open1: "open1",
  56. open2: "open2",
  57. },
  58. // 倍增类型
  59. atkChangeTypes: {
  60. // 加法
  61. add: 0,
  62. // 乘法
  63. multi: 1,
  64. },
  65. turnTableAwardTypes: {
  66. coin: 1,
  67. skill: 2,
  68. skin: 3,
  69. },
  70. audioNames: {
  71. bgm: "bgm",
  72. button: "button",
  73. baoxiang: "baoxiang",
  74. gold: "gold",
  75. hit_gong: "hit_gong",
  76. figure: "figure",
  77. win: "win",
  78. lose: "lose",
  79. equip: "equip",
  80. gunshi: "gunshi",
  81. pao: "pao",
  82. },
  83. roleIds: {
  84. gong_jian_shou: 1,
  85. jian_shi: 2,
  86. },
  87. monsterIds: {
  88. lang: 1,
  89. xie_zi: 2,
  90. xi_niu: 3,
  91. ye_zhu: 4,
  92. tu_jiu: 5,
  93. ju_ren: 6,
  94. },
  95. tableName: {
  96. equip: "equip",
  97. role: "role",
  98. shop_equip: "shop_equip",
  99. shop_secret: "shop_secret",
  100. shop_skill: "shop_skill",
  101. skill: "skill",
  102. turn_table: "turn_table",
  103. monster: "monster",
  104. },
  105. bundles: {
  106. common: {
  107. name: "common",
  108. dir: {
  109. audio: "audio",
  110. icon: "icon",
  111. layer: "prefab/layer",
  112. level: "prefab/level",
  113. },
  114. roleBox: "prefab/role/role_box",
  115. spine: {
  116. roleDir: "spine/role",
  117. skillDir: "spine/skill",
  118. shouzhi: "spine/effect/shouzhi/shouzhi",
  119. }
  120. },
  121. design: {
  122. name: "design",
  123. dir: {
  124. common: "common",
  125. }
  126. },
  127. audio: {
  128. name: "audio",
  129. }
  130. },
  131. layers: {
  132. LoadingLayer: {
  133. name: "LoadingLayer",
  134. },
  135. NoticeLayer: {
  136. name: "NoticeLayer",
  137. },
  138. StartLayer: {
  139. name: "StartLayer",
  140. bundle: "common",
  141. path: "prefab/layer/StartLayer"
  142. },
  143. LevelLayer: {
  144. name: "LevelLayer",
  145. bundle: "common",
  146. path: "prefab/layer/LevelLayer"
  147. },
  148. FightFailLayer: {
  149. name: "FightFailLayer",
  150. bundle: "common",
  151. path: "prefab/layer/FightFailLayer"
  152. },
  153. LevelSuccessLayer: {
  154. name: "LevelSuccessLayer",
  155. bundle: "common",
  156. path: "prefab/layer/LevelSuccessLayer"
  157. },
  158. LevelEspSelectLayer: {
  159. name: "LevelEspSelectLayer",
  160. bundle: "common",
  161. path: "prefab/layer/LevelEspSelectLayer"
  162. },
  163. ShopLayer: {
  164. name: "ShopLayer",
  165. bundle: "common",
  166. path: "prefab/layer/ShopLayer"
  167. },
  168. TurnTableLayer: {
  169. name: "TurnTableLayer",
  170. bundle: "common",
  171. path: "prefab/layer/TurnTableLayer"
  172. },
  173. SkinLayer: {
  174. name: "SkinLayer",
  175. bundle: "common",
  176. path: "prefab/layer/SkinLayer"
  177. },
  178. AwardGetLayer: {
  179. name: "AwardGetLayer",
  180. bundle: "common",
  181. path: "prefab/layer/AwardGetLayer"
  182. },
  183. CoinGetEffectLayer: {
  184. name: "CoinGetEffectLayer",
  185. bundle: "common",
  186. path: "prefab/layer/CoinGetEffectLayer"
  187. },
  188. AdCoinLayer: {
  189. name: "AdCoinLayer",
  190. bundle: "common",
  191. path: "prefab/layer/AdCoinLayer"
  192. },
  193. GameContinueLayer: {
  194. name: "GameContinueLayer",
  195. bundle: "common",
  196. path: "prefab/layer/GameContinueLayer"
  197. },
  198. },
  199. }