spencerpogo / murdermystery

A web game built with Next.js, Typescript, and Go.
GNU Affero General Public License v3.0
17 stars 1 forks source link

Finish spectator implementation #81

Closed spencerpogo closed 3 years ago

spencerpogo commented 3 years ago

This would require a few steps:

  1. Creation of Game,addSpectatorUpdate on the backend which appends to Game.spectatorMsgs and sends the update to all of Game.spectators.
  2. Creation of Game.addSpectator which takes a melody Session, sends a BulkSpectatorUpdate with the content of Game.spectatorMsgs, and adds the session to Game.spectators.
  3. Handling of SpectatorUpdate and BulkSpectatorUpdate on the frontend.
  4. Rendering of spectator events on the frontend. This can probably just be a fixed-width log box.
spencerpogo commented 3 years ago

Backend implementation is now finished.

spencerpogo commented 3 years ago

Frontend seems to be done! Needs polish though...