RealTime Adaptive Agents for AI-Survival Games
LiveMind is a survival game that leverages an AI-powered backend to provide immersive and intelligent guidance to players. The AI backend integrates with Azure OpenAI services to deliver dynamic and context-aware responses, enhancing the gameplay experience.
- Python 3.8 or higher.
- Install dependencies using
pip. - Azure OpenAI API credentials.
-
Clone the repository:
git clone <repository_url> cd LiveMind
-
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables:
- Create a
.envfile in theai_backend/directory. - Add the following variables:
AZURE_OPENAI_API_KEY=<your_api_key> AZURE_OPENAI_ENDPOINT=<your_endpoint> AZURE_OPENAI_DEPLOYMENT_NAME=mygpt-4.1 AZURE_OPENAI_API_VERSION=2024-12-01-preview MAX_HISTORY_LENGTH=10
- Create a
LiveMind/
├── ai_backend/
│ ├── __init__.py
│ ├── api.py
│ ├── azure_llm.py
│ ├── config.py
│ ├── env.yml
│ ├── main.py
│ ├── memory.py
│ ├── models.py
│ ├── prompt_engine.py
│ ├── README.md
│ ├── ws_adapter.py
│ └── __pycache__/
├── src/
│ └── game/
│ ├── actors/
│ │ ├── animals/
│ │ └── player/
│ ├── assets/
│ │ ├── audio/
│ │ ├── meshes/
│ │ └── textures/
│ ├── bulletins/
│ ├── game/
│ │ ├── configs/
│ │ └── managers/
│ ├── items/
│ ├── objects/
│ ├── particles/
│ ├── resources/
│ │ ├── item_resources/
│ │ └── materials/
│ ├── stages/
│ └── ui/
├── README.md
└── LICENSE
-
Start the AI backend:
uvicorn ai_backend.main:app --reload
-
Access the game and AI backend integration as per the game setup.
- AI-powered guidance for survival gameplay.
- Integration with Azure OpenAI for dynamic responses.
- Real-time interaction using WebSocket.
- Create a new branch for your feature:
git checkout -b feature/your-feature-name
- Commit your changes with a meaningful message.
- Push the branch and create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.