summaryrefslogtreecommitdiff
path: root/circleshape.py
diff options
context:
space:
mode:
Diffstat (limited to 'circleshape.py')
-rw-r--r--circleshape.py3
1 files changed, 3 insertions, 0 deletions
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