SpaceInvader
This repository contains the game space invader made using pygame.
The objective of SpaceInvader is to destroy attacking alien spacecraft.
How to run the Space Invader Game
- 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.
Gameplay
How to install Python
Visit the following link and see how to install python - https://www.tutorialspoint.com/how-to-install-python-in-windows
How to install anaconda
Documentation of installing anaconda is available in the following link - https://docs.anaconda.com/anaconda/install/windows/
How to install Jupyter Notebook
Visit the following link to install the Jupyter notebook - https://docs.jupyter.org/en/latest/install/notebook-classic.html
How to install pygame Module
Pygame can be installed by viewing the instructions given in the link - https://www.geeksforgeeks.org/how-to-install-pygame-in-windows/
How to install math Module
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.
How to install random Module
Random module is already installed in Python.
You just need to import random module in your program and work accordingly.