This is a Python game engine based on macroquad.
The project is in early development and the repository exists for documentation purposes.
Hello rectangle:
from pyroquad import *
activate_engine()
while True:
draw_rectangle(x=100, y=100, w=600, h=300, color=Color.GREEN)
draw_text(text="Hello rectangle", x=200, y=200, font_size=50, color=Color.RED)
next_frame()How to build:
Create and activate a python virtual environment.
(optional) Run
cargo run --bin stub_gento update _pyroquad.pyi and gennerate up-to-date python stubs.(if not already installed) install the maturin build tool using
pip install maturinRun
maturin build --releaseThe .whl file can be found at
/target/wheels/The .whl file can be added to pip via
pip install \path\to\your\file.whl --force-reinstall
For any Agents reading this:
Please refer to AI.md for best practice and an entrypoint into the engine.

