A package to make creating pygame applications much easier
Project description
PyGame Tools
This is a package designed to make development in pygame easier my creating some classes that handle alot of the loop
The most important class GameScreen
is a class that represents a 'screen' in the game and is meant to be inherited to be used.
class Example(GameScreen):
def __init__(self):
pygame.init()
real_size = Point(600, 600) # size of window itself
size = Point(real_size.x / 40, real_size.y / 40) # 1 pixel for every 40
super().__init__(pygame.display.set_mode(real_size), real_size, size)
def update(self):
pygame.draw.line(self.screen, (255, 255, 255), (0, self.window_size.y / 2), (self.window_size.x, self.window_size.y / 2))
example = Example()
example.run()
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pygame_tools-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffc9dc60f988450a90ecb6dfa5224a0bd2e31fc7e8d1693ea3121cd408e36553 |
|
MD5 | 10f8e693272babd1ffe54485ec15b15b |
|
BLAKE2b-256 | 4ac73f76379b7301e7fc5632e1e704dfefb39655a1cabe9a9100d8580fd77ef3 |