Space Invaders–style game using raylib-zig, pulled in via build.zig / build.zig.zon. Part of the polyglot repo; see the root README for context, controls overview, and comparison notes.
- Zig — at least the version in
build.zig.zonminimum_zig_version(currently 0.15.2). - Network (first build) —
zig buildmay fetch theraylib_ziggit dependency; after that, builds can be offline if the cache is populated.
From the repository root:
cd zig-invaders
zig build runProduces the executable under the default install prefix (typically zig-out/bin/):
cd zig-invaders
zig buildcd zig-invaders
zig build testsrc/main.zig— entry point and most game logic.src/root.zig— module root wired inbuild.zigfor thezig_invadersmodule and tests.
Left / Right only for movement. Space fires one shot per key press (isKeyPressed), not hold-to-autofire. Enter restarts after game over or win. Full control table: root README — Controls.