From a00f4cf1eb4217483408dde11d9d0c7e763ab0a2 Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Fri, 20 Sep 2024 18:25:40 +0200 Subject: added ability to shoot --- circleshape.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'circleshape.py') diff --git a/circleshape.py b/circleshape.py index eb08882..0093b29 100644 --- a/circleshape.py +++ b/circleshape.py @@ -20,3 +20,6 @@ class CircleShape(pygame.sprite.Sprite): def update(self, dt): # sub-classes must override pass + + def collision_check(self, other): + return self.position.distance_to(other.position) <= self.radius + other.radius -- cgit v1.2.3