Skip to content

This repository contains the game space invader made using pygame.

License

Notifications You must be signed in to change notification settings

Somonnoy44/SpaceInvader

Repository files navigation

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

  1. Install Python on your Personal Computer.
  2. You can also install Anaconda and Jupyter Notebook for easily running the ipynb notebook contained in this repository.
  3. Make sure that the following modules are available - a) pygame b) math c) random
  4. Open the main.py file or SpaceInvader.ipynb file.
  5. Now, the game can be played.

pic2 pic1

Gameplay

SamplePlay

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.