https://github.com/bernoussama/the-maze
The Maze project
https://github.com/bernoussama/the-maze
Last synced: 11 months ago
JSON representation
The Maze project
- Host: GitHub
- URL: https://github.com/bernoussama/the-maze
- Owner: bernoussama
- License: mit
- Created: 2024-08-19T12:28:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-23T18:03:05.000Z (almost 2 years ago)
- Last Synced: 2024-12-06T10:12:50.924Z (over 1 year ago)
- Language: C
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Maze
The Maze project is a maze game using raycasting to render mazes(2d maps) into 3d navigatable mazes.
written in C using SDL2. Made on Ubuntu and Neovim(btw)
## Installation
### Prerequisites
- SDL2
- gcc
- make
### Build
```bash
git clone https://github.com/0ussamaBernou/the-maze.git
cd the-maze
make build
```
## Usage
```bash
make run
```
- Press up or 'w' to move up
- Press down or 's' to move down
- Press left or 'a' to rotate left
- Press right or 'd' to rotate right
## Demo
- Rendering Walls
https://github.com/user-attachments/assets/ccf8beb8-1f48-4565-bc0d-a821c690ecf3
- Collision Detection
https://github.com/user-attachments/assets/a55f124d-be14-4524-8acc-0c94a43da700
## References
- [Raycasting video tutorial using OpenGL(Great Guide)](https://www.youtube.com/watch?v=gYRrGTC7GtA)
- [Raycasting tutorial(theory)](https://permadi.com/1996/05/ray-casting-tutorial-table-of-contents/)
- [SDL2 tutorials](https://lazyfoo.net/tutorials/SDL/index.php)
## License
