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.dev1.tar.gz
(217.5 kB
view hashes)
Built Distribution
Close
Hashes for pydiamond-engine-1.0.0.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5effec9f5bbcd9dfd3a664917db96e30f3f096ed90a2f8db0d3ffc6e9650b087 |
|
MD5 | ef530960b4b36fb7ae412404c06cdaa8 |
|
BLAKE2b-256 | dbdc1720ec3ecbbd6b27e8d044a82a893565ed1e38231610e3abe1e031dd9ca7 |
Close
Hashes for pydiamond_engine-1.0.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4df531ed1259dc80e954cbe5a4d68626aaca59f97edfadf7b34c55031abd180 |
|
MD5 | d5efe30d9138a45a8e40fda7f58c998b |
|
BLAKE2b-256 | f78a5061ff1cbfdb4d2c44e55cb7bb41f902806357094ec278af6d8c74c88a0f |