An open API service indexing awesome lists of open source software.

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

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

![GitHub](https://img.shields.io/github/license/0ussamaBernou/the-maze)