Make Game Easier with pygame and GameWidgets
Project description
GameWidgets Check PyPi for download
Install
Mac
- pip3 install GameWidgets
Windows
- pip install GameWidgets
Since Last update, GameWidget's Colors.py has been turned into Constants and is now in the main directory
to install write from GameWidgets.Constants import *
Also, the colors inside the Colors.py have been made part of a dictionary.
Test in progress
To use alignments, a test feature, there is a function in the Constants.py. Inside enter the screensize and the type of alignment. The alignments must be in order of y pos and x pos.
Example:
# This code returns The center of the screen
# The first tuple tells the screen size
# The second tuple shows where in Y and then X
pos = Alignment((500,500),("Center","Center"))
#Returns Tuple in x,y format
Warning:
The returned value is the exact, GameWidget's items are meant to be placed at topleft. When using, please change the position of the rect manually.
More info:
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
Built Distribution
Hashes for GameWidgets-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5feffbc1cb3e3c1b0fb31597971e6c59915f2d0598e0183461445d26203422ec |
|
MD5 | 2e03b34d7687276c3ce179d0ecfcd1c0 |
|
BLAKE2b-256 | 87f69859460a1b2ba78d73894a98ed552ca4126a12b35f9e9bf5e123908e76cf |