Skip to content

MatiasMass/Save-Earth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Save Earth from Asteroids Game

This is a simple game where you have to protect the Earth from incoming asteroids using a shield controlled by the mouse.

Starship vs Asteroids

Gameplay

  • 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.

Controls

  • Move the mouse to control the position of the shield.

Features

  • 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.

Requirements

  • Python 3.x
  • Pygame library

How to Run

  1. Make sure you have Python 3.x installed.
  2. Install the Pygame library by running the following command:
pip install pygame
  1. Clone the repository or download the source code.
  2. Navigate to the project directory and run the following command:
python main.py

Releases

No releases published

Packages

No packages published

Languages