I have created a ZIP archive which contains:
Download the ZIP archive and copy contents in your coderdojo_tramore directory.
The game design follows the usual design:
invaders, ship_rockets, blocks etc.isAlive to track which objects should be removed from the game.update and draw functions, we have function setup_level to constrct a level.We got as far as:
ship and get it to respond to user input - direction and fire. To fire we needed to
rocket and set its position to match the ship.rocket.isAlive to be True.rocket to the ship_rockets list.update we added code to
rocket in ship_rockets.draw added code to draw each rocket in ship_rockets.update we added code to control how fast the ship can fire rockets.At end of this session, we got something like space_invaders.py
Our starting point is last's week end point. If you don't have that code you can download my copy: space_invaders.py. Note that you first need to download and extract the ZIP archive containg the game assets.
Our plan for this session is to: