PyGame package enables easy scaling of rect objects with an added viewer object and basic 2D functionality to sprite objects.
While most of the features have undergone cursory testing, the package is still in beta and continues to mature. One area where Vizier can benefit from improvement is its scaling system, which could use memoizing or caching to enhance its speed.
Vizier’s primary objective is to provide code for doing basic Pygame stuff that may be challenging to find elsewhere. The library's interface is general enough to be user-friendly, and we hope that it proves useful to anyone seeking such functionality.
One unique aspect of Vizier is that it subclasses pygame.rect but requires it to return all parameter values through a scalar. This implies the attributes always remain unscaled, and scaling isn't performed until needed, resulting in the calculation of scaling from an original, while not having to retain two objects in memory.
Vizier's Viewer provides a complete surface viewing system, utilizing a view surface and a group of sprites. It manages incoming events, scrolls the view rectangle, and scales the sprites and surface simultaneously, ensuring that everything is scaled together. Future expansions may add memoizing to scaling operations, eliminating the need for constant scaling for the system to operate efficiently.
Vizier's Sprites offer a basic 2D sprite object, providing subpixel tracking, an update method that takes speed and a destination and calculates a new position each loop, and a simple collision-blocking mechanism.
Version 0.5 Beta: N/A