Inspiration
I am Meathill, a veteran programmer who loves both gaming and coding. Since the advent of AI, the paradigm of software development has shifted fundamentally. Projects that used to require massive time investments are now within reach.
While holding down a full-time job, I started using AI to "vibe code" side projects in my spare time. The release of Gemini 3.0 Pro was a tipping point—it vastly expanded our development capabilities, turning ambitious ideas into reality. I wanted to build a tool that empowers storytellers to create complex, interactive games without needing a game studio. This desire gave birth to Mui Gamebook.
What it does
Mui Gamebook allows users to rapidly transform a linear story into a complex, multi-branching, multi-ending narrative game using Gemini. It enables the creation of heavy-narrative experiences similar to titles like The Invisible Guardian or Love Is All Around.
Key features include:
- AI-Driven Creation: Creators simply provide the plot, visual style, and audio vibe. Gemini generates the complex narrative web, immersive assets, and copy.
- Deep Customization: Unlike simple "AI-controlled" generators, Mui Gamebook allows creators to intervene, tweaking plot directions to make the story more intricate and engaging.
- Variable System: To enhance gameplay, we support state variables. This allows for detective/mystery mechanics (e.g., if a player finds a "weapon" item, they can accuse the killer in the finale; otherwise, the bad guy escapes).
- Integrated Mini-Games: It’s not just clicking options. We’ve added mini-games like "Spot the Difference" to gate progression. Furthermore, we leverage Gemini to generate custom mini-games via natural language prompts (e.g., "Create a 'Catch the Golden Snitch' mini-game" for a Harry Potter fan game).
How we built it
This project was built with a philosophy of "95% Vibe Coding."
- Core Stack: We utilized Gemini as the intelligence engine and Antigravity for the framework.
- Workflow: I acted as the architect, while AI did the heavy lifting. I only stepped in to write code manually when the AI absolutely could not handle a specific edge case.
- Generative Logic: We use Gemini not just for text, but to structure the game logic and generate the code for embedded mini-games on the fly based on the story context.
Challenges we ran into
- Complex State Management: Moving from simple "Choose Your Own Adventure" text to a system that tracks inventory and variables (like finding a specific clue) was tricky to implement while keeping the AI generation consistent.
- Prompt Engineering for Logic: Ensuring Gemini understands exactly how to weave the "mini-game" logic into the narrative flow without breaking the immersion required significant tuning.
Accomplishments that we're proud of
- The "Vibe Coding" Success: Achieving a 95% AI-written codebase is a huge milestone for my personal workflow.
- The Mini-Game Generator: We are particularly proud of the ability to use a single sentence to generate a playable mini-game (like the Quidditch example) within the story. It adds a layer of interactivity that most text-based AI games lack.
- Variable-Based Storytelling: Successfully implementing a logic system where player choices and collected items genuinely alter the ending, making it a true game rather than just a story.
What we learned
- The Power of Gemini 3.0 Pro: We learned that with the right prompting and context, Gemini can handle complex architectural tasks, not just snippets of code.
- New Dev Paradigm: I learned to shift from a "coder" to a "director." The skill lies in guiding the AI to execute the vision, which is a liberating way to build side projects.
What's next for Mui Gamebook
- More Templates: Adding more pre-built mini-game types and narrative structures.
- Community Sharing: Allowing creators to publish their Gamebooks for others to play.
- Enhanced Media Generation: Further integration with video and image generation models to make the visual novel experience even more cinematic.
Built With
- antigravity
- cloudflare
- d1
- gemini
- next.js
- tailwindcss
- typescript

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