less copy protection, more size visualization
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

324 строки
8.2 KiB

  1. function makeFen() {
  2. const views = {
  3. body: {
  4. attributes: {
  5. height: {
  6. name: "Height",
  7. power: 1,
  8. type: "length",
  9. base: math.unit(2.2428, "meter")
  10. },
  11. weight: {
  12. name: "Weight",
  13. power: 3,
  14. type: "mass",
  15. base: math.unit(124.738, "kg")
  16. }
  17. },
  18. image: {
  19. source: "./media/characters/fen/back.svg",
  20. bottom: 0.01,
  21. top: 0.93
  22. },
  23. name: "Body"
  24. },
  25. paw: {
  26. attributes: {
  27. height: {
  28. name: "Length",
  29. power: 1,
  30. type: "length",
  31. base: math.unit(20, "centimeter")
  32. },
  33. width: {
  34. name: "Length",
  35. power: 1,
  36. type: "length",
  37. base: math.unit(20, "centimeter")
  38. },
  39. area: {
  40. name: "Area",
  41. power: 2,
  42. type: "area",
  43. base: math.unit(0.04, "meter^2")
  44. }
  45. },
  46. image: {
  47. source: "./media/characters/generic/paw.svg"
  48. },
  49. name: "Paw"
  50. }
  51. };
  52. const entity = makeEntity("Fen", "Fen", views);
  53. entity.views.body.height = math.unit(1, "km");
  54. return entity;
  55. }
  56. function makeSofia() {
  57. const views = {
  58. front: {
  59. attributes: {
  60. height: {
  61. name: "Height",
  62. power: 1,
  63. type: "length",
  64. base: math.unit(183, "cm")
  65. },
  66. weight: {
  67. name: "Weight",
  68. power: 3,
  69. type: "mass",
  70. base: math.unit(80, "kg")
  71. }
  72. },
  73. image: {
  74. source: "./media/characters/sofia/front.svg"
  75. },
  76. name: "Front"
  77. },
  78. back: {
  79. attributes: {
  80. height: {
  81. name: "Height",
  82. power: 1,
  83. type: "length",
  84. base: math.unit(183, "cm")
  85. },
  86. weight: {
  87. name: "Weight",
  88. power: 3,
  89. type: "mass",
  90. base: math.unit(80, "kg")
  91. }
  92. },
  93. image: {
  94. source: "./media/characters/sofia/back.svg"
  95. },
  96. name: "Back"
  97. }
  98. };
  99. const entity = makeEntity("Sofia", "ZakuraTech", views);
  100. entity.views.front.height = math.unit(96, "feet");
  101. return entity;
  102. }
  103. function makeMarch() {
  104. const views = {
  105. front: {
  106. attributes: {
  107. height: {
  108. name: "Height",
  109. power: 1,
  110. type: "length",
  111. base: math.unit(7, "feet")
  112. },
  113. weight: {
  114. name: "Weight",
  115. power: 3,
  116. type: "mass",
  117. base: math.unit(100, "kg")
  118. }
  119. },
  120. image: {
  121. source: "./media/characters/march/front.svg"
  122. },
  123. name: "Front"
  124. }
  125. };
  126. const entity = makeEntity("March", "March-Dragon", views);
  127. entity.views.front.height = math.unit(2.98, "km");
  128. return entity;
  129. }
  130. function makeNoir() {
  131. const views = {
  132. front: {
  133. attributes: {
  134. height: {
  135. name: "Height",
  136. power: 1,
  137. type: "length",
  138. base: math.unit(6, "feet")
  139. },
  140. weight: {
  141. name: "Weight",
  142. power: 3,
  143. type: "mass",
  144. base: math.unit(60, "kg")
  145. }
  146. },
  147. image: {
  148. source: "./media/characters/noir/front.svg"
  149. },
  150. name: "Front"
  151. }
  152. };
  153. const entity = makeEntity("Noir", "March-Dragon", views);
  154. entity.views.front.height = math.unit(2.5, "km");
  155. return entity;
  156. }
  157. function makeOkuri() {
  158. const views = {
  159. front: {
  160. attributes: {
  161. height: {
  162. name: "Height",
  163. power: 1,
  164. type: "length",
  165. base: math.unit(7, "feet")
  166. },
  167. weight: {
  168. name: "Weight",
  169. power: 3,
  170. type: "mass",
  171. base: math.unit(100, "kg")
  172. }
  173. },
  174. image: {
  175. source: "./media/characters/okuri/front.svg"
  176. },
  177. name: "Front"
  178. },
  179. back: {
  180. attributes: {
  181. height: {
  182. name: "Height",
  183. power: 1,
  184. type: "length",
  185. base: math.unit(7, "feet")
  186. },
  187. weight: {
  188. name: "Weight",
  189. power: 3,
  190. type: "mass",
  191. base: math.unit(100, "kg")
  192. }
  193. },
  194. image: {
  195. source: "./media/characters/okuri/back.svg"
  196. },
  197. name: "Back"
  198. }
  199. };
  200. const entity = makeEntity("Okuri", "OrionMechadragon", views);
  201. entity.views.front.height = math.unit(100, "miles");
  202. return entity;
  203. }
  204. function makeManny() {
  205. const views = {
  206. front: {
  207. attributes: {
  208. height: {
  209. name: "Height",
  210. power: 1,
  211. type: "length",
  212. base: math.unit(7, "feet")
  213. },
  214. weight: {
  215. name: "Weight",
  216. power: 3,
  217. type: "mass",
  218. base: math.unit(100, "kg")
  219. }
  220. },
  221. image: {
  222. source: "./media/characters/manny/front.svg"
  223. },
  224. name: "Front"
  225. },
  226. back: {
  227. attributes: {
  228. height: {
  229. name: "Height",
  230. power: 1,
  231. type: "length",
  232. base: math.unit(7, "feet")
  233. },
  234. weight: {
  235. name: "Weight",
  236. power: 3,
  237. type: "mass",
  238. base: math.unit(100, "kg")
  239. }
  240. },
  241. image: {
  242. source: "./media/characters/manny/back.svg"
  243. },
  244. name: "Back"
  245. }
  246. };
  247. const entity = makeEntity("Manny", "Dialuca01", views);
  248. entity.views.front.height = math.unit(78, "feet");
  249. return entity;
  250. }
  251. function makeMan() {
  252. const views = {
  253. body: {
  254. attributes: {
  255. height: {
  256. name: "Height",
  257. power: 1,
  258. type: "length",
  259. base: math.unit(2, "meter")
  260. },
  261. weight: {
  262. name: "Weight",
  263. power: 3,
  264. type: "mass",
  265. base: math.unit(80, "kg")
  266. }
  267. },
  268. image: {
  269. source: "./man.svg"
  270. },
  271. name: "Body"
  272. }
  273. };
  274. return makeEntity("Man", "Fen", views);
  275. }
  276. function makeCharacters() {
  277. const results = [];
  278. results.push({
  279. name: "Fen",
  280. constructor: makeFen
  281. });
  282. results.push({
  283. name: "Sofia",
  284. constructor: makeSofia
  285. });
  286. results.push({
  287. name: "March",
  288. constructor: makeMarch
  289. });
  290. results.push({
  291. name: "Noir",
  292. constructor: makeNoir
  293. });
  294. results.push({
  295. name: "Okuri",
  296. constructor: makeOkuri
  297. });
  298. results.push({
  299. name: "Manny",
  300. constructor: makeManny
  301. });
  302. results.push({
  303. name: "Normal man",
  304. constructor: makeMan
  305. });
  306. return results;
  307. }