Asteroids clone built with Zig 0.15.1 and raylib-zig.
- Fullscreen desktop play on Windows
Escapeexits immediately- Vector-style line rendering with fullscreen bloom/glow
- Custom stroke font rendered from line segments
- Procedural particle effects for thrust, impacts, and explosions
- Procedurally synthesized arcade-style sound effects
- Periodic gravity rifts that bend trajectories and consume anything pulled into their core
- Randomized powerups including a temporary attack drone that orbits the ship and zaps nearby threats
- Classic-style Asteroids rules:
- inertia and thrust-based ship movement
- asteroid splitting
- saucer spawns and hostile fire
- hyperspace
- score, lives, waves, and extra lives
Left/A: Rotate leftRight/D: Rotate rightUp/W: ThrustSpace: FireLeft Shift/Right Shift: HyperspaceEnter: Start / restartEscape: Exit
- Zig
0.15.1
The current machine was bootstrapped with:
winget install --id zig.zig --version 0.15.1 --accept-package-agreements --accept-source-agreementszig build runzig build testBuild a portable executable folder:
zig build -Doptimize=ReleaseFastThe executable is written to:
zig-out/bin/asteroids.exe
That output is self-contained for normal desktop sharing.