summaryrefslogtreecommitdiff
path: root/README.md
blob: 3a32519510c02fb428abad483b474d742be684de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Asteroids Game

This is a game of Asteroids, created with the help of the guided project course on boot.dev

## Installation

First, clone this repo:

```
	git clone https://github.com/yuzu-eva/asteroids.git
```

You need Python3 and pygame installed.
To install pygame, create a virtual environment and use pip to install everything
in the requirements.txt:  

```
	python3 -m venv venv
	source venv/bin/activate
	pip install -r requirements.txt
```

Now you can launch the game with

```
	python3 main.py
```

After you're done playing the game, you can leave the virtual environment with:

```
	deactivate
```


## Instructions

Go forward and backward with the UP and DOWN arrow keys
Rotate your ship with LEFT and RIGHT arrow keys
Shoot the asteroids with SPACEBAR  
Quit the game with Q