forked from bedohswe/p3he
Changes to README.md.
This commit is contained in:
parent
b05a139cbf
commit
13aefdde9a
18
README.md
18
README.md
@ -2,25 +2,29 @@
|
|||||||
|
|
||||||
My school project
|
My school project
|
||||||
|
|
||||||
## Load levels
|
## Loading games
|
||||||
|
|
||||||
You can load a level by pass the path to the level as an argument, see example:
|
You can load a game by passing the name of the game as an argument:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
python3 main.py maps/triangle.json
|
python3 main.py triangle
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Game can be loaded only if it is located in the games/ directory.
|
||||||
|
If no game is specified then "squareroom" will be loaded.
|
||||||
|
|
||||||
|
|
||||||
## Controls
|
## Controls
|
||||||
|
|
||||||
| Descripton | Key |
|
| Descripton | Key |
|
||||||
|------------------------------------|:---:|
|
|----------------------------------------|:---:|
|
||||||
| Move forwards | W |
|
| Move forward | W |
|
||||||
| Move backwards | D |
|
| Move backwards | D |
|
||||||
| Strafe left | Q |
|
| Strafe left | Q |
|
||||||
| Strafe right | E |
|
| Strafe right | E |
|
||||||
| Turn exactly 180 degrees | R |
|
| Turn 180 degrees | R |
|
||||||
| Toggle FPS cap | F1 |
|
| Toggle FPS cap | F1 |
|
||||||
| Create a wall | F2 |
|
| Create a wall | F2 |
|
||||||
| Toggle debug info | F3 |
|
| Toggle debug info | F3 |
|
||||||
| Print to terminal current position | F4 |
|
| Print current position to the terminal | F4 |
|
||||||
| Save level to `./levels` folder | F5 |
|
| Save level to `./levels` folder | F5 |
|
||||||
|
Loading…
Reference in New Issue
Block a user