Twitch Trivia

An interactive 3D broadcast trivia game built in Unity with C# and Twitch IRC/API integration, enabling live stream audiences to vote on categories and answer questions via chat.

UnityC#GameTwitchIntegration

Overview

Twitch Trivia is an interactive 3D broadcast gameshow application developed in Unity with C#. Designed for live content creators, it connects a Unity game server directly to a broadcaster's Twitch channel so viewers can vote on trivia categories, submit answers in real time via chat commands, and compete on a live on-screen leaderboard.

Tools & Technologies: Unity, C#, Twitch IRC / API Integration, 3D Camera & Stage Systems


Technical Contributions & Systems Breakdown

1. Real-Time Twitch Chat & Bot Integration

  • Chat Command Ingestion: Engineered a C# Twitch client listener that parses incoming viewer chat messages in real time to register multiple-choice and true-or-false trivia submissions during active question windows.
  • Audience Category Voting: Implemented an interactive pre-round polling system allowing Twitch chat participants to vote on the upcoming trivia category.

2. Custom Question Pipeline & Leaderboard Management

  • Custom Question Authoring: Built a customizable data loader enabling streamers to import personalized question packs, configure round timers, and toggle between multiple-choice and true/false formats.
  • Persistent Session Leaderboard: Programmed a real-time scoring engine that ranks participating viewers by accuracy and response speed, complete with host controls to reset or export standings between rounds.

3. 3D Broadcast Studio & Multi-Camera Director

  • Virtual Gameshow Stage: Constructed a 3D broadcast scene where active questions, countdown timers, and answer distributions are rendered on stage screens for stream viewers.
  • Dynamic Camera Switching: Implemented multi-angle virtual cameras that cut between the host avatar, the main question board, and the leaderboard to emulate a live television gameshow production.

Key Features Summary

  • Custom streamer-authored question sets (Multiple Choice & True/False)
  • Real-time Twitch chat answer parsing and category voting
  • Live viewer leaderboard with host reset and round configuration controls
  • 3D virtual studio stage with automated multi-camera presentation angles

Direct Impact

  • High-Capacity Audience Interaction: Processing answers directly from Twitch chat allowed an unlimited number of concurrent stream viewers to participate simultaneously without external web apps or lobby caps.
  • Elevated Stream Production Value: Combining automated chat scoring with a 3D multi-camera stage turned standard chat trivia into an interactive broadcast show.