8000 GitHub - tlaanemaa/aitopia: An LLM driven 2D game
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tlaanemaa/aitopia

Repository files navigation

Aitopia

A dynamic, AI-powered game world where characters come to life through LLM interactions. Characters move, speak, think, and interact in a minimalist, futuristic environment.

Features

  • 🎮 Interactive game world with AI-controlled characters
  • 🗣️ Text-to-speech for character dialogue
  • 🎯 Smart character positioning with collision avoidance
  • ⚙️ Configurable LLM settings (supports Ollama models)
  • 🎨 Minimalist, dark theme design
  • 📱 Responsive layout with mobile support

Prerequisites

Before running Aitopia, you need:

  1. Ollama installed and running on your machine
  2. A compatible LLM model pulled into Ollama, e.g.:
ollama pull llama3.2:3b
  1. Ollama configured to accept requests from Aitopia:
OLLAMA_ORIGINS=http://localhost:3000 ollama serve

Running

The easiest way to run Aitopia is using Docker:

docker run -p 3000:3000 ghcr.io/tlaanemaa/aitopia:latest

Then open http://localhost:3000 in your browser.

Configuration

  1. Click the settings gear icon in the top right
  2. Configure your Ollama endpoint (default: http://localhost:11434)
  3. Select your preferred model from the available models list
  4. Start interacting with the game!

Development

To run the project from source:

  1. Clone the repository:
git clone https://github.com/tlaanemaa/aitopia.git
cd aitopia
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open http://localhost:3000 in your browser

Usage

  • Type instructions in the input box to guide the story
  • Characters will respond, move, and interact based on the AI's interpretation
  • Each character has their own consistent voice and appearance
  • Watch the action log to follow the story progression

Built With

  • Next.js 14 (App Router)
  • TypeScript
  • Tailwind CSS
  • Langchain
  • Framer Motion
  • Web Speech API

License

MIT

About

An LLM driven 2D game

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 
0