Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/drujensen/pytanks
- Owner: drujensen
- Created: 2021-09-25T19:23:39.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-25T19:37:15.000Z (about 3 years ago)
- Last Synced: 2024-10-25T01:35:43.964Z (about 2 months ago)
- Language: Python
- Size: 734 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```