summaryrefslogtreecommitdiff
path: root/asteroid.py
blob: c77618cd79e99d82032ff9b467dede432374ecac (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, 2)

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