Pygame Colliders
Pygame colliders will enhance your game or application to have more complex colliding system beyond standard Rect colliders in Pygame.
Despite the name colliders aren’t bound to Pygame and Pygame library is not prerequisite.
Documentation
Documentation is located at https://pygame-colliders.readthedocs.io/
Usage
Look how easy it is to use:
from pygame_colliders import ConcaveCollider, ConvexCollider
# Create colliders
collider_a_points = [(3, 3), (5, 3), (5, 4), (4, 4), (4, 5), (5, 5), (5, 6), (3, 6)]
collider_b_points = [(4.5, 3.5), (6, 2), (6, 4)]
collider_a = ConcaveCollider(poly_a_points)
collider_b = ConvexCollider(poly_b_points)
# Check collision
if collider_a.collide(collider_b):
print("Collision detected!")
Features
Collisions between
Installation
Install pygame colliders by running:
pip install pygame-colliders
Contribute
Issue Tracker: https://github.com/jtiai/pygame-colliders/issues
Source Code: https://github.com/jtiai/pygame-colliders
Support
If you are having issues, please let us know. We have a Discord channel located at : https://discord.gg/VXVRPxe
License
The project is licensed under the 3-clause BSD license.
Metadata
Release files for pygame-colliders 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygame-colliders-0.1.4.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygame_colliders-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.3 kB
Release files / pygame-colliders-0.1.4.tar.gz
| Download URL | pygame-colliders-0.1.4.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6eeb4a06775bfb2721c5e727b792504e638640347f8514538732d2aa79f15e6
|
|
BLAKE2b-256 checksum How to use checksums |
2f179bf33cdfc68092cd900b4613af2a0198014a28321957fee3728a37d19ec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.3 CPython/3.9.0 Windows/10
|
Release files / pygame_colliders-0.1.4-py3-none-any.whl
| Download URL | pygame_colliders-0.1.4-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5abbc85d1959c35a5f787ee881a455f0de07e0537a791d81142da0a32fe25deb
|
|
BLAKE2b-256 checksum How to use checksums |
b17fb9abfe7f931a61cd5f4d9b7b350343998388d7704abe93d27b46cd4b2198
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.3 CPython/3.9.0 Windows/10
|