No project description provided
Project description
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.
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
pygame-colliders-0.1.3.tar.gz
(9.0 kB
view hashes)
Built Distribution
Close
Hashes for pygame_colliders-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6b03e854fdaa37292a25e0c043060961689a5361c8175244701dd5b8c5e91e6 |
|
MD5 | a16e62bc80e3cda848e0c6c25073e6f2 |
|
BLAKE2-256 | 1b042c90924742499dcf6b88387449d83eb99b75620b9b3623df00f390914e0c |