/The-Maze-Project

ALX Portfolio Project

Primary LanguageC

The Maze

The Maze is a 3D Maze game that uses ray casting to render a 2D map into a 3D navigable world!

The Maze was written was written in C ussing SDL2 library. Deveploment was performed using Ubuntu 24.04 - gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0

About SDL2

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

Installation

$ git clone https://github.com/Azubuikeleo13/The-Maze-Project.git

Usage

  • Execute ./maze or type make run
  • Use up and down arrow keys to move forward and backward (keys w and s serve the same function)
  • Use right and left arrow keys to turn the camera arround (keys d and a serve the same function)

Compilation

$ gcc -Wall -Werror -Wextra -pedantic ./src/*.c -lm -o maze `sdl2-config --cflags` `sdl2-config --libs`;

Flowchart

The Maze Flow Chart

Demo

The Maze Demo

Author ✒️