Skip to content

NPCs with Memory

Characters that remember what the player did and react to it.

Advanced48h2–4 people16/20 fit
TL;DR

Build NPCs with Memory for indie game developers in ~48h with 2–4 people. Stack: Phaser + LLM + Vector DB.

Why it wins: Agent memory made playable.

Build flow

01 · Problem
NPC dialogue is scripted and forgets everything.
02 · Solution
Give each NPC a memory store and personality; dialogue references past player actions.
03 · Build
  1. 1Small Phaser scene
  2. 2Event logging
  3. 3Memory retrieval
  4. 4Dialogue UI
04 · Demo
Steal from a shop → return later → shopkeeper remembers and reacts.

MVP checklist

  • NPC personalities
  • Event memory
  • Context-aware dialogue
  • Reputation meter

Tech stack

TechRole
PhaserGame engine
LLMLanguage model
Vector DBEmbedding search

Reference repos

Open-source projects you can build on. Links checked 2026-10-31.

Related ideas

More Gaming
  • Keep players in flow by adjusting difficulty from their performance

    Advanced22h1–2
    JavaScriptPhaserPython
    16/20
  • See, search, correct and delete what your agent remembers about a user

    Intermediate16h1–2
    Vector DBLLMNext.js
    15/20