Free Friday

I’m almost finished with SPACE INVADERS. The game was very enjoyable, and I had a great time playing it. I thank the teacher and the instructor for their help.

This is some of the code.

This code loads the image..

RED_SPACE_SHIP = pygame.image.load(

    os.path.join("assets", "pixel_ship_red_small.png"))

GREEN_SPACE_SHIP = pygame.image.load(

    os.path.join("assets", "pixel_ship_green_small.png"))

BLUE_SPACE_SHIP = pygame.image.load(

    os.path.join("assets", "pixel_ship_blue_small.png"))

YELLOW_SPACE = pygame.image.load(  

 os.path.join("assets", "pixel_ship_yellow.png"))

RED_LASER = pygame.image.load(os.path.join("assets", "pixel_laser_red.png"))

GREEN_LASER = pygame.image.load(os.path.join("assets", "pixel_laser_green.png"))

BLUE_LASER = pygame.image.load(os.path.join("assets", "pixel_laser_blue.png"))

YELLOW_LASER = pygame.image.load(

    os.path.join("assets", "pixel_laser_yellow.png"))

BG = pygame.transform.scale(pygame.image.load(

   os.path.join("assets", "background-black.png")),  (WIDTH, HEIGHT))


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *