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
- Host: GitHub
- URL: https://github.com/mthaler/alien-invasion
- Owner: mthaler
- Created: 2021-03-23T08:53:00.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-03T13:03:42.000Z (about 5 years ago)
- Last Synced: 2025-04-09T15:57:43.292Z (about 1 year ago)
- Topics: pygame, python, python-3, python-crash-course-book
- Language: Python
- Homepage:
- Size: 215 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# alien-invasion
Alien Invasion game from Python Crash Course book

## 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:

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:

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'