๐ŸŒ†AI Town Game Tutorial

๐Ÿ”ง What Is AI Town?

AI Town is a multiplayer simulation where characters (both humans and AI agents) walk around, start conversations, and engage in roleplay. The game runs on Convex, a full-stack development platform that powers the game engine, agents, and UI.


๐Ÿงฑ Core Architecture

AI Town is structured in four main layers:

Layer
Location
Purpose

Game Logic

convex/aiTown/

Manages player state, movement, conversations, etc.

Game Engine

convex/engine/

Runs the simulation, ticks forward in time, manages input processing.

Agents

convex/agent/

Controls AI behavior using LLMs, memory, and logic.

UI

src/

Uses pixi-react to display the town and let players interact.

Last updated