Prerequisites
Before you start building games for Nethercore ZX, you’ll need to set up your development environment.
Choose Your Language
Nethercore ZX games are compiled to WebAssembly. You can write games in several languages:
| Language | Best For |
|---|---|
| Rust | Full ecosystem support, best tooling |
| C/C++ | Existing codebases, familiar to game devs |
| Zig | Modern systems programming, C interop |
This guide shows setup for each language. Pick one and follow its setup instructions.
Language Setup
Install Rust
Install Rust using rustup:
Windows/macOS/Linux:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Or visit rustup.rs for platform-specific installers.
Add WebAssembly Target
After installing Rust, add the WASM compilation target:
rustup target add wasm32-unknown-unknown
Verify Installation
# Check Rust version
rustc --version
# Check WASM target is installed
rustup target list --installed | grep wasm32
You should see:
- a
rustc ...version line wasm32-unknown-unknownin the installed target list
Code Editor (Optional but Recommended)
Any text editor works, but we recommend one with language support:
- VS Code with rust-analyzer extension
- RustRover (JetBrains IDE for Rust)
- Neovim with rust-analyzer LSP
Optional: Nethercore CLI
The nether CLI tool provides convenient commands for building and running games:
cargo install --path tools/nether-cli
This gives you commands like:
nether build- Compile your gamenether run- Run your game in the playernether pack- Package your game into a ROM file
Next: Your First Game