hexops / mach
- среда, 20 апреля 2022 г. в 13:49:23
Mach is a game engine & graphics toolkit for the future.
Written in Zig, Mach is for creating games, graphical applications, and desktop/mobile apps:
git clone https://github.com/hexops/mach
cd mach/
zig build run-example-boids
Cross-platform graphics, a unified shader language & compute shaders.
(Requires zig 0.10.x | known issues)
Join us on Matrix chat in building the future of game engines & graphics in Zig!
Follow @machengine on Twitter for updates.
Contributors are very welcome! There are lots of places you can help out with little knowledge, so feel free to reach out!
No, it’s not Tom from myspace - it’s me, @slimsag! It’s taken almost a year to get here - staring at broken CI pipelines, C++ compiler errors, buying hardware to test every OS+arch possible, and more.
There are few things in life that I am more serious about than this work. I dedicate ~48 hours/week to my dayjob, and ~50h/week to Zig building Mach and running zigmonthly.org. After three years of aggressively pushing for progress in this exact way, I have no plans to slow down anytime soon.
Mach is still early stages, so far we have support for building from the following OS to the following targets:
Building for | From macOS x86_64 | From macOS M1/aarch64 | From Linux x86_64 | From Windows x86_64 |
---|---|---|---|---|
macOS x86_64 | ||||
macOS M1/aarch64 | ||||
Linux x86_64 | ||||
Windows x86_64 | ||||
iOS | ||||
Android | ||||
Web (Wasm) |
Mach has many libraries you can use for game development in Zig - you don't have to use the entire engine. All our libraries aim to have the same zero-fuss installation, cross compilation, and platform support:
Mach is maintained as a monorepo. When changed are merged to this repository, we use some git-fu to pick out the commits to subdirectories and push them ot sub-repositories all automagically. Changes to the glfw/
directory in this repository get pushed to the separate mach-glfw repository automagically after being merged here, for example.
Please prefix commits / pull requests with the project name (glfw: fix an issue
, gpu: fix an issue
, examples: fix an issue
, etc.) and if possible only one project per commit. If you don't know how to do this, no worries, we can help!