This is a project written in C and using the SDL v2 library.
It is currently under development.
The goal is to produce a 3D maze that looks like this:
Compile using make
, or, alternatively, with this commmand
gcc -Wall -Werror -Wextra -pedantic -g src/main.c src/init_instance.c src/draw_functions.c src/map_functions.c src/game_functions.c src/paint_functions.c src/calculation_functions.c src/intersect_functions.c -lm $(sdl2-config --cflags) $(sdl2-config --libs) -lSDL2_ttf
Compile with the command below:
gcc -Wall -Werror -Wextra -pedantic -g src/main.c src/init_instance.c src/draw_functions.c src/map_functions.c src/game_functions.c src/paint_functions.c src/calculation_functions.c src/intersect_functions.c -lm -I/usr/local/include/ -D_THREAD_SAFE $(sdl2-config --libs)
Notes:
There is a bug in sdl2-config
when returning the SDL2 compilation flags on macOS. To get around that, you must get the compilation flags manually: run sdl2-config --cflags
and simply strip the trailing โSDL2โ from the include path.
Run with ./a.out
.
Run the following installation script with root privileges:
SDL2 Installation script for Mac OS X / Ubuntu
No instructions are provided for installing SDL2 on other OSes at this time.