Friday, December 19, 2025

Week 8 Learning Summary

Week8 subject 1: Install PyGame

python –m pip install pygame

Week8 subject 2: The game class

A class must defined for each game, which contains:

  • an initialiser which calls pygame.init();
  • a method .run_game() which is called to run the game.  It contains:
    • a while True loop for the game,
    • an event loop which process player events
    • pygame.display.flip() to draw the screen

Week8 subject 3: The ship class

A Ship class is added to manage your ship.  Then the game class must be updated to include controls related to the ship.

No comments:

Post a Comment