backup 2022-12-25

This commit is contained in:
Oliver Akins 2022-12-25 17:40:13 -06:00
parent 720170f867
commit 4991f0eac8
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99
4 changed files with 216 additions and 22 deletions

View file

@ -2,9 +2,62 @@ import type { Board, FuelCard, PlayerData } from "common";
import { writable } from "svelte/store";
export const gameCode = writable<string>("");
export const state = writable<string>("main-menu");
export const state = writable<string>("game-movement");
export const myName = writable<string>("");
export const isHost = writable<boolean>(false);
export const players = writable<{[index: string]: PlayerData}>({});
export const players = writable<{[index: string]: PlayerData}>({
a: {
id: `a`,
name: `Player 1`,
host: true,
colour: { name: `green`, hex: `#00aa00` },
ship: { name: `shuttle`, id: `space-shuttle` },
fuel: {
"magnitude": 2,
"symbol": "Jo",
"name": "Jodium",
"type": "stationary"
}
},
b: {
id: `b`,
name: `Player 4`,
host: false,
colour: { name: `green`, hex: `#00a` },
ship: { name: `shuttle`, id: `rocket` },
fuel: {
"magnitude": 1,
"symbol": "Ar",
"name": "Argon",
"type": "movement"
}
},
c: {
id: `c`,
name: `Player 3`,
host: false,
colour: { name: "Magenta", hex: "#b7094c" },
ship: { name: `shuttle`, id: `rocket` },
fuel: {
"magnitude": 10,
"symbol": "Mg",
"name": "Magnesium",
"type": "movement"
}
},
d: {
id: `d`,
name: `Player 2`,
host: false,
colour: { name: "Purple", hex: "#7400b8" },
ship: { name: `shuttle`, id: `rocket` },
fuel: {
"magnitude": -2,
"symbol": "Kr",
"name": "Krypton",
"type": "movement"
}
},
});
export const board = writable<Board>(new Array(54).fill(null));
export const hand = writable<FuelCard[]>([]);