Scaffold a new Nethercore ZX game project with working starter code
Scaffolds a new Nethercore ZX game project with language-specific starter code and FFI bindings.
/plugin marketplace add nethercore-systems/nethercore-ai-plugins/plugin install zx-dev@nethercore-ai-plugins[language] [project-name]Create a complete ZX game project with proper structure and FFI bindings.
If language not provided, ask:
If project name not provided, ask:
test -d [project-name] && echo "EXISTS" || echo "OK"
Use WebFetch to get bindings from:
| Language | URL |
|---|---|
| Rust | https://raw.githubusercontent.com/nethercore-systems/nethercore/main/include/zx.rs |
| C | https://raw.githubusercontent.com/nethercore-systems/nethercore/main/include/zx.h |
| Zig | https://raw.githubusercontent.com/nethercore-systems/nethercore/main/include/zx.zig |
Prompt: "Return complete file contents as-is."
See shared/file-organization.md for structure patterns.
Cargo.toml with crate-type = ["cdylib"]nether.toml with game metadatasrc/zx.rs - Complete fetched bindingssrc/lib.rs - Minimal (~30 lines)Makefile with wasm32 targetnether.tomlzx.h - Complete fetched bindingsgame.c - Minimalbuild.zig for wasm32-freestandingnether.tomlsrc/zx.zig - Complete fetched bindingssrc/main.zig - Minimal#![no_std]
mod zx;
use zx::*;
static mut FRAME: u32 = 0;
#[no_mangle]
pub extern "C" fn init() { }
#[no_mangle]
pub extern "C" fn update() {
unsafe { FRAME = FRAME.wrapping_add(1); }
clear(0x1a1a2e);
text(10, 10, c"Hello, Nethercore ZX!", 0xffffff);
}
Report:
cd [project-name] && nether run