unpublishedGame.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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: "Unpublished Game",
  27. published: false,
  28. keepTitle: true,
  29. translations: [
  30. {
  31. language: "fr",
  32. name: "2 Jeu non publié",
  33. description: "Un jeu non publié pour tester",
  34. },
  35. ],
  36. playerCount: [1, 9],
  37. defaultName: "2 Unpublished Game",
  38. defaultLanguage: "en",
  39. defaultDescription: "A non published game",
  40. materialLanguage: "Multi-lang",
  41. minAge: "10",
  42. duration: [30, 90],
  43. imageUrl: "/game_assets/default.png",
  44. gridSize: 1,
  45. },
  46. id: "unpublished",
  47. };
  48. };
  49. export const unpublishedGame = genGame();
  50. export default unpublishedGame;