defs.mjs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. export const defs = (() => {
  2. const _CHARACTER_MODELS = {
  3. paladin: {
  4. base: 'paladin.glb',
  5. path: './resources/characters/',
  6. anchors: {
  7. rightHand: 'RightHandIndex1',
  8. },
  9. nameOffset: 11,
  10. attack: {
  11. timing: 0.35,
  12. cooldown: 1.0,
  13. type: 'melee',
  14. range: 10,
  15. },
  16. scale: 6.0,
  17. inventory: {
  18. 'inventory-1': 'weapon.axe1',
  19. 'inventory-2': 'weapon.hammer1',
  20. 'inventory-equip-1': 'weapon.sword1',
  21. },
  22. stats: {
  23. health: 200,
  24. maxHealth: 200,
  25. strength: 50,
  26. wisdomness: 5,
  27. benchpress: 20,
  28. curl: 100,
  29. experience: 0,
  30. level: 1,
  31. },
  32. name: 'Paladin',
  33. },
  34. sorceror: {
  35. base: 'sorceror.glb',
  36. path: './resources/characters/',
  37. anchors: {
  38. rightHand: 'RightHandIndex1',
  39. },
  40. nameOffset: 10,
  41. attack: {
  42. timing: 1.0,
  43. cooldown: 1.5,
  44. type: 'magic',
  45. range: 40,
  46. },
  47. scale: 4.0,
  48. inventory: {},
  49. stats: {
  50. health: 100,
  51. maxHealth: 100,
  52. strength: 10,
  53. wisdomness: 200,
  54. benchpress: 3,
  55. curl: 17,
  56. experience: 0,
  57. level: 1,
  58. },
  59. name: 'Sorceror',
  60. },
  61. warrok: {
  62. base: 'warrok.glb',
  63. path: './resources/characters/',
  64. anchors: {
  65. rightHand: 'RightHandIndex1',
  66. },
  67. nameOffset: 16,
  68. attack: {
  69. timing: 1.5,
  70. cooldown: 2.6,
  71. type: 'melee',
  72. range: 15,
  73. },
  74. scale: 8.0,
  75. inventory: {},
  76. stats: {
  77. health: 1000,
  78. maxHealth: 1000,
  79. strength: 200,
  80. wisdomness: 4,
  81. benchpress: 3,
  82. curl: 200,
  83. experience: 0,
  84. level: 1,
  85. },
  86. name: 'Monster Guy',
  87. },
  88. zombie: {
  89. base: 'zombie-guy.glb',
  90. path: './resources/characters/',
  91. anchors: {
  92. rightHand: 'RightHandIndex1',
  93. },
  94. nameOffset: 8,
  95. attack: {
  96. timing: 1.0,
  97. cooldown: 3.0,
  98. type: 'melee',
  99. range: 10,
  100. },
  101. scale: 4.0,
  102. inventory: {},
  103. stats: {
  104. health: 20,
  105. maxHealth: 50,
  106. strength: 25,
  107. wisdomness: 4,
  108. benchpress: 3,
  109. curl: 20,
  110. experience: 0,
  111. level: 1,
  112. },
  113. name: 'Zombie',
  114. },
  115. };
  116. const _WEAPONS_DATA = {
  117. 'weapon.axe1':
  118. {
  119. type: 'weapon',
  120. damage: 3,
  121. renderParams: {
  122. name: 'Axe',
  123. scale: 0.125,
  124. icon: 'war-axe-64.png',
  125. },
  126. },
  127. 'weapon.sword1':
  128. {
  129. type: 'weapon',
  130. damage: 3,
  131. renderParams: {
  132. name: 'Sword',
  133. scale: 0.125,
  134. icon: 'pointy-sword-64.png',
  135. },
  136. },
  137. 'weapon.hammer1':
  138. {
  139. type: 'weapon',
  140. damage: 3,
  141. renderParams: {
  142. name: 'Hammer_Small',
  143. scale: 0.125,
  144. icon: 'hammer-64.png',
  145. },
  146. },
  147. };
  148. return {
  149. CHARACTER_MODELS: _CHARACTER_MODELS,
  150. WEAPONS_DATA: _WEAPONS_DATA,
  151. };
  152. })();