diff options
Diffstat (limited to 'shot.py')
| -rw-r--r-- | shot.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,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 + |
