Metadata-Version: 2.1
Name: pygame-colliders
Version: 0.1.4
Summary: Polygon collider library for Pygame
Home-page: https://github.com/jtiai/pygame-colliders
License: BSD-3-Clause
Author: Jani Tiainen
Author-email: jani@tiainen.cc
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries :: pygame
Requires-Dist: importlib-metadata (>=1.0,<2.0); python_version < "3.8"
Project-URL: Bug Tracker, https://github.com/jtiai/pygame-colliders/issues
Project-URL: Documentation, https://pygame-colliders.readthedocs.io/
Project-URL: Repository, https://github.com/jtiai/pygame-colliders
Description-Content-Type: text/x-rst

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:

.. code-block:: python

    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.

