feat: complete the game

This commit is contained in:
Stevan Freeborn
2026-05-22 09:34:56 -05:00
parent 6f9672beb5
commit 2ad2dfb6f8
9 changed files with 317 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
import pygame
from circleshape import CircleShape
from constants import LINE_WIDTH
class Shot(CircleShape):
def __init__(self, x: float, y: float, radius: float) -> None:
super().__init__(x, y, radius)
def draw(self, screen: pygame.Surface) -> None:
pygame.draw.circle(screen, "white", self.position, self.radius, LINE_WIDTH)
def update(self, dt: float) -> None:
self.position += self.velocity * dt