Skip to content
Back to projects
GamesCompleted

Coffee, Cats & Cakes

An online co-op café game in which two players manage the same kitchen, synchronised through Supabase.

Barista station with grinder, espresso machine, steamer and brewer
Genre
Co-op management game
Players
2 players, online
Status
Completed
My role
Design & development

Technologies

  • Next.js
  • Supabase
  • PostgreSQL
  • Realtime Multiplayer
  • Game Design

Project overview

Coffee, Cats & Cakes is a browser-based café game where two players share barista and pastry-chef roles while managing the same order queue. I built my first real-time multiplayer experience by synchronising a host-controlled game state through Supabase.

Host-peer architecture and Supabase Realtime sync

The multiplayer layer runs on Supabase Realtime using a host-peer model where one player acts as the authoritative host and broadcasts state transitions to their partner.

Designing the sync protocol meant balancing bandwidth against consistency: broadcasting full state snapshots every tick added latency, while sparse updates risked desynchronising the kitchen between the two browsers.

I solved this by transmitting discrete domain events — ingredient pickups, station actions, order completions, and cat interventions — so both clients stay deterministic with minimal payload overhead.

Shared kitchen constraints and spatial division of labour

Gameplay revolves around a deliberate spatial constraint: two players share one kitchen, one as barista and one as pastry chef, watching the same order queue while unable to occupy the same station simultaneously.

When a ticket pairs an Americano with a Brownie, players have to coordinate who visits the pantry, who preps at the counter, and who hands off at the service window.

Because the kitchen is split across facing wall views — brew station, pantry, pastry counter, and service window — every camera switch costs time, encouraging players to batch recipe steps by location.

The service window
The service window where completed orders leave the queue alongside Duman’s score multiplier.

Three cats as dynamic difficulty modifiers

Each of the café’s three cats occupies a specific wall and acts as a distinct gameplay modifier that forces quick prioritisation decisions.

Duman naps by the service window and grants a ×1.5 score multiplier on deliveries while present; petting him extends his stay at the cost of prep time. Şeker blocks a pantry shelf and knocks held ingredients out of your hands. Gölge peers through the outside window, giving players a 1.5-second window to tap the glass before he sabotages active orders.

Driving the difficulty curve through distinct cat behaviours rather than sheer ticket volume kept cooperative communication lively throughout each shift.

Duman, Şeker and Gölge
Three cats, three walls, three different decisions.

Other projects