Open source package for game AI/NPC behavior learning
Top 33.0% on sourcepulse
This package provides an interface between the Godot game engine and Python-based machine learning frameworks, enabling game developers and AI researchers to train complex behaviors for NPCs or game agents. It offers wrappers for StableBaselines3, Sample Factory, Ray RLLib, and CleanRL, supporting memory-based agents and both 2D and 3D games.
How It Works
The library facilitates reinforcement learning by acting as a bridge between a Godot game environment and Python RL algorithms. It exposes game states and actions through a defined interface, allowing agents trained in Python to interact with and learn within the Godot game world. This approach allows leveraging powerful, established RL libraries within the flexible and accessible Godot engine.
Quick Start & Requirements
pip install godot-rl
gdrl.env_from_hub -r edbeeching/godot_rl_JumperHard
).python examples/stable_baselines3_example.py --env_path=<path_to_game_executable> --experiment_name=<name> [--viz] [--onnx_export_path=<model_name.onnx>]
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
4 days ago
1 day