Task 2.4: Add a Game Title and App Icon

  1. Change the text that appears at the very top of your game window use a Pygame function pygame.display.set_caption("My game").
  2. Load an image using icon = pygame.image.load("images/game_icon.png")
  3. Use the Pygame function pygame.display.set_icon(icon) to set the image.

🚩 Checkpoint

  • Have your customised game title
  • Have your customised icon