This release is a pre-release and may not be stable for production use.
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.
Metadata
Release files for pydiamond-engine 1.0.0.dev3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pydiamond-engine-1.0.0.dev3.tar.gz | 244.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydiamond_engine-1.0.0.dev3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 526.5 kB
Release files / pydiamond-engine-1.0.0.dev3.tar.gz
| Download URL | pydiamond-engine-1.0.0.dev3.tar.gz |
|---|---|
| Size | 244.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27e2b1159f19813e34984706b47f9efb0ec5e3ad86e75dbf9b3c977074380f0c
|
|
BLAKE2b-256 checksum How to use checksums |
a0b2a7f0999c48691dae2cd6a9daaa2b5f9470c8cfb6e32b270d8b5959aaea8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / pydiamond_engine-1.0.0.dev3-py3-none-any.whl
| Download URL | pydiamond_engine-1.0.0.dev3-py3-none-any.whl |
|---|---|
| Size | 281.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6fd1012a95743c60c2d2d34ad8a46b9fce03e3e26becb4fd93721094321383b6
|
|
BLAKE2b-256 checksum How to use checksums |
08441d8abf1112c7797dd8b879fdd335807db2b0e863674ccc4eba6d6fae23f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|