godot-python

Godot-Python provides Python language support as a scripting module for the Godot game engine. It allows developers to use Python for game logic, leveraging its readability and extensive libraries within the Godot environment. The project is currently undergoing heavy refactoring to support Godot 4.

https://github.com/touilleMan/godot-python

Preview Image

Preview

Godot-Python: Integrating Python Scripting into Godot

Godot-Python is a GDNative module that enables the use of Python as a scripting language within the Godot game engine. This integration allows developers to leverage Python's syntax, extensive libraries, and large community for game development tasks.

Key Features

  • Python Integration: Seamlessly integrate Python scripts into your Godot projects.
  • GDNative Support: Built as a GDNative module, ensuring compatibility and performance.
  • API Bindings: Provides bindings for accessing Godot's API from Python scripts.
  • Cross-Platform Compatibility: Supports multiple platforms, including Linux, macOS, and Windows.

Getting Started

To start using Godot-Python, you can download it directly from the Godot asset library or the project's release page. The project requires Python 3.7 or higher and a C compiler. Setting up a virtual environment is recommended to manage dependencies.

Building from Source

Detailed instructions are provided for building the project from source on different operating systems, including installing necessary dependencies and using Scons to compile the module.

Usage and Examples

The repository includes examples demonstrating how to use Python scripts in Godot, such as defining classes, accessing Godot nodes, and implementing game logic. It also covers topics like exporting projects and using Python packages.

Current Status

The project is currently undergoing significant refactoring to support Godot 4. Development is focused on the godot4-meson branch. While the current codebase is incompatible with Godot 4, the goal is to provide a usable version in the near future.

Resource Details

library

touilleMan



3, 4