summaryrefslogtreecommitdiff
path: root/asteroid.py
diff options
context:
space:
mode:
Diffstat (limited to 'asteroid.py')
-rw-r--r--asteroid.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/asteroid.py b/asteroid.py
new file mode 100644
index 0000000..c77618c
--- /dev/null
+++ b/asteroid.py
@@ -0,0 +1,11 @@
+from circleshape import *
+
+class Asteroid(CircleShape):
+ def __init__(self, x, y, radius):
+ super().__init__(x, y, radius)
+
+ def draw(self, screen):
+ pygame.draw.circle(screen, "white", self.position, 2)
+
+ def update(self, dt):
+ self.position += self.velocity * dt