Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Join a game #38

Merged
merged 4 commits into from
Dec 5, 2019
Merged

Join a game #38

merged 4 commits into from
Dec 5, 2019

Conversation

ThunderDev1
Copy link
Collaborator

  • Player presence in game is based on socket connection: on connect, add to database, on disconnect remove.
  • Allow multiple independant game lobbies
  • Lobby host is the oldest lobby member
  • Use cooler random names
  • QnD styling for player display in lobby
  • Added some missing types
  • Update readme

client/src/pages/Lobby/Lobby.tsx Show resolved Hide resolved
client/src/components/PlayerBox/PlayerBox.tsx Outdated Show resolved Hide resolved
client/src/components/PlayerBox/PlayerBox.tsx Outdated Show resolved Hide resolved
client/src/components/PlayerBox/PlayerBox.tsx Show resolved Hide resolved
navigate(`/lobby/${game.id}`)
})
const createGame = async () => {
const postGameResponse: AxiosResponse<Game> = await axios.post(`/games`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, can we also provide an error type ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No specific errors to catch here, maybe inside a global error handler.

client/src/pages/Lobby/Lobby.tsx Show resolved Hide resolved
server/Data/video-game-characters.txt Show resolved Hide resolved
- Add missing key prop
- Make isHost and isSelf optional
@ThunderDev1 ThunderDev1 merged commit 6a937e6 into master Dec 5, 2019
@ThunderDev1 ThunderDev1 deleted the task/3-join-a-game branch December 5, 2019 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants