This repository shows various examples on how Python can be used inside Godot by using the "Python for Godot" plugin. If you want to see an example on how to do a project with Python, you can look at the Dodge the Creeps example, which shows how the demo game from Godot, Dodge the Creeps, looks in Python. If you want to see how Python and GDScript can interoperate, look here: Godot-Python Interaction.
If you want to see how NumPy can be used in Godot to create a simple heightmap, look here: Heightmap.
- Python (Recommended version: 3.x)
- Godot (Recommended version: 4.4, based on plugin compatibility)
py4godotplugin
To set up the example projects, ensure you have Python installed. Then, run the following command in your terminal:
python -m venv venv
venv\Scripts\activate.bat
pip install -r requirements.txt
python setup_examples.pypython3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python setup_examples.pyThis script will download the latest release of py4godot and copy it to all the example projects.