summaryrefslogtreecommitdiff
path: root/shot.py
blob: 198b48e6a73a953a5f567bc8beb1d531853a4205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from constants import *
from circleshape import *

class Shot(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)

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