Metadata-Version: 2.4
Name: collide_circle
Version: 0.1.3
Summary: A simple Pygame utility for rectangle-circle collision detection.
Home-page: https://github.com/austinewoody/collide_circle
Author: Austine Onwubiko
Author-email: austineonwubiko@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# collide_circle

A simple Pygame utility for detecting collisions between rectangles and circles.

## 📦 Installation

Install from PyPI (after publishing):

```bash
pip install collide_circle





#Or install locally (from source):
pip install .




#Usage

import pygame
from collide_circle import rect_collides_with_circle

# Example Pygame setup
rect = pygame.Rect(100, 100, 80, 60)
circle_center = (150, 120)
circle_radius = 40

if rect_collides_with_circle(rect, circle_center, circle_radius):
    print("Collision detected!")


#Function

rect_collides_with_circle(rect, circle_center, circle_radius)




from collide_circle_package import circle_collides_with_circle

# Define two circles
circle1 = (100, 100, 30)  # x, y, radius
circle2 = (130, 100, 20)

# Check for collision
if circle_collides_with_circle(*circle1, *circle2):
    print("Circles are colliding!")
else:
    print("Circles are not colliding.")

#function

circle_collides_with_circle(x1, y1, r1, x2, y2, r2) -> bool
