Case Study: Vibe Check!
Vibe Check! is a web-based multiplayer game designed for Twitch streamers to play with their chat, made in collaboration with streamer Jack at Jackdaw.tv.

Ideation
Wavelength is a game where teams compete to see who can most accurately guess a target on a scale based on their team member's prompt. (For an example of play, I recommend Polygon's gameplay video on YouTube. NB: this video contains coarse language.) In adapting the idea for this project, I wanted to encourage a more collaborative approach to the game. It's not streamer vs chat, it's streamer with chat. To encourage this collaborative atmosphere:
- I decided not to include scoring in the game. If the aim of the game were "the streamer wants to get a good score", this could encourage unsportsmanlike behaviour from chat players trying to sabotage that score. Instead, the challenge of the game becomes, "Can I get the streamer to guess correctly?"
- Since this game is intended for live chat audiences, I wanted the scales to encourage discussion and engagement. My friends and I generated a number of scales ranging from more straightforward ("hot to cold", "tall to short") to more subjective ("mountain to molehill", "gigantic anime sword to butter knife").
Tech Choices
This game required UI that responds in real time to the game state, so I elected to make a React SPA with an API for server-side data fetching and mutations. This does limit people who choose not to load JavaScript, or for whom JavaScript doesn't load for whatever reason. For this project, a plurality of visitors to the site will be coming from Twitch, a platform which straight up doesn't load anything but a skeleton if JavaScript is disabled. In this scenario, I think it's reasonable to assume a visitor will have JavaScript on, and if other issues arise they can be dealt with on a case-by-case basis.
I chose Tanstack Start as a framework since it provides everything I needed: routing capabilities, being able to define type-safe RPCs for data manipulation on the server, and compatibility with the other libraries I'd chosen for the project. It was also an excuse to give it a go, which is something I'd been trying to find for a little while!
Other libraries were chosen largely through pragmatism: this project needed a fairly quick turnaround, so I wanted to use tools I was familiar with and knew could get the job done.
The User Interface
The UI needed to meet two distinct requirements: being accessible on a wide variety of devices, and being a fun thing to look at for at least an hour of streaming time! Once I had the business logic of the game sorted, I spent time making mobile-first user interfaces for each route. I tried to avoid using breakpoints and media queries for this where possible, instead leaning on flexbox and grid to do most of the work. Where media queries were used, they were for adjusting text size, padding, or occasionally flex direction.

Once I had the overall layout for each route sorted, I then added a number of small design features and interactions with the aim of giving the game a whimsical feel. This included a slowly rotating radial 'spotlight' effect on the background, and a Minecraft-esque randomised subtitle on the home page referencing a number of in-jokes from the stream community. I also made the buttons respond with a little motion when hovered over.


Stream Safety
Twitch is a platform with fairly rigid ToS, and any public stream is a potential target for trolls. Any time you're getting user input there's risks you need to account for, and in this case one of the risks is "anything a malicious individual types in might then be displayed to several dozen people and risk the streamer punishment from the platform". Tooling to minimize risk and ensure stream safety was paramount for this project. There are multiple systems in place:
- A player is required to sign in with an active Twitch account via OAuth. This doesn't fully reduce the risk of trolling, but it introduces friction to participation and reduces the likelihood a bot or rogue agent will join a game. This also let me implement a feature to let the streamer block accounts making unsavoury prompts.
- A 'moderation preview window' which could be kept on a second monitor. This window shows the next prompt that will be shown, along with options to skip that prompt or block the user. This allows the streamer to vet content before it is shown to stream, and enact moderation quickly without need for a separate moderator.
- Each game instance uses a 'room code' system for access, inspired by the online party games of Jackbox Games. This means that players need to be watching a given stream in order to participate in the game, and further reduces the likelihood of an automated intruder.

Outcomes
After a few rounds of testing the system with my friends (and fixing the bugs and interface issues said testing surfaced), it was time for Jack to play the game with their stream audience. The stream was a resounding success (largely measured in terms of number of in-jokes created and number of good-natured arguments discussions spawned in the chat!).
Jack has brought the game back for multiple streams since its premiere, based on audience request.