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

Lobby rework #844

Merged
merged 8 commits into from
Feb 10, 2023
Merged

Lobby rework #844

merged 8 commits into from
Feb 10, 2023

Conversation

sgfost
Copy link
Contributor

@sgfost sgfost commented Jan 26, 2023

The lobby has been rewritten to be a 5 person room that acts a waiting room for individual games. Includes a local room chat, options to start games with bots, etc. Of course gets a bump in readability/maintainability

On the client, a lobby index view and room view replace the dashboard and old lobby

TODO:

  • refactor remaining dashboard related code (dashboard service/routes, client-side api, etc.)
  • either remove/disable scheduling entirely or use it to schedule some sort of 'ranked' games in an attempt to gather players at once (disabled until a use is found for it)

full rewrite of the lobby room in order to transition from a mono-lobby
to multiple lobby instances that act as a waiting room for each
potential game room with considerably more player control than before

relies more on the room state than before + other steps to make the room
code more readable
- uses vuex store instead of mutating component properties

- replaces the blank screen with an index of active lobby rooms and
  buttons for joining, creating rooms, etc.

- adds a child route to lobby (/lobby/room/[roomId]) that lists clients
  connected to the room with further action buttons, a local chat, etc.
  allows for inviting by sharing the room url
- move message alerts and other dashboard items to the lobby index page
- this removes any way to view previous game stats but this will
  eventually be included in the leaderboard

TODO: rename or remove remaining dashboard related things,
or alternatively: rename top lobby view to dashboard

TODO: remove or reconcile schedule with new lobby setup somehow
- scheduling service still exists but is disabled until a use is
  determined for it
- use of the game schedule on the client was removed

- dashboard service/routes and client-side dashboard components removed or
  split into logical components for current or future use. specifically,
  player stats were moved to a leaderboard service and (currently
  unused) code dealing with surveys was given a survey service
Copy link
Member

@alee alee left a comment

Choose a reason for hiding this comment

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

playtest today at 2 went smoothly with no problems

@alee alee merged commit 4aa6417 into virtualcommons:main Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants