- After Hours is a personal project designed to run on a home network, with a TV stage and browser-based phone controllers.
- The demonstration on this page is a recorded session with fictional player names.
Local multiplayer
After Hours
A local multiplayer game show. The TV is the stage and each player’s phone is a controller.
At a glance
- Problem
- Players should be able to join quickly and stay in sync while the TV runs the show.
- My contribution
- I built the game server, phone controllers, TV stage, and Android TV companion, and tested the experience on a Xiaomi Mi Box.
- Design decision
- Keep scoring and room transitions on the server, and ship the original renderer as the default after testing WebGL frame pacing.
- Evidence
- The 2.0 candidate passed the web and Android CI suites, including a ten-match browser soak. The video shows a local session.
On this page
Overview
A living-room game show built around one room, one TV, and up to eight phones.
Problem, context, and constraints
A living-room game needs to get everyone from the sofa to the first question quickly. Phones submit independently, while the TV shows a shared countdown, answer reveal, and scores.
- Keep unrevealed answers and authoritative state on the server.
- Support simple joins, local play and stable performance on television hardware.
My role and contribution
Independent product & software engineer
- Built the game engine and room lifecycle, the shared TV stage, phone controllers, and a Kotlin companion for Android TV.
- Added Quick Play and same-room rematches so repeat games can reuse the lineup and settings.
Architecture and system details
A single Node.js process owns live room state. Phone and TV clients receive updates tailored to their roles. SQLite stores completed match history and local profiles.
- Room code and QR
- Questions, reveals and scores
- Authoritative state and scoring
- Live events and SQLite history
- Private answer submission
- Separate player sessions
Key technical decisions
- Context
- The new renderer improved the presentation but still showed long frame intervals in full-match tests on a Xiaomi Mi Box.
- Choice
- Keep the original renderer as the default and make WebGL available as a preview.
- Tradeoff
- Players get the more predictable baseline while the richer renderer can be tested across longer runs.
- Context
- Downtime between answers accumulated across a full match.
- Choice
- Shorten selected reveal sequences while preserving the answer windows and Memory observation time.
- Tradeoff
- Each result still needs enough time to read on a shared screen.
Security, scaling, and reliability
- Model separate server-side views for the stage and controllers so players receive their own state without unrevealed answers.
Testing strategy
- The release candidate passed the web and Android CI jobs, including a ten-match browser soak.
- Tested play on a physical Xiaomi Mi Box with separate controllers and compared renderers across full matches.
Result and proof
- A scripted eight-round Competitive match went from 153.3 to 138.8 seconds under fixed input timings. This is a deterministic engine measurement.
- The candidate was tested as a local game with the Android TV companion and phone controllers.
Before
Repeat games required more setup and spent longer in reveal phases.
After
Quick Play starts a short show, rematches reuse the room, and selected reveals finish sooner.
Challenges, tradeoffs, and next steps
Hardest part: Coordinating shared timing and private player state while keeping the TV responsive.
Key learning: Full games on the target device exposed pauses that a short graphics probe missed.
- Validate the pace in household playtests and use full-match measurements before promoting the WebGL renderer.