Term
Which function creates the game window?
pygame.display.set_mode()
What does this code do?
image = pygame.image.load("player.png")
Loads an image file into Pygame.
In Pygame, which function is used to draw a triangle?
pygame.draw.polygon()
What is the purpose of blit() in this code?
screen.blit(player, (50, 50))
It places (renders) the player image onto the screen.
What is the purpose of pygame.image.load()?
It is used to load an image file into Pygame.
What is the role of this line?
image = pygame.transform.scale(image, (50, 50))
Resizes the image to 50x50 pixels.