16 lines
373 B
Python
16 lines
373 B
Python
import circleshape
|
|
import pygame
|
|
import constants
|
|
|
|
class Shot(circleshape.CircleShape):
|
|
|
|
containers = []
|
|
|
|
def __init__(self, x, y):
|
|
super().__init__(x,y,constants.SHOT_RADIUS)
|
|
|
|
def draw(self,screen):
|
|
pygame.draw.circle(screen,(255,255,255),self.position,self.radius,2)
|
|
|
|
def update(self, dt):
|
|
self.position += self.velocity * dt
|