You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
626 B

import pygame
from classes.svg import Svg
from classes.towers.projectiles.projectile import Projectile
class Bubble(Projectile):
def __init__(self, startingPosition, angle, speed, damage, range):
# Convert SVG to PNG and return filename
pngFile = Svg().svgAsPng('images/bubble.svg', (10, 10))
# Import bubble image
surface = pygame.image.load(pngFile)
super(self.__class__, self).__init__(
startingPosition=startingPosition,
angle=angle,
speed=speed,
damage=damage,
range=range,
surface=surface,
)