Skip to content

ayudaV/py4godot-examples

 
 

Repository files navigation

Introduction

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.

Prerequisites

  • Python (Recommended version: 3.x)
  • Godot (Recommended version: 4.4, based on plugin compatibility)
  • py4godot plugin

Installation

To set up the example projects, ensure you have Python installed. Then, run the following command in your terminal:

Windows

python -m venv venv 
venv\Scripts\activate.bat
pip install -r requirements.txt
python setup_examples.py

Linux or MacOs

python3 -m venv venv 
source venv/bin/activate
pip install -r requirements.txt
python setup_examples.py

This script will download the latest release of py4godot and copy it to all the example projects.

About

Small example projects for py4godot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 64.4%
  • GDScript 35.6%