perfGame.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. translations: [
  29. {
  30. language: "fr",
  31. name: "1 Jeu test de performances et des extrèmes",
  32. description: "Un jeu pour tester",
  33. },
  34. ],
  35. playerCount: [1, 9],
  36. defaultName: "1 Performance game to test strange things and other",
  37. defaultLanguage: "en",
  38. defaultDescription: "A classic",
  39. materialLanguage: "Multi-lang",
  40. minAge: "10",
  41. duration: [30, 90],
  42. imageUrl: "/games/testgame.png",
  43. gridSize: 1,
  44. },
  45. };
  46. };
  47. export const testGame = genGame();
  48. export default testGame;