I wanted to experiment with integrating AI into NPC interactions — specifically for real-time conversations.
Instead of relying on traditional dialogue trees, I explored how AI could allow NPCs to respond dynamically to players.
To test this idea, I built a small experiment where players can interact directly with The Joker in real time, powered by the Gemini API.
Scope: Mini AI Experiment
Focus: NPC Conversations
System: Real-time AI responses
Character: The Joker
"WHY SO SERIOUS? LET'S CHAT!"
Project replaces scripted dialogue with AI-driven responses. Each interaction is unique, with no fixed dialogue paths. The NPC responds dynamically to player input instantly.
To maintain consistency, I designed a prompt-based personality system:
Typing + animation enhance immersion.
1. Player enters input
2. AI processes it instantly
3. Response generated
Instant processing for a seamless conversational experience.
Traditional NPCs are limited by scripts. AI allows for emergent storytelling and more immersive player experiences. This experiment explores the future of character-driven interaction design.
Interested in how the Gemini API integrates with Unity? Check out the implementation and prompt architecture on GitHub.
VIEW ON GITHUB