the map do be walkin' doe
The game is playable on https://mapwalk.tk
- Node.js
Install all the necessary NPM packages for both the server and client by running npm i in their respective directories.
To run the server, run npm run dev in the server/ directory.
To build the client, run npm run build in the client/ directory.
ServerLobbyJoined : { lobbyID: string, players: PlayerData[] }- The lobby connection is fully established.ServerLobbyNewPlayer : { player: PlayerData }- A new player establishes a connection to the lobbyServerLobbyChangeColor : { color: string, socketID: string }- A player changes their colorServerLobbyKick : { socketID: string }- The player identified bysocketIDgets kickedServerLobbyKicked : void- The receiving player gets kickedServerLobbyMakeHost : { socketID: string }- A new host identified bysocketIDhas been selectedServerLobbyChatMessage : { authorSocketID: string, username: string, content: string }- Someone sends a chat messageServerLobbyStartGame : { settings: GameSettings, objects: MapObjectData[], playerCoords: Record<string, L.LatLng>, playerOrder: string[], playerSettings: PlayerData[] }- The host starts the gameServerLobbySettingsChanged : { settings: GameSettings }- Game settings have been changed by the hostServerLobbyUserDisconnected : { socketID: string }- A user disconnected
P2PAddPeerP2PIceCandidateP2PSessionDesc
connectChatbotVerifyAnswerResponsedisconnect
PlayerMovePlayerRestNextTurnQuestionAnswerGameStateGameEndRestaurantVisitedPlayerHungry