Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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:

LanguageBest For
RustFull ecosystem support, best tooling
C/C++Existing codebases, familiar to game devs
ZigModern 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-unknown in the installed target list

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 game
  • nether run - Run your game in the player
  • nether pack - Package your game into a ROM file

Next: Your First Game