Asteroids clone written in C3. Software-rendered. Window and input via RGFW. Audio via miniaudio.
🚀 Click here to play in the browser! 🚀
- C3 compiler (
c3cin PATH) - Linux:
gcc,clang,wayland-scanner,git, and dev libraries for X11/Wayland. - MacOS: Xcode Command Line Tools
- Windows cross-compilation:
mingw-w64and MSVC SDK (viac3c fetch-sdk windows). - Web: Emscripten.
Before the first build on any platform, you must prepare the C dependencies (RGFW and miniaudio):
Choose your target platform:
# For Linux
c3c build linux-deps --trust=full
# For macOS
c3c build macos-deps --trust=full
# For Windows (cross-compile from Linux)
c3c build windows-deps --trust=full# Linux
c3c run linux
# macOS
c3c run macos
# Windows
c3c build windows
# Web (WASM)
c3c build web --trust=full
# This target handles dependencies and linking in one step.
# Serve the build/ directory using any local web server.| Key | Action |
|---|---|
| WASD/Arrow Keys | Thrust, Rotate, Brake |
| Space | Fire |
| E | Hyperspace |
| Escape | Quit |
| P | Pause |
| C | Cheat mode |
Tip
Use --trust=full when running/building to allow the project.json to execute the dependency build scripts.