Files
bootdev_asteroids/shot.py

13 lines
352 B
Python
Raw Normal View History

2025-07-13 19:00:57 +02:00
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