Skip to content

peterhellberg/zig-dos-like-voxel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-dos-like-voxel 💾

Getting the voxel example from dos-like to build in Zig

Note

zig translate-c -lc voxel.c > voxel.zig was used as a starting point of the port.

Most of the time was spent figuring out how to setup the build 😂

Map

Color Height
C1W D1

These images are used for the voxel effect.

CRT

Requirements

A fairly recent version of Zig master (which would be 0.15.0-dev.769 when this was written)

  • SDL2
  • GLEW
  • pthread

Compilation

You should hopefully be able to compile the binary by calling zig build

Note

As a convenience you can compile and run the binary via zig build run (or zig build run -- -w if you want to start in windowed mode)

Links

About

Zig port of Mattias Gustavssons port of voxel code by Sebastian Macke

Topics

Resources

License

Stars

Watchers

Forks

Languages