/Tank-War

Tank War is a 2D game made using Python-Pygame module

Primary LanguagePython

Tank-War

Tank War is a 2D game made using Python-Pygame module

About

Tank War is a two-dimensional fixed shooter game in which the player controls a tank with missiles by moving it horizontally across the bottom of the screen and firing at incoming enemy tanks. The aim is to defeat five rows of enemy tanks that move horizontally towards the player tank shooting missiles. The player defeat an enemy tank by shooting it with the missile. The enemy tanks attempt to destroy the player ship by firing at it while they approach the end of the screen. If they reach the end of the screen, the enemy tank invasion is successful and the player tank life decreases and eventually if player tank life becomes zero the game ends but if the players tank is able to defeat5 rows of enemy tanks then he/she wins

The 2d-game has a acrade feel with upbeat background music and missile sounds at the time of firing

Setup

Clone

git clone https://github.com/neelangshu007/Tank-War.git

Installation

Use the package manager pip to install the required packages.

pip install pygame

Usage

If you have the correct version of Python and Pygame installed, you can run the program in the command prompt / terminal.

cd Tank-War
python main.py

Note: If you're using Python 3, replace the command "python" with "python3.8.3"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Contribution Steps

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push your branch (git push origin my-new-feature)
  5. Create a new Pull Request

Tank War Game Screenshots