Description
Allow viewers watching a battle to send floating emoji reactions (similar to Twitch/YouTube Live) that appear on screen for all viewers in real-time.
Details
- Reaction bar below the territory grid with 6-8 preset emoji buttons (e.g., 🔥 ⚡ 💀 🎉 👀 💪 🏆 😱)
- Floating animation: When clicked, the emoji floats upward across the territory grid with a fade-out animation, visible to all current viewers
- Rate limiting: Max 1 reaction per second per viewer (client-side throttle)
- Persistence: Reactions are ephemeral — not stored permanently, only broadcast to current viewers
- Implementation options:
- Simple (polling): Store recent reactions (last 10s) in Netlify Blobs, viewers poll every 2-3 seconds
- Advanced (SSE/WebSocket): Real-time push via Server-Sent Events from a Netlify Function
- Reaction counter: Small counter next to each emoji showing how many times it was sent in the last minute
Acceptance Criteria
Description
Allow viewers watching a battle to send floating emoji reactions (similar to Twitch/YouTube Live) that appear on screen for all viewers in real-time.
Details
Acceptance Criteria