Inspiration
Role-playing games like Dungeons and Dragons are a fun hobby for our team. We wanted to create a platform that could bring the excitement and creativity of these games to life in a new way. With the advancements in AI technology, we saw an opportunity to enhance the traditional RPG experience with AI-driven storytelling and visuals. This led us to build AdventureAI, a project that combines our gaming hobby with our application development skills.
What it does
AdventureAI is a text-based RPG that uses AI to facilitate gameplay. Players can log in, join or host games, and embark on adventures with friends. GPT generates the game's narrative and character stats, while DALL·E creates immersive images to accompany the story. Players can interact with the game by choosing actions like attacking or using special skills, and the game dynamically responds to their choices. The goal is to defeat the monster and emerge victorious, with the game's final moments captured in a climactic image.
How we built it
We built AdventureAI using a modern tech stack. The front end is developed with React and animated using Framer Motion, while the styling is completed with TailwindCSS. For the backend, we chose Convex to manage our game data and user interactions. The AI components are powered by OpenAI's GPT for text generation and DALL·E for image creation. Clerk handles authentication, and we used Bun as our package manager for its speed and efficiency.
- React + Vite
- TypeScript
- TailwindCSS
- Framer Motion
- Convex
- Bun
- OpenAI's GPT
- DALL·E
- Clerk
Challenges we ran into
Integrating multiple AI models into our game flow was challenging, as we had to ensure seamless communication between the text and image generation components. Balancing the game mechanics to make it fun and engaging while maintaining technical complexity was another hurdle. We also faced difficulties optimizing the real-time multiplayer aspect, ensuring that all players' actions were synchronized and reflected in the game state.
Accomplishments that we're proud of
We're proud of creating a fully functional AI-driven RPG that offers a unique and immersive experience with GPT and DALL·E to generate compelling narratives and visuals. We're also proud of our real-time multiplayer setup, which allows friends to play together seamlessly.
What we learned
Throughout this project, we learned a lot about working with AI models and integrating them into a web application with Convex. We gained insights into managing real-time data for multiplayer games and the importance of user experience in game design. This project also enhanced our skills in using our tech stack, particularly in creating dynamic and responsive UIs.
What's next for AdventureAI
We can continue refining AdventureAI by adding more features and expanding the game's capabilities. This includes introducing more stages to the game beyond a single boss fight, enhancing the AI's storytelling abilities, and improving the overall user experience.
Built With
- clerk
- convex
- css
- dall-e
- framer-motion
- gpt
- react
- typescript


Log in or sign up for Devpost to join the conversation.