Inspiration
NEON SWARM started as my standalone browser survival game: you steer a tiny ship, your weapons fire on their own, and the swarm keeps coming. It was fun alone, but survival games are best when you can compare runs. Reddit's daily format turned that into the core idea: one swarm per day, the same for everyone, so every comment thread becomes "how long did you last?".
What it does
- Every day at 00:00 UTC a new seeded run is born. Same enemy waves, drops, events and level-up offers for every player on Reddit.
- Daily twist picked from the date: Horde Day, Glass Cannon, Iron Swarm, Rush Hour, Blood Moon or Still Night.
- Play: drag anywhere (or WASD) to move; weapons fire automatically. Collect XP gems, pick 1 of 3 upgrade cards per level (new weapons, upgrades, evolutions), survive swarm rings, elites, meteor storms and a boss.
- Fair daily mode: no permanent upgrades, no hero or stage select - everyone starts as VOLT at stage 1.
- Never stand still: camping corrupts the ground under you, and after 4:00 "the swarm hungers" so every run ends and skill decides the board.
- Leaderboard in the post: today's top players, your rank, your best, your streak and yesterday's champion are visible before you even press play.
- Reddity loop: one tap posts your best run as a comment on today's post. A scheduled job creates the new daily post, pins it and comments the twist plus yesterday's champion.
- Lifetime rank and the Codex of discovered enemies follow you across devices (stored on Reddit).
How I built it
Devvit Web: an inline splash (splash.html) and the full game in expanded mode (game.html). The game is plain Canvas 2D and Web Audio - every sprite and sound is generated in code. The daily seed is a mulberry32 PRNG from the UTC date, reseeded at the start of every attempt. The server (Node on Devvit) stores daily leaderboards in Redis sorted sets, streaks, shares and player profiles, and a scheduler cron (5 0 * * *) posts each day. Balance was tuned with headless Chrome simulations: an idle player dies in about 20 seconds, a skilled kiting bot reaches 4-5 minutes.
Challenges
- Reddit's web view CSP blocks inline scripts, so the whole game had to be moved into external files.
- A global pointer handler swallowed taps on the pause button.
- An idle player could survive far too long in an endless design - fixed with the corruption zone and the 4-minute hunger clock.
- localStorage is not reliable in the web view, so progress now lives in Redis.
What I learned
Daily games are less about content volume and more about a shared moment: the same seed, a visible board and a reason to comment.
What's next
Weekly boss days, cosmetic ship skins, and a "ghost" of the daily leader to race against.
Ported game: NEON SWARM existed before the hackathon; during the hackathon it was rebuilt for Devvit with the daily seed, fairness mode, modifiers, leaderboards, streaks, sharing, scheduled posts and the new balance.
Built With
- canvas
- devvit
- html5
- javascript
- node.js
- redis
- typescript
- web-audio-api