Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/drujensen/pytanks

Tank game written with pygame
https://github.com/drujensen/pytanks

Last synced: 10 days ago
JSON representation

Tank game written with pygame

Awesome Lists containing this project

README

        

# PyTanks

This is an example project using the [pygame](https://www.pygame.org/news) library.

## Setup

To setup the virtual environment run:
```
python3 -m venv env
```

To activate the environment run:
```
. env/bin/activate
```

Once its activated, you need to install the dependencies:
```
pip install -r requirements.txt
```

## Run

To run the game:
```
python main.py
```

### Controls

For the blue tank:
```
wasd for movement
space for fire
```

For the red tank:
```
arrows for movement
enter for fire
```