This commit is contained in:
2025-07-13 19:00:57 +02:00
parent 01a298e864
commit b78a164429
4 changed files with 26 additions and 5 deletions

12
shot.py Normal file
View File

@@ -0,0 +1,12 @@
import pygame
from circleshape import CircleShape
class Shot(CircleShape):
def __init__(self, x, y, radius):
super().__init__(x, y, radius)
def draw(self, screen):
pygame.draw.circle(screen, (255,255,255), (self.position.x, self.position.y), self.radius)
def update(self, dt):
self.position += self.velocity * dt