Skip to content

An OpenGL application built in C++ that generates a 3D map using a 2D defined grid

License

Notifications You must be signed in to change notification settings

gundralaa/maze_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maze Generator

An OpenGL application built in C++ that generates a 3D map using a 2D defined grid. Requires GLFW and glad libraries for platform specific functionality and system interaction.

Input

As shown in grid.txt idea is to have a arbitrarily defined grid using

  • '0' for an empty space
  • '*' for a closed space
  • 'c' for the initial camera position

Example:

00000000000
00000000000
00*******00
00***c***00
00*******00
0000***0000
00000000000
00000000000

Usage

Download the source libraries for GLFW GLAD and GLM and edit CMakeLists.txt LIB_DIR var to point to a directory that stores all of the libraries sources. Run the following in thee root directory:

mkdir build
cd build
cmake ..
make
mv MazeGenerator ../

After moving the built executable to root run the executable in root to access shader files and textures. Only Run Executable in Root Directory

./MazeGenerator

Render

Creates a 3D space for simple game prototyping Render Demo

About

An OpenGL application built in C++ that generates a 3D map using a 2D defined grid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published