Inspiration
We wanted to create a game that felt like a "daily ritual" for Reddit communities, similar to Wordle but for speed and reflexes. The classic "endless runner" is fun, but giving everyone the exact same obstacles every single day turns a solitary game into a massive community competition.
What it does
Reddit Daily Race is an interactive 3D racing game where players must survive a 60-second obstacle course.
- The Twist: Every player in the world faces the same seeded track today.
- The Goal: Dodge obstacles, maximize your score, and climb the daily leaderboard before the seed resets at midnight.
How we built it
We integrated a high-performance Three.js rendering engine into the Reddit Developer Platform (Devvit).
- Web Views: Used to host the graphics-intensive scene inside Reddit.
- Seeded RNG: Implemented a custom Mulberry32 algorithm rooted in the current date ($Seed = YYYYMMDD$) to guarantee deterministic track generation.
- Redis: Leveraged Reddit's native storage to persist high scores and manage a global sorted leaderboard.
Challenges we ran into
- Legacy Integration: Adapting an older Three.js script that used traditional
<script>tags into a modern Devvit/Vite build system required careful asset management and absolute path routing. - Iframe Focus: We encountered a bug where keyboard events wouldn't register inside the Reddit app; we solved this by implementing a "force-focus" wrapper that captures hardware events the moment a user interacts with the post.
- Mobile Parity: Ensuring the car felt as responsive on a touchscreen as it did on a keyboard.
Accomplishments that we're proud of
- Successfully wrapping a 3D engine inside an interactive Reddit post with zero lag.
- Implementing a shared community experience where "Today's Track" is a specific topic for discussion in the comments.
What we learned
We learned that the Reddit ecosystem is incredibly well-suited for "Daily" games. The built-in community threads provide the perfect "water cooler" for players to discuss strategies for the day's specific obstacle sequence.
What's next for it
- Custom Car Skins: Unlockable via Reddit's community currency or contributions.
- Multiplayer Ghosts: Racing against the translucent "ghost" of the top-ranked player of the day.
Built With
- html5
- mulberry32
- vite
Log in or sign up for Devpost to join the conversation.