|
@@ -12,19 +12,19 @@ export const [
|
|
|
},
|
|
|
dispatch,
|
|
|
] = createStore({
|
|
|
- gameId: "71925bd5-dc01-491a-8d94-9221cd222073",
|
|
|
- playerName: "asdf",
|
|
|
+ gameId: null,
|
|
|
+ playerName: null,
|
|
|
lastRound: {
|
|
|
- roundNum: 1,
|
|
|
+ roundNum: -1,
|
|
|
targetPoint: {
|
|
|
lat: 0,
|
|
|
- lng: -10,
|
|
|
+ lng: 0,
|
|
|
},
|
|
|
- score: 5000,
|
|
|
- totalScore: 25000,
|
|
|
+ score: -1,
|
|
|
+ totalScore: -1,
|
|
|
},
|
|
|
gameJoined: false,
|
|
|
- gameState: POST_ROUND,
|
|
|
+ gameState: PRE_GAME,
|
|
|
}, {
|
|
|
setPlayerName: ([set], playerName) => set({ playerName }),
|
|
|
goToLobby: ([set, get], gameId) => set({
|