Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We're working on a game engine in Zig[0]

If you're looking for interesting Zig codebases to read, you might be interested in our low-level audio input/output library[1] or our module system[2] codebase - the latter includes an entity component system and uses Zig's comptime to a great degree to enable some interesting flexibility (dependency injection, global view of the world, etc.) while maintaining a great amount of type safety in an otherwise dynamic system.

[0] https://machengine.org/

[1] https://github.com/hexops/mach/tree/main/src/sysaudio

[2] https://github.com/hexops/mach/tree/main/src/module



Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: