This game has been built as a practice of Python, inspired by the Alien Invasion Game from the "Python Crash Course" book by Eric Matthes. The player controls a Corgi that moves and shoots bullets. Objective of the game is gain a lot of of Donuts that move down the screen towards the player. The Crab is trying to tief the donuts, but you can shoot it and the Crab will been reset back. Each level the donuts and the crab's speed increase. If the crab strikes the Corgi the player loses a heart. The player loses the game when 3 hearts have been lost.
Clone this project into your machine. If you have not a pygame, install pygame module globally.
git clone https://github.com/DariaOW/Corgi_invasion.git
pip install pygame
And enter project and run the driver file
cd Corgi_invasion
python driver.py
The Corgi appears at the bottom of the screen, which can be controlled using arrow keys and spacebar.
Right Arrow/ D : to the right. Left Arrow/A : to the left. Up Arrow / W : to the up Down Arrow /S: to the down Spacebar : shoots bullets.