Building Trick or Take: An Open-Source Multiplayer Halloween Web Game on Cloudflare Workers & Agora RTC
Halloween is the perfect season for fast-paced, spooky multiplayer fun. To celebrate, we built and open-sourced Trick or Take —a real-time multiplayer browser party game where up to 6 players enter a haunted mansion, collect candy corn, cast spectral curses, and steal candy from rival players in frantic 60-second rounds.
🎮 Play Live : https://trickortake.com
🐙 GitHub Repository : https://github.com/zicojiao/trick-or-take (MIT License)
In this post, I want to break down the architectural choices, edge-native backend design, real-time voice integration, and client-side rendering pipeline that power Trick or Take.
1. Why Zero-Framework Vanilla Canvas 2D?
Modern web game development often jumps directly into heavyweight engines like PixiJS, Phaser, Three.js, or Babylon.js.…