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.
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: github.com/jtiai/pygame-colliders/issues
Source Code: 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 Distributions
Built Distribution
Hashes for pygame_colliders-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f435832d266fb89c48b3f2eb464ab5d65d02caf7b1cfaa117d49c193a3f1b9fe |
|
MD5 | 637a72e00ec064689a0ea3e7f5812b0e |
|
BLAKE2b-256 | 6c896871e3abcc051f060f5992abe7db69bb453f5db7259bd29bb81566b9302f |