Skip to content

Ludwig-000/pyroquad

Repository files navigation

Pyroquad

This is a Python game engine based on macroquad.

The project is in early development and the repository exists for documentation purposes.


Featuring 2D:

2D Screenshot

and 3D:

3D Screenshot

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:

  1. Create and activate a python virtual environment.

  2. (optional) Run cargo run --bin stub_gen to update _pyroquad.pyi and gennerate up-to-date python stubs.

  3. (if not already installed) install the maturin build tool using pip install maturin

  4. Run maturin build --release

  5. The .whl file can be found at /target/wheels/

  6. 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.

About

Cross-platform python game engine, based on 'Macroquad'.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors