An open API service indexing awesome lists of open source software.

https://github.com/mthaler/alien-invasion

Alien invasion game from Python Crash Course book
https://github.com/mthaler/alien-invasion

pygame python python-3 python-crash-course-book

Last synced: about 1 month ago
JSON representation

Alien invasion game from Python Crash Course book

Awesome Lists containing this project

README

          

# alien-invasion

Alien Invasion game from Python Crash Course book

![alt text](screenshots/alien_invasion.jpg "Alien Invasion")

## Add Pygame package when using PyCharm

The Alien Invasion game requires the Pygame package to be installed.
If it is missing, PyCharm will show the following error:

![alt text](screenshots/missing_pygame_package.jpg "Missing Pygame package")

To add the package for the Alien Invasion game, move the cursor to *import pygame* and press *Alt-enter*. The following popup menu should be shown:

![alt text](screenshots/install_pygame_package.jpg "Install Pygame package")

To install the Pygame package, select *Install package pygame*. This only works when using a correctly configured virtual environment.

## Installing Pygame

To install Pygame for the current user, enter the following command at a terminal prompt:

```
$ python -m pip install --user pygame
```

To install Pygame globally on Debian based systems, do:

```
# apt-get install python3-pygame
```

# Quitting the game

The alien invasion game will start in fullscreen mode. To exit the game, type 'q'