A voxel game in pure C and OpenGL just because I can.
It would be a shame to not put an image that show how awesome cursed this
game is.
Generate a self-signed server certificate:
$ openssl genrsa -out key.pem 4096 # Generate RSA private key
$ openssl req -new -key key.pem -out csr.pem
$ openssl x509 -req -in csr.pem -signkey key.pem -out cert.pemCompile:
$ cc build.c -o build # Bootstrap the build system
$ CC=<YOUR_CC> CFLAGS=<YOUR_CFLAGS> ./build # Generate ninja build file
$ ninja # Invoke ninja buildRun:
$ export PORT=...
$ export ADDRESS=...
$ ./bin/voxy/server/voxy-server $PORT cert.pem key.pem ./bin/mod/base/server/base-server.so # Server
$ ./bin/voxy/client/voxy-client $ADDRESS $PORT world ./bin/mod/base/client/base-client.so # Client