Skip to content

Alien Invasion is an exciting 2D shooter game where players take control of a spaceship to defend Earth from waves of alien invaders. The game is built using Python and the Pygame library, offering a classic arcade-style gaming experience. Players must navigate their spaceship, shoot bullets to destroy incoming aliens, and avoid getting hit by them

License

Notifications You must be signed in to change notification settings

saikrishna488/alien_invasion

Repository files navigation

Alien Invasion (2D Game)

Overview

Alien Invasion is a 2D game where players control a spaceship to fend off waves of aliens. The game includes scoring, levels, and a high score feature. Screenshot from 2024-07-17 23-14-02

Screenshot from 2024-07-18 02-57-26

Download

You can download the latest version of the executable here.

How to Run

  1. Download the Code:

    • Download the code as a zip file and extract it.
  2. Install Dependencies:

    • Ensure you have Python installed.
    • Install the pygame package by running:
      pip install -r requirements.txt
  3. Run the Game:

    • Execute the game with the following command:
      python alien_invasion.py

Game Window Fields

  • Top Left: Number of ships left.
  • Top Center: High score.
  • Top Right: Current score.
  • Top Right Below Score: Current level.

Game Controls

  • Move Ship: Use arrow keys (left/right) to move the ship.
  • Fire Bullets: Press the space bar to shoot bullets.
  • Quit: Use Q key to Quit game.

Adjusting Game Settings

To control various aspects of the game such as ship speed, bullet speed, and alien fleet speed, modify the corresponding values in settings.py.

Example settings you can adjust:

# Ship settings
self.ship_speed = 1.5

# Bullet settings
self.bullet_speed = 1.0

# Alien settings
self.alien_speed = 1.0

About

Alien Invasion is an exciting 2D shooter game where players take control of a spaceship to defend Earth from waves of alien invaders. The game is built using Python and the Pygame library, offering a classic arcade-style gaming experience. Players must navigate their spaceship, shoot bullets to destroy incoming aliens, and avoid getting hit by them

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages