Skip to main content

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:

https://GameWidgets-Website.superguy123456.repl.co

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

GameWidgets-0.1.8.tar.gz (12.9 kB view hashes)

Uploaded Source

Built Distribution

GameWidgets-0.1.8-py3-none-any.whl (21.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page