A CPU-only, from-scratch 3D game written in C, where you dodge blocks
You accidentally fly your spaceship into a wormhole. To your shock, you find yourself in an alternate dimension filled with blocks. The throttle on your spaceship is broken and keeps increasing the speed. How far can you make it?
I made this game to play with 3D graphics. Specifically, I wanted to challenge myself to create a 3D game without any pre-made 3D engine or utilities. The 3D cubes are all made by strategically drawing polygons to create the illusion of perspective.
You need: sdl2
, sdl2_ttf
, and pkg-config
(to generate compiler flags)
If you use Homebrew, you can run this:
make install_dependencies_mac
make compile
Note: If this fails, make sure that the following line generates a bunch of compiler flags: pkg-config --cflags --libs SDL2_ttf
make run
Or:
./blockamok
A quick way to give VS Code knowledge of the SDL library is this (for my mac):
make satisfy_vscode_mac
This will add the dependencies to ./include
This project is licensed under the MIT License - see the LICENSE file for details.