Skip to main content

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

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._key
  • pyda._rect, pyda._sprite, pyda._time, pyda._transform
  • pyda.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)

Uploaded Source

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

Hashes for dan_pyda-1.0.1.tar.gz
Algorithm Hash digest
SHA256 28bd55d6f8cac24a1efed4843482a98dc620004a4a851f274b8d3b305287427a
MD5 b99833c8a03d2cb2a1589746e764d1bd
BLAKE2b-256 252d2ed6f1c3e29e4c5ddde6c39cb2ebf5460140cdbc03f641593b4dfebaf88b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page