summaryrefslogtreecommitdiff
path: root/asteroid.py
blob: 3ab16d9b9b252dbfd6988a0450e04124a874cdc8 (plain)
1
2
3
4
5
6
7
8
9
10
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, self.radius, 2)

    def update(self, dt):
        self.position += self.velocity * dt