This repository contains the game space invader made using pygame.
The objective of SpaceInvader is to destroy attacking alien spacecraft.
- Install Python on your Personal Computer.
- You can also install Anaconda and Jupyter Notebook for easily running the ipynb notebook contained in this repository.
- Make sure that the following modules are available - a) pygame b) math c) random
- Open the main.py file or SpaceInvader.ipynb file.
- Now, the game can be played.
Visit the following link and see how to install python - https://www.tutorialspoint.com/how-to-install-python-in-windows
Documentation of installing anaconda is available in the following link - https://docs.anaconda.com/anaconda/install/windows/
Visit the following link to install the Jupyter notebook - https://docs.jupyter.org/en/latest/install/notebook-classic.html
Pygame can be installed by viewing the instructions given in the link - https://www.geeksforgeeks.org/how-to-install-pygame-in-windows/
the math module comes packaged with the standard Python installation.
So, it is a built-in Python module, and to use it you just need to import it.
Printing the type() of math will tell you that it is a module.
Random module is already installed in Python.
You just need to import random module in your program and work accordingly.