I’m excited to share a project I recently built using Godot 4.x (C#) for the Google Gemma 3n Hackathon. It’s a 2D educational game prototype where NPCs are powered by a local large language model (Google’s Gemma 3n) running via Ollama — completely offline and private.
What it does:
- NPCs teach sustainable farming and botany through rich, natural-language dialogue
- Runs locally — no cloud or internet connection required
- Custom NPC component lets you configure system prompts and the AI model endpoint
- Designed as a proof of concept for offline-first AI-powered education
Tech stack:
- Godot 4.x (C#)
- Ollama local LLM server
- Gemma 3n model by Google
Links:
- GitHub: https://github.com/code-forge-temple/local-llm-npc
- Demo video: https://youtu.be/kGyafSgyRWA
I’d love to hear feedback from the community — especially about:
- Ideas for extending the NPC AI to other learning domains
- Ways to improve modularity or integration in Godot projects
- General thoughts on offline AI and local LLMs in games
Thanks for reading!