This is a simple game where you have to protect the Earth from incoming asteroids using a shield controlled by the mouse.
- The game starts with the Earth at the center of the screen.
- Asteroids start appearing from the edges of the screen and move towards the Earth.
- Move the mouse to control the shield and intercept the asteroids before they hit the Earth.
- Each time an asteroid hits the Earth, its health decreases.
- The game ends when the Earth's health reaches zero.
- Move the mouse to control the position of the shield.
- The Earth's health is represented by a health bar on top of the Earth's image.
- As the Earth's health decreases, its image changes to reflect the damage.
- The shield is represented by an image controlled by the mouse.
- The asteroids are randomly generated and move towards the Earth.
- When an asteroid hits the shield, it is destroyed.
- More asteroids appear as the game progresses, increasing the difficulty.
- Python 3.x
- Pygame library
- Make sure you have Python 3.x installed.
- Install the Pygame library by running the following command:
pip install pygame
- Clone the repository or download the source code.
- Navigate to the project directory and run the following command:
python main.py