/Maze-project

public repo

Primary LanguageC

MAZE PROJECT

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 14.04 LTS - gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4

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.

Instalation

$ git clone https://github.com/Ad3b1y1/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] (https://viewer.diagrams.net/index.html?tags=%7B%7D&highlight=0000ff&layers=1&nav=1&title=image.png#G183IjEStvA3ShZ1mOLezyWUIuknCo1LZu)

Demo

[![The Maze Demo] (https://www.youtube.com/embed/pBDGgg1DCyU)