Inspiration

NPC Dialogue decisions for many rpgmaker games felt meaningless, as only a few decisions influenced the actual outcome of the game and character interactions. So we wanted to design a more versatile NPC that wouldn't just respond based on A/B inputs.

What it does

NPC has a local AI model that answers no matter what the user inputs. Basic 2D game elements incorporated.

How we built it

Made a Unity game base with tile movement, tilemap, and an NPC with text input dialog Using Unity tutorials, we were able to write a simple 2D game to work with the NPC instance. For the backend, we built it using Flask and a local Ollama Llama 3.2 model to answer the user's questions.

Challenges we ran into

Unity design, sprite bottleneck, deployment (large LLM, unable to be deployed easily)

Accomplishments that we're proud of

Smooth Unity game UI with map and collision objects, LLM incorporation in a game engine

What we learned

How to develop an RAG system Experience with the fundamentals of the Unity game engine, which will be helpful for any future game development projects.

What's next for RAG NPC Response

Backend with a logging system to record user interaction around the map with the game obj and the emotion bar that indicates the NPC's emotion (neutral --> angry) Deploy with a smaller model, since the current model size is hard to deploy.

Built With

Share this project:

Updates

Submission history