This project uses:
- gdext for Godot Rust bindings
- RustPython to interpret the Python code
Much thanks to the contributors to both of those projects!
This project would NOT be possible without their amazing work!
The goal of this project is to allow for Python scripting in Godot, without the need for GDNative or any other external dependencies.
This allows for Python programming inside of Godot, which can enable rapid prototyping, or building games that require (or desire) reprogrammable components.
To setup this project, you must follow these steps:
- Install rust.
- Run
cargo build
in thegodot_python
directory. - Open the Godot project and run the
test_scene.tscn
scene.
To run the project in a browser, it should just work, as the WASM package is downloaded from the cdn directly (and doesn"t require any additional building on your part).
This project is definitely not finished. Here are some things that need to be done:
- Implementing more robust loading of Python files, such as an entire file tree, instead of loading individual modules
- Building out a way to install dependencies from within Godot (ideally using something like pip)