import pygame
from pygame.sprite import Sprite
class Star(Sprite):
"""A class to represent a single star in the fleet."""
def __init__(self, ai_settings, screen):
"""Initialize the star and set its starting position."""
super(Star, self).__init__()
self.screen = screen
self.ai_settings = ai_settings
# Load the star image.
self.image = pygame.image.load('C:/Users/yoelp/Desktop/Python Works/Stars/images/star.bmp')
# converting the star to rectangle.
self.rect = self.image.get_rect()