perfGame.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import { nanoid } from "nanoid";
  2. const genGame = () => {
  3. const items = [...Array(2000)].map((e, index) => ({
  4. type: "rect",
  5. x: 10 + index,
  6. y: 10 + index,
  7. width: 100,
  8. height: 100,
  9. id: nanoid(),
  10. }));
  11. return {
  12. items,
  13. availableItems: [
  14. {
  15. groupId: "Group",
  16. label: "Rect",
  17. type: "rect",
  18. color: "#00D022",
  19. width: 80,
  20. height: 80,
  21. },
  22. ],
  23. board: {
  24. size: 4000,
  25. scale: 0.5,
  26. name: "Perf Game",
  27. published: true,
  28. keepTitle: true,
  29. translations: [
  30. {
  31. language: "fr",
  32. name: "1 Jeu test de performances et des extrêmes",
  33. baseline:
  34. "Un jeu pour tester les performances mais également les limites des différentes saisies. Le texte est tellement long qu'il doit être caché au final.",
  35. },
  36. ],
  37. playerCount: [1, 9],
  38. defaultName: "1 Performance game to test strange things and other",
  39. defaultLanguage: "en",
  40. defaultBaseline:
  41. "A very long baseline to show how it can going is someone wants to write a book.",
  42. materialLanguage: "Multi-lang",
  43. minAge: "10",
  44. duration: [30, 90],
  45. imageUrl: "/game_assets/default.png",
  46. gridSize: 1,
  47. },
  48. id: "perf",
  49. };
  50. };
  51. export const testGame = genGame();
  52. export default testGame;