Inspiration
We wanted to create a game that integrates AI with interactive storytelling, allowing players to contribute to a story while AI generates visuals based on their inputs.
What it does
A Chain of Events is a multiplayer storytelling game where players fill in blanks in a story, vote on the best entries, and watch as AI generates a comic strip based on the completed story.
How we built it
We used FastAPI for the backend, WebSockets for real-time gameplay, GPT-4 to enhance and structure the story, and DALL·E 3 to generate comic-style images. The frontend updates players in real time and displays the final comic.
Challenges we ran into
Maintaining consistency in multiple AI-generated images was difficult, as DALL·E does not link panels together. We also had to fine-tune GPT prompts to ensure the AI-generated text was structured correctly for image generation.
Accomplishments that we're proud of
We successfully implemented real-time multiplayer interactions, automated AI-driven storytelling, and generated coherent comic strips based on player input.
What we learned
We gained experience in real-time WebSockets, prompt engineering for AI-generated content, and handling AI image generation challenges.
What's next for Chain of Events
Potential improvements include refining the AI-generated visuals, enhancing story structure, and optimising the game for a smoother multiplayer experience. We may also explore expanding the game into a web or mobile app.
Built With
- css
- fastapi
- html
- javascript
- openaiapi
- python
- tailwind
- typescript
Log in or sign up for Devpost to join the conversation.