Skip to content

MiraZzle/pirate-invaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pirate Invaders

License: MIT Python Version

About the project

Pirate Invaders is a game based on the game Space Invaders. The player controls a horizontally moving character. Players goal is to achieve the highest score by eliminating enemy entities.

Prerequisities

  1. Download Python (v3.10+)
  2. Download Pygame (v2.1.2)

How to play

  1. Clone this repository or download it as a ZIP file
    git clone https://github.com/MiraZzle/pirate-invaders
  2. Open the project in an IDE of your choice
  3. Run the ./source_code/main.py

Launching from Terminal

  • To run the game from Terminal, make sure your current working directory is pirate_invaders. From terminal, run this command:
python3 ./source_code/main.py

Entities

  • Player im5

    • Moves horizontally and shoots a projectile to destroy enemies. The player has 3 lives, which are lost by colliding with enemy projectiles or colliding with enemy entity.
  • Enemy im2im3im4

    • Moves horizontally in a group. If a member of enemy group touches a side of the game window, the enemy group switches direction. Randomly fires a projectile. On collision enemy projectile subtracts a player life or deletes a piece of wall. There are 3 enemy types, which differ in points given after their destruction by player.
  • Bonus Enemy im1

    • Moves horizontally. Spawns on top of the screen at random time. Gives bonus points if destroyed.
  • Wall

    • Static entity. Protects the player from enemy projectiles. This entitity can be destroyed by colliding with any projectiles. Resets every new round.

Controls

Key Action
Move Right
Move Left
Space Shoot
Enter Restart Game

Game Over

  • Game Over conditions:
    • Game ends if player health reaches 0
    • Game ends if player collides with an enemy

About

Pirate remake of Space Invaders

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages