pyda
A custom, high-performance 2D game engine built with C (SDL2 backend) and Python. Zero Pygame dependency—pure raw speed and modular flexibility.
Requirements
- Python >= 3.8
- SDL2 development libraries (headers + lib)
- Linux/Debian/Ubuntu/Termux:
libsdl2-dev - macOS (Homebrew):
brew install sdl2 - Windows: install SDL2 and set include/lib paths or use vcpkg
- Linux/Debian/Ubuntu/Termux:
Installation (Editable Mode)
pip install --editable .
Or from source:
python setup.py build_ext --inplace
pip install .
Quick usage
import pyda
pyda.init()
# ... use pyda._core, pyda.gameplay, pyda.physics_engine, etc.
pyda.quit()
Core entry points live in pyda._core (re-exported from the top-level package). Other modules are available as:
pyda._draw,pyda._font,pyda._image,pyda._mixer,pyda._mouse,pyda._keypyda._rect,pyda._sprite,pyda._time,pyda._transformpyda.gameplay,pyda.physics_engine,pyda.geometry_engine,pyda.collision_engine,pyda.game_utils- Helpers:
pyda._math,pyda._text,pyda._bytes,pyda._datastruct
Build notes
The C extensions must match the PyInit_* / module names defined in the .c sources. SDL2-dependent modules are linked with -lSDL2.
License
See repository for license information.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dan_pyda-1.0.1.tar.gz
(40.2 kB
view details)
File details
Details for the file dan_pyda-1.0.1.tar.gz.
File metadata
- Download URL: dan_pyda-1.0.1.tar.gz
- Upload date:
- Size: 40.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28bd55d6f8cac24a1efed4843482a98dc620004a4a851f274b8d3b305287427a
|
|
| MD5 |
b99833c8a03d2cb2a1589746e764d1bd
|
|
| BLAKE2b-256 |
252d2ed6f1c3e29e4c5ddde6c39cb2ebf5460140cdbc03f641593b4dfebaf88b
|