My version of a space invaders game that I made using pygame. The aim of making this game was to explore the pygame module and to implement it in an Object Oriented Manner. Each line of code is accompanied by a comment to explain it better.
The files in the repository are :
The Description file containing details about the repository. The file that you looking at right now.
The __init__.py file is to make Python treat directories containing the file as packages
This file contains the class templates for the various objects in the game i.e. ObjectTemplate class, Enemy class, Player class and Bullet class
.
This file contains the global variables that are used in the game such as PAGE_WIDTH, PAGE_HEIGHT,
etc.
This file is contains the game and its working. To play the game, use -
python3 main.py
This file contains the respective packages needed to be installed. To install the respective packages, use -
pip3 install -r requirements.txt
or
pip install -r requirements.txt
This directory contains the images for game icon, object images and README File.
- Icons: https://www.flaticon.com/
- Reference: https://www.youtube.com/watch?v=FfWpgLFMI7w by freeCodeCamp.org.