This commit is contained in:
2025-01-19 23:50:23 +02:00
parent a646ea7e0f
commit 0469021ff3
7 changed files with 237 additions and 3 deletions

16
shot.py Normal file
View File

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