Level2.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {
  2. "desgin":{
  3. "monsterDis":"怪物生成点跟玩家位置的距离",
  4. "maxAnger":"最大怒气值",
  5. "monsters":[
  6. {
  7. "id":"唯一ID",
  8. "monsterId":"怪物模板ID",
  9. "moveSpeed":"怪物移动速度",
  10. "moveAnimation":"移动动画名称",
  11. "moveAnimationSpeed":"移动动画播放速度",
  12. "hp":"怪物血量",
  13. "damage":"伤害",
  14. "anger":"死亡时为玩家增加的怒气值",
  15. "attackAnimation":"攻击动画名称",
  16. "attackAnimationSpeed":"攻击动画播放速度",
  17. "attackAnimationEvents":[
  18. {
  19. "frame":"动画开始多少秒时调用下面的func方法",
  20. "func":"回调方法名",
  21. "params":["参数数组"]
  22. }
  23. ],
  24. "damageAnimation":"受伤动画名",
  25. "damageAnimationSpeed":"受伤动画播放速度",
  26. "dieAnimation":"死亡动画名",
  27. "dieAnimationSpeed":"死亡动画播放速度",
  28. "createTime":"怪物生成时间点(相对于这局游戏开始时间)",
  29. "startPos":"出生点 0 左 1中 2右"
  30. }
  31. ]
  32. },
  33. "data":{
  34. "monsterDis":50,
  35. "maxAnger":100,
  36. "monsters":[
  37. {
  38. "id":1,
  39. "monsterId":1,
  40. "moveAnimation":"Walk",
  41. "moveAnimationSpeed":1,
  42. "moveSpeed":5,
  43. "hp":100,
  44. "damage":10,
  45. "anger":1,
  46. "attackAnimation":"Attack",
  47. "attackAnimationSpeed":1,
  48. "attackAnimationEvents":
  49. [
  50. {
  51. "frame":0.1,
  52. "func":"AttackDamageFrame",
  53. "params":[]
  54. }
  55. ],
  56. "damageAnimation":"Damage",
  57. "damageAnimationSpeed":1,
  58. "dieAnimation":"Die",
  59. "dieAnimationSpeed":1,
  60. "createTime":1000,
  61. "startPos":0
  62. },
  63. {
  64. "id":2,
  65. "monsterId":1,
  66. "moveSpeed":5,
  67. "moveAnimation":"Walk",
  68. "moveAnimationSpeed":1,
  69. "hp":100,
  70. "damage":10,
  71. "anger":1,
  72. "attackAnimation":"Attack",
  73. "attackAnimationSpeed":1,
  74. "attackAnimationEvents":
  75. [
  76. {
  77. "frame":0.1,
  78. "func":"AttackDamageFrame",
  79. "params":[]
  80. }
  81. ],
  82. "damageAnimation":"Damage",
  83. "damageAnimationSpeed":1,
  84. "dieAnimation":"Die",
  85. "dieAnimationSpeed":1,
  86. "createTime":1000,
  87. "startPos":1
  88. },
  89. {
  90. "id":3,
  91. "monsterId":1,
  92. "moveSpeed":5,
  93. "moveAnimation":"Walk",
  94. "moveAnimationSpeed":1,
  95. "hp":100,
  96. "damage":10,
  97. "anger":1,
  98. "attackAnimation":"Attack",
  99. "attackAnimationSpeed":1,
  100. "attackAnimationEvents":
  101. [
  102. {
  103. "frame":0.1,
  104. "func":"AttackDamageFrame",
  105. "params":[]
  106. }
  107. ],
  108. "damageAnimation":"Damage",
  109. "damageAnimationSpeed":1,
  110. "dieAnimation":"Die",
  111. "dieAnimationSpeed":1,
  112. "createTime":1000,
  113. "startPos":2
  114. },
  115. {
  116. "id":4,
  117. "monsterId":1,
  118. "moveSpeed":5,
  119. "moveAnimation":"Walk",
  120. "moveAnimationSpeed":1,
  121. "hp":100,
  122. "damage":10,
  123. "anger":1,
  124. "attackAnimation":"Attack",
  125. "attackAnimationSpeed":1,
  126. "attackAnimationEvents":
  127. [
  128. {
  129. "frame":0.1,
  130. "func":"AttackDamageFrame",
  131. "params":[]
  132. }
  133. ],
  134. "damageAnimation":"Damage",
  135. "damageAnimationSpeed":1,
  136. "dieAnimation":"Die",
  137. "dieAnimationSpeed":1,
  138. "createTime":2000,
  139. "startPos":2
  140. }
  141. ]
  142. }
  143. }