123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import { nanoid } from "nanoid";
- const genGame = () => {
- const items = [...Array(2000)].map((e, index) => ({
- type: "rect",
- x: 10 + index,
- y: 10 + index,
- width: 100,
- height: 100,
- id: nanoid(),
- }));
- return {
- items,
- availableItems: [
- {
- groupId: "Group",
- label: "Rect",
- type: "rect",
- color: "#00D022",
- width: 80,
- height: 80,
- },
- ],
- board: {
- size: 4000,
- scale: 0.5,
- name: "Perf Game",
- published: true,
- translations: [
- {
- language: "fr",
- name: "1 Jeu test de performances et des extrèmes",
- description: "Un jeu pour tester",
- },
- ],
- playerCount: [1, 9],
- defaultName: "1 Performance game to test strange things and other",
- defaultLanguage: "en",
- defaultDescription: "A classic",
- materialLanguage: "Multi-lang",
- minAge: "10",
- duration: [30, 90],
- imageUrl: "/games/testgame.png",
- gridSize: 1,
- },
- };
- };
- export const testGame = genGame();
- export default testGame;
|