Skip to content

A CPU-only, from-scratch 3D game written in C, where you dodge blocks

License

Notifications You must be signed in to change notification settings

carltheperson/blockamok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockamok

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?

Gameplay

Background

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.

Installing dependencies

You need: sdl2, sdl2_ttf, and pkg-config (to generate compiler flags)

If you use Homebrew, you can run this:

make install_dependencies_mac

Compiling

make compile

Note: If this fails, make sure that the following line generates a bunch of compiler flags: pkg-config --cflags --libs SDL2_ttf

Running

make run

Or:

./blockamok

VS Code note

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

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A CPU-only, from-scratch 3D game written in C, where you dodge blocks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published