2024-04-03 11:25:55 +00:00
|
|
|
# Pseudo-3D hyperbolic engine
|
2024-04-06 19:38:12 +00:00
|
|
|
|
2024-04-03 11:25:55 +00:00
|
|
|
My school project
|
2024-04-06 19:38:12 +00:00
|
|
|
|
2024-04-07 11:04:13 +00:00
|
|
|
## Loading games
|
2024-04-06 19:38:12 +00:00
|
|
|
|
2024-04-07 11:04:13 +00:00
|
|
|
You can load a game by passing the name of the game as an argument:
|
2024-04-06 19:38:12 +00:00
|
|
|
|
|
|
|
```sh
|
2024-04-07 11:04:13 +00:00
|
|
|
python3 main.py triangle
|
2024-04-06 19:38:12 +00:00
|
|
|
```
|
|
|
|
|
2024-04-07 11:04:13 +00:00
|
|
|
Game can be loaded only if it is located in the games/ directory.
|
|
|
|
If no game is specified then "squareroom" will be loaded.
|
|
|
|
|
|
|
|
|
2024-04-07 12:17:19 +00:00
|
|
|
## Controls (might be overriden by games)
|
2024-04-06 19:38:12 +00:00
|
|
|
|
2024-04-07 11:04:13 +00:00
|
|
|
| Descripton | Key |
|
|
|
|
|----------------------------------------|:---:|
|
|
|
|
| Move forward | W |
|
|
|
|
| Move backwards | D |
|
|
|
|
| Strafe left | Q |
|
|
|
|
| Strafe right | E |
|
|
|
|
| Turn 180 degrees | R |
|
|
|
|
| Toggle FPS cap | F1 |
|
|
|
|
| Create a wall | F2 |
|
|
|
|
| Toggle debug info | F3 |
|
|
|
|
| Print current position to the terminal | F4 |
|
|
|
|
| Save level to `./levels` folder | F5 |
|
2024-04-07 19:05:00 +00:00
|
|
|
| Snap to the closest point | F6 |
|
2024-04-07 19:10:08 +00:00
|
|
|
| Snap to the origin | F7 |
|
|
|
|
| Snap the angle to the zero | F8 |
|