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.0.tar.gz (32.9 kB view details)

Uploaded Source

File details

Details for the file dan_pyda-1.0.0.tar.gz.

File metadata

  • Download URL: dan_pyda-1.0.0.tar.gz
  • Upload date:
  • Size: 32.9 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.0.tar.gz
Algorithm Hash digest
SHA256 e0734091acea41999f96b4d873188ea10dd685d87cabd9bfc6534c57d6cd817b
MD5 dda0e6b73ab155dafce1885f14a5ed6e
BLAKE2b-256 b89da1cfb41728c791bc52cb1f73b47ac969cbff3f449cd6e09de7845e90e795

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

1 file

This release

1.0.0 This release

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