Este juego, es creado a partir del popular juego de arcade "Space Invaders". La mayoría del código es tomado del libro "Python Crash Course" de Eric Matthers. Dicho esto, se le han hecho algunas modificaciones estéticas y de usabilidad del juego.
Cambios estéticos:
- Se agregó boton Game Over
- Se cambió el color de fondo
- Se cambió la fuente
- La nave espacial ahora es una vacuna
- Los aliens ahora son virus covid-19
This game, Alien Invasion, is created after the popular "Space Invaders". Most of the code here is from Eric Matthes' "Python Crash Course", though I have added some gameplay and aesthetic changes.
Aesthetic Changes:
- Added a Game Over Button
- Changed background color
- Changed Font
- Changed ship, now is a vaccine.
- Changed the aliens, now they are covid-19 virus.
The only major game play changes include:
- Enemies are now able to shoot back
- Reduced the number of lives by one to make gameplay more challenging
- Added a feature that saves the high score so it isn't reset each time you start the game
Python 3 is required.
Pygame is required. To install it on Windows, you can use the command pip install pygame
.
To move the ship right or left, use the corresponding arrow keys and shoot bullets using the spacebar. When the game begins, a fleet of aliens appears at the top and >moves across and down the screen. After each fleet is destroyed, a new fleet appears that will be faster than the previous one. Once an alien reaches the bottom of >the screen, or hits the player's ship with a bullet, then the player loses a ship. Once the player loses all his ships, the game is over.
Just clone the repository locally and run the file alien_invasion.py.