A powerful tool for analyzing game code using LLM (Language Learning Model) capabilities. This tool helps developers understand, analyze, and document game codebases through AI-powered code analysis.
- AI-powered code analysis using DeepSeek LLM
- Interactive code exploration
- Automatic dependency analysis
- Markdown documentation generation
- Context-aware code understanding
- File loading and analysis capabilities
- Python 3.x
- OpenAI API key
- DeepSeek API access
- Clone the repository:
git clone [your-repository-url]
cd game-code-analysis- Install the required dependencies:
pip install openai functioncall colorama- Configure your API keys:
- Open
llm/main.py - Add your DeepSeek API key in the
api_keyfield
- Open
game-code-analysis/
├── llm/
│ ├── main.py # Main LLM client implementation
│ └── prompt.md # System prompts and instructions
├── game/
│ └── assets/
│ └── typescript/ # Game code files
└── README.md
- Start the analysis:
python llm/main.py- The tool will:
- Load and analyze game code files
- Process dependencies
- Generate documentation
- Provide interactive code exploration
- Automatic loading and parsing of game code files
- Dependency analysis and visualization
- Context-aware code understanding
- Automatic markdown documentation generation
- Code structure visualization
- Dependency mapping
- User-guided code exploration
- Context-aware responses
- Dynamic file loading and analysis
The tool can be configured through the following files:
llm/main.py: Main configuration and API settingsllm/prompt.md: System prompts and analysis instructions
Contributions are welcome! Please feel free to submit a Pull Request.
[Your chosen license]
For support, please create an issue in the repository.