pydiamond-engine 1.0.0.dev3

Creator: bradpython12

Last updated:

Add to Cart

Description:

pydiamondengine 1.0.0.dev3

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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.