Term
Code
100

Which function creates the game window?

pygame.display.set_mode()

100

What does this code do? 

image = pygame.image.load("player.png")

Loads an image file into Pygame.

200

In Pygame, which function is used to draw a triangle?

pygame.draw.polygon()

200

What is the purpose of blit() in this code?

screen.blit(player, (50, 50))  

It places (renders) the player image onto the screen.

300

What is the purpose of pygame.image.load()?

It is used to load an image file into Pygame.

300

What is the role of this line? 

image = pygame.transform.scale(image, (50, 50))

Resizes the image to 50x50 pixels.