https://github.com/fizyk20/4d-labyrinth
A 4-dimensional labyrinth
https://github.com/fizyk20/4d-labyrinth
4d game rust
Last synced: 11 months ago
JSON representation
A 4-dimensional labyrinth
- Host: GitHub
- URL: https://github.com/fizyk20/4d-labyrinth
- Owner: fizyk20
- Created: 2013-08-01T17:04:43.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2019-04-04T22:29:11.000Z (over 7 years ago)
- Last Synced: 2024-05-09T09:30:21.146Z (about 2 years ago)
- Topics: 4d, game, rust
- Language: Rust
- Size: 55.7 KB
- Stars: 26
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
4D Labyrinth
============
The 4D Labyrinth is a simple game illustrating the 4-dimensional geometry.
The player (represented by a yellow cube, which is actually a tesseract - a 4-dimensional analog of a
cube) has to travel through a labyrinth of tunnels laid out in 4 dimensions and find the target, which
is represented by a blue tesseract.
What the player sees is actually just a 3D slice of the 4D hyperspace. It's analogous to only seeing a
2-dimensional slice of a 3D space, in which, for example, a cube could be seen as a square, a rectangle,
a triangle, or even a hexagon. Similarly, a 3D slice of a tesseract can be a cube, a cuboid or some
other weird shape. The visible slice can be rotated, giving the player access to the whole 4D space.
Controls
--------
The player can move using the following keys:
* W/S/A/D - move forwards/backwards/left/right
* Q/E - move up/down
* T/G - pitch down/up
* F/H - roll left/right
* R/Y - yaw left/right
* U/J/C/V/B/N - rotate the visible slice of the hyperspace
Notes
-----
* The program uses OpenGL via the awesome [Glium](https://github.com/tomaka/glium) crate