Inspiration

The Mantis and Player Explore Game was inspired by the desire to bring communities together fun and competitively. By leveraging Reddit’s platform, we aimed to create an engaging game where users can collaborate, compete, and strategize to dominate in a survival scenario.

What it does

The game allows Reddit communities to participate in a timed survival challenge. Players can join one of two factions: Mantis or Players. They can perform actions such as exploring the environment to gain points or defending their camp. The game tracks resources, population, defense, and points, and it determines a winner based on the accumulated points at the end of the timer. Events and challenges make the experience dynamic, with regular updates and eventual resets to keep the game fresh.

How we built it

We used:

  • Devvit SDK for building Reddit integrations.
  • State management using useState to handle game variables such as points, defense, and events.
  • useInterval for timer-based game logic and periodic state updates.
  • kvStore is used to persist data across sessions and calculate community scores.
  • Reddit API for interactions like creating posts and fetching subreddit details.
  • Custom UI components provided by Devvit to create an immersive experience.

Challenges we ran into

  • Time:Short time for development so lesser game features
  • State synchronization: Ensuring real-time updates across multiple users without data conflicts.
  • UI complexity: Designing an intuitive and responsive UI using Devvit components experience on the Reddit platform.
  • Persistent storage: Efficiently managing game state using the kvStore for scalability and reliability. Async was giving me errors if it was not prefetched first

Accomplishments that we're proud of

  • Successfully implementing a real-time, community-driven survival game on the Reddit platform.
  • Creating a dynamic and engaging game loop that encourages collaboration and competition.
  • Efficient use of Devvit SDK and Reddit APIs to integrate game mechanics with subreddit communities.
  • Designing a visually appealing and interactive user interface.

What we learned

  • How to leverage the Devvit SDK for building custom Reddit applications.
  • The importance of efficient state management and interval-based logic in real-time games.
  • Techniques for managing persistent data with kvStore and ensuring smooth resets between game sessions.
  • Best practices for integrating APIs and creating seamless user experiences on third-party platforms.

What's next for The Mantis and Player Explore Game

  1. Expanded gameplay features: Introducing new challenges, resource types, and community events to keep the gameplay engaging.
  2. Leaderboard integration: Adding a global leaderboard to display top-performing communities across Reddit.
  3. Syncing events: Ensuring successful exploration events make the antagonizing community lose points in KvStore to make the game more fun
  4. Mobile optimization: Enhancing the experience for mobile Reddit users.
  5. Custom subreddit themes: Allowing subreddits to personalize their game experience with unique assets and rules.

Built With

Share this project:

Updates