Inspiration
As a kid spent hours playing Snake on a Nokia. As an adult spent hours playing multiplayer games and community experiments like r/place. Combine the two passions, built a community drive snake game :)
What it does
A simple game where user’s vote for a direction (Up, Down, Left, Right) and depending on which direction has the most votes at the end of the timer (20s), the snake will move in that direction.
How I built it
Built it entirely using Devvit’s powerful platform. It’s Redis feature enabled a lot of the backend infrastructure and we used web views for the custom UI.
Challenges we ran into
Using the Webview (hook) was a bit non-trivial and the interactive post creation was a bit wonky at first too. After some trial and errors, finally figured out a way to do the custom UI. The game loop and timers were a bit tricky given the backend constraints, but eventually figured out the right ways to leverage Redis to implement it all.
Accomplishments that I'm proud of
Fully functional community driven snake game, all using Devvit’s features to build the frontend and backend.
What I learned
Blocks vs webviews Syncing between webviews and backend Redis features to implement the backend
What's next for SnakeTogether
many ideas that didn’t get implemented:
- teams?
- Shrink/grow the board over time?
- Levels
- Upgrades
- Leaderboards (partially implemented)
- Stats (which direction was voted most)
Log in or sign up for Devpost to join the conversation.