pygame-based game engine
Project description
PyDiamond
PyDiamond engine is a game engine for Python game developers.
The framework uses the popular pygame library.
Usage
Example with the minimal requirements:
from pydiamond.window.display import Window
def main() -> int:
w: Window = Window(title="my window", size=(800, 600))
with w.open():
while w.loop():
for event in w.process_events():
# do some stuff
pass
w.clear()
# draw your objects
w.refresh()
return 0
if __name__ == "__main__":
exit(main())
This code will open a small window.
Documentation
Coming soon. :)
Dependencies
PyDiamond is developed based on pygame and Python (obviously). In addition, some features of pygame are available with a specific version of the SDL.
Dependency version:
- CPython >= 3.10
- pygame == 2.1.2
- SDL >= 2.0.16
- SDL_image >= 2.0.0
- SDL_mixer >= 2.0.0
- Other python dependencies referred by
requirements.txt
Use the following command to install all the necessary dependencies
python3 -m pip install -r requirements.txt
Credits
Vendored-in packages
- Gradient module by DR0ID
- OrderedSet collection by rspeer
License
This project is licensed under the terms of the GNU General Public License v3.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydiamond-engine-1.0.0.dev2.tar.gz
(232.4 kB
view hashes)
Built Distribution
Close
Hashes for pydiamond-engine-1.0.0.dev2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28ba637bc615a41691aeb14a683a6f7d3b66586ec52a90de6c1cc7ff5a27cb37 |
|
MD5 | 643da5cc7002c49dcf388553f0a8bb58 |
|
BLAKE2b-256 | 7fdd2b6afc5d2e8dd10b85d4f086b26e8b144f5dd846b94fc1c7627fbb2dd408 |
Close
Hashes for pydiamond_engine-1.0.0.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a6dc709da02bad3fc87ee555f36f7f7e44546d86ff0a4ac021e854bb405d1ae |
|
MD5 | 8c6c4c98cffe557edb8caabf8042af89 |
|
BLAKE2b-256 | 708dbeeb30f676cc43144f55b10e7c18c7d705cd2ca547bb2e97bf4aed761018 |