🏪

nsgo-dev/nsgo-game

🏪Marketplace

A 2D and 3D game engine in Go, built on NSGo: a scene editor, physics, rendering and starter templates for desktop, mobile and the web

nsgo-dev/nsgo-game91 PluginsLast Updated Dec 3, 2026

Add this Marketplace

Add marketplace in Claude Code:
$/plugin marketplace add nsgo-dev/nsgo-game

Then open /plugin in Claude Code to pick and install its plugins.

Security check pending

Plugins in this Marketplace1


NSGo Game (github.com/nsgo-dev/game) adds everything you need to build and ship complete 2D and 3D games in NSGo apps—using pure Go with zero hand-written C.

Your game draws into one NSGo view (Canvas, pixel buffer, shader, or GPU view) while its HUD, pause screens, dialogues and settings remain ordinary native NSGo views with native typography, input methods and accessibility. Every package imports independently and uses only NSGo's public API, so an app that does not import a package links none of it.

Highlights

  • Pure Go, six build targets: Ship one Go codebase to macOS, iOS, Windows, Linux, Android and Web—zero hand-written C or cgo (Platform Support).
  • Drawn game, native UI: Render your world at 60 fps or display refresh rate in a single view while keeping scores, menus and dialogs native NSGo views.
  • 2D & 3D on one shared foundation: Fixed-step game.Loop, input actions, sound mixer, assets, saves and scene transitions are shared between 2D and 3D—mix both freely in one game.
  • Visual 2D & 3D scene editor: Run go tool game editor for a live viewport, scene hierarchy, inspector, transform gizmos, asset browser and Go plugin API (Editor Guide).
  • Plain-text YAML everything: Scenes, prefabs, materials, animations, data tables, bullet patterns, quests, input maps and project settings are versioned, schema-validated YAML—clean to review in Git and easy for both humans and AI agents to edit (File Formats).
  • Built for AI coding agents: Ships llms.txt / llms-full.txt, JSON Schemas, runtime scene inspection via game/mcp, deterministic statedump diffs and an installable Agent Skill.
  • 141 modular packages & 16 starter templates: From sprites, tilemaps and rigid-body physics to glTF PBR rendering, dedicated servers and self-hosted leaderboards—every package documented and marked stable or experimental (API Stability).

Quick Start

Requires Go 1.27+ and NSGo v0.4.0+ (iOS builds require macOS and Xcode).

# 1. Create a new game project (add -template <name> to pick from 17 genres)
go run github.com/nsgo-dev/game/cmd/game@latest new mygame

# 2. Run natively with hot reload on save
cd mygame
go tool nsgo dev

# 3. Run in the browser (WebAssembly)
go tool nsgo dev -target web

Or download the standalone desktop NSGo Game Editor from GitHub Releases (macOS .dmg, Windows -setup.exe, Linux .AppImage/.deb/.pkg.tar.gz; requires Go 1.27+ from go.dev/dl to create projects, play games, and build exports), launch it from Go, or install the coding-agent skill:

# Install the standalone NSGo Game Editor (macOS / Linux)
curl -fsSL https://github.com/nsgo-dev/game/releases/latest/download/install.sh | sh

# Or run the scene editor directly via Go
go run github.com/nsgo-dev/game/cmd/game@latest editor

# Install the Agent Skill for coding agents
bunx skills add nsgo-dev/game

See Getting Started (中文) for the full walkthrough, or follow the 9-chapter Tutorial: Star Catcher (中文) from an empty project to a shipped game.

Package Overview

Import only what you need from github.com/nsgo-dev/game. Browse the full interactive catalog of all 141 packages at nsgo.games/packages or check API Stability (中文).

AreaKey Packages
Core 2Dgame (Loop), sprite, tilemap, tilemap/tileshape, scene, sceneformat, screen, input, sound, text, assets, resource, save, math2d, random, mempool, spatial, loaderr (Errors), lfs (Git LFS pointers), expr (Expressions)
Physics & Navigationphysics (2D Rigid), physics3d, ai, ai/cover3d, ai/perception3d, ai/smart3d, pathfind, pathfind/navbake, pathfind3d, pathfind3d/navbake3d, vehicle3d
3D & Renderingmath3d, scene3d, render3d, gltf, ktx2, scenemodel, anim3d, world3d, voxel (Blender Guide)
Animation & Visual FXtween, motion, animclip, skeletal, particles, pixelfx, lights2d, postfx, cutscene, camera, quality, sessionstats
Gameplay & Genre Kitsflow, dialogue, entities, platformer, rooms, worldmap, fog, procgen, stats, tags, inventory, ability, cues, quest, loot, rpgdata, battle, spawn, cards, bullets, fighting, framedata, rts, rhythm, idle, vn, undo, cards/deck, farming, gametime, hostbridge, match3, mergegame, placement, progression
UI, L10n & Accessibilitygameui, l10n, a11y
Multiplayer & Onlineonline/netplay, online/gameserver, online/accounts, online/cloudsave, online/leaderboard, online/leaderboard/selfhost, online/achievements, online/presence, online/steam, online/steamworks, online/eos, online/liveops, online/storeverify, online/admin, online/audit, online/servicehealth, online/backend, online/wsclient, online/economy, online/records, online/social, online/realtime, online/lan, online/portmap, online/antiaddiction, modding, gameplugin
Editor, Tooling & Testingeditor, project, tooling/refs, tooling/gamedebug, mcp, replay, statedump, tooling/playtest, gametest, placeholder, datatable, jsonschema, importsettings, tooling/library

Starter Templates

Scaffold a working, tested game in any of 17 genres with go run github.com/nsgo-dev/game/cmd/game@latest new -template <name> mygame (or nsgo init -template github.com/nsgo-dev/game/template/<name>). Run go run github.com/nsgo-dev/game/cmd/game@latest new -list or read Templates (中文) for details.

2D TemplatesDescription3D & Specialty TemplatesDescription
starterMinimal tap-to-score 2D starter (default)action3dThird-person 3D action adventure with orbit camera & blended animations
platformer2dSide-scrolling platformer with coyote time, jump buffer & roomsfps3dFirst-person 3D shooter arena with hitscan/projectile weapons & AI waves
rpg2dTop-down RPG with branching dialogue, inventory, quests & savesracing3d3D raycast-car circuit racer with rivals, checkpoints & best-lap ghost
roguelike2dSeeded 5-floor turn-based roguelike with BSP caves & loot tablesfighting2d1v1 2D fighter with motion inputs, combos, frame data & CPU opponent
towerdefense2dUpgradeable towers, YAML enemy waves, economy & livescards2dDrag-and-drop single-player card game with YAML deck & deals
rts2dReal-time strategy skirmish with fog of war, flow fields & control groupspuzzle2dGrid sliding puzzle with YAML levels, undo/redo & star ratings
shmup2dVertical shooter with YAML bullet patterns, waves & 3-phase bossrhythm4-lane rhythm game with beat maps, audio clock & latency calibration
idleGenerators, upgrades, big numbers, offline progress & prestigevisualnovelBranching Yarn Spinner visual novel with backlog, saves & EN/中文
coop2dAuthoritative co-op room rules: room codes, invite links, rejoin, revive & respawn (no transport yet)

Playable Examples

Try the examples directly in your browser in the Playground or run them locally with go tool nsgo dev ./examples/<name>.

ExampleGenre / FocusSource
Cave RunSide-scrolling 2D platformer with native HUD & menusexamples/caverun
Crypt QuestTop-down tile dungeon adventure across all six targetsexamples/cryptquest
StarburstTwin-stick arena shooter with particles, physics & inputexamples/starburst
FountainParticle stress test maintaining 5,000 live particlesexamples/fountain
Slide GemTouch-first 6×6 sliding match-3 with zero external assetsexamples/slidegem
Lantern 3D2D ↔ 3D scene switching with glTF diorama, PBR lighting & shared input/audioexamples/lantern3d
Field MedicSmall game shipping its own scene editor and editor pluginexamples/fieldmedic
Star CatcherComplete 9-chapter step-by-step tutorial gameexamples/tutorial
ObservatoryTwo-character visual novel scene with choices, backlog, auto and skipexamples/observatory
Dedicated ServerFixed-step match in a plain Go process, no NSGo app or cgo (go build, not nsgo dev)examples/dedicatedserver

Documentation

TopicEnglish简体中文
Overview & ArchitectureOverview概览
Installation & First GameGetting Started快速开始
9-Chapter WalkthroughTutorial: Star Catcher教程:Star Catcher
Visual Scene EditorScene Editor场景编辑器
Plain-Text YAML Formats & SchemasFile Formats · Schemas文件格式 · Schema
Starter Templates & CLITemplates · CLI模板 · 命令行
3D & Blender Pipeline3D Models from Blender从 Blender 导入 3D 模型
AI Agents & MCPMCP · Agent SkillMCP · 智能体技能
Migrating from Another EngineGodot · Unity · Unreal Engine · Ebitengine · GameMaker · Construct · RPG MakerGodot · Unity · Unreal Engine · Ebitengine · GameMaker · Construct · RPG Maker
API Stability, Platforms & ShippingAPI Stability · Platform Support · Building & Shipping · Shipping on SteamAPI 稳定性 · 平台支持 · 构建与发布 · 发布到 Steam

Repository Layout

game/
├─ go.mod / go.work     Go module github.com/nsgo-dev/game (root package game at root)
├─ cmd/                 binaries shipped to users (game, nsgo-game, editor, and the service daemons)
├─ internal/            helpers shared across subtrees, the CLI implementation, repo-only libraries, repo-wide checks and the sizeprobe CI fixture
├─ pkg/                 library packages (github.com/nsgo-dev/game/pkg/<name>)
│  ├─ online/           online services and netplay
│  ├─ tooling/          build and dev-time tooling that a release build does not link
│  └─ editor/           the scene editor (theme/, keychain/, editorcmd/, editormcp/, internal/<feature>/)
├─ template/            16 Go-module starter templates for game new / nsgo init
├─ examples/            playable sample games, the dedicated server and visual-novel samples, and the 9-chapter tutorial
├─ library/             shared asset, plugin and template library index
├─ skills/              Agent Skills package (bunx skills add nsgo-dev/game)
├─ docs/                bilingual site documentation (en/ and zh/)
├─ design/editor/       editor design artboards that pkg/editor implements
├─ website/             official site at https://nsgo.games (TanStack Start + React)
├─ benchmarks/          bench baseline and package size budgets
├─ tools/               contributor tooling module (changelog, agenteval, gameschema, gameapi, pixelfxref)
└─ changelog.d/         release changelog fragments

Targets & Compatibility

gameGoNSGoBuild targets
v0.1.01.27+v0.4.0+macOS, iOS, Windows, Linux, Android, Web (feature matrix)

Feature support and CI test coverage differ by target—see Platform Support (中文) for the per-feature matrix, experimental targets (HarmonyOS, tvOS, watchOS and mini programs) and upstream gap links. Consoles (Nintendo Switch, PlayStation and Xbox) are out of scope: their SDKs are under NDA and require C toolchains, whereas NSGo and this repository are pure Go with no hand-written C. See Building and Shipping for signing, notarization, store packaging and cross-target nsgo check.

Contributing & License

Contributions are welcome—see CONTRIBUTING.md for local test commands, cross-target checks, coding conventions and pull request guidelines.

Licensed under the Apache-2.0 License.