Inspiration
My inspiration was the traditional game of hangman which we used to play at school. The game was simple yet engaging. It had a strong call to action and a small learning curve. I modified the game to make it more interesting as well as fun for all age groups.
What it does
The goal is to guess the word. You have 5 shields at the start of the game. You then select letters that you think the word might have. Wrong guesses reduce your shields. The game ends when you have 0 shields left or when you have correctly guessed the word.
There is an option to get a hint, which would reduce your earned XP by half if you finally win.
Based on the tries it took to guess the word, you are awarded XP. Gaining XP allows you to level up and unlock more shields and a higher score multiplier. A leaderboard keeps track of all users' XP and allows users to compete with others.
How I built it
I used Devvit Blocks as my UI framework and utilized Redis as my database.
Challenges I ran into
I found out about the hackathon only a week before the deadline, which left me with very little time to build the game. Additionally, it was quiz week at my university, making it even more challenging to balance everything. I had to learn Devvit from scratch, as it was my first time working with it. It was also my first time using Redis and building something for Reddit. Initially I fount State management difficult. I had to spend a lot of time reading through the documentation due to the limited information available elsewhere. Implementing a retro arcade look was difficult yet something I wanted to pull off. Designing it using Devvit's limited UI components made me think out of the box for some designs
Accomplishments that we're proud of
- Successfully built a working game within the timespan of the hackathon.
- Learned and implemented Devvit from scratch.
- Did the entire project solo
What we learned
- How to use Devvit to build interactive Reddit experiences.
- Designing an engaging game loop that encourages user participation.
- Implementing Redis for fast and efficient data storage.
- Creating a structured game loop that is both fun and challenging.
- Implementing Schedulers to create automatic games every 8 hours
- Creating a leaderboard system to add a competitive edge.
What's next for Word Battle
- Implementing different game modes for variety.
- Optimizing gameplay for mobile phones
- Improving the hint system to make it more dynamic.
- Introducing achievements and badges for milestones.
- Expanding the leaderboard with more ranking features.
- Adding more retro arcade themes
Built With
- blocks
- devvit
- javascript
- redis
Log in or sign up for Devpost to join the conversation.