pkg/

directory
v0.3.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: Apache-2.0

Directories

Path Synopsis
Package a11y adds game accessibility primitives built on NSGo's public API: live captions for dialogue and sound effects, color-blind-safe palettes with CVD simulation and WCAG contrast helpers, persistent assist options, and screen-reader-ready native menus.
Package a11y adds game accessibility primitives built on NSGo's public API: live captions for dialogue and sound effects, color-blind-safe palettes with CVD simulation and WCAG contrast helpers, persistent assist options, and screen-reader-ready native menus.
Package ability runs gameplay abilities with costs, cooldowns, charges, cast and channel times and conditions, activated by input actions and advanced one fixed game.Loop step at a time.
Package ability runs gameplay abilities with costs, cooldowns, charges, cast and channel times and conditions, activated by input actions and advanced one fixed game.Loop step at a time.
ai
Package ai provides deterministic game AI decision-making and movement building blocks: steering behaviors, velocity-based local avoidance (ORCA) in 2D and 3D XZ, behavior trees, utility AI scoring, goal-oriented action planning (GOAP), attack token pools, engagement slot assignment, squad coordination, spatial influence maps, tactical position queries with cover points, and perception with sight, hearing and memory.
Package ai provides deterministic game AI decision-making and movement building blocks: steering behaviors, velocity-based local avoidance (ORCA) in 2D and 3D XZ, behavior trees, utility AI scoring, goal-oriented action planning (GOAP), attack token pools, engagement slot assignment, squad coordination, spatial influence maps, tactical position queries with cover points, and perception with sight, hearing and memory.
cover3d
Package cover3d generates ai.CoverPoint values from the colliders of a physics3d world, projecting the vertical faces of 3D obstacles onto the XZ ground plane.
Package cover3d generates ai.CoverPoint values from the colliders of a physics3d world, projecting the vertical faces of 3D obstacles onto the XZ ground plane.
internal/sense
Package sense is the perception engine behind ai.PerceptionSystem and perception3d.System: sight cones, a round-robin line-of-sight budget, hearing, and per-stimulus memory, all on float64 3D vectors so the 2D and 3D front ends share one implementation.
Package sense is the perception engine behind ai.PerceptionSystem and perception3d.System: sight cones, a round-robin line-of-sight budget, hearing, and per-stimulus memory, all on float64 3D vectors so the 2D and 3D front ends share one implementation.
perception3d
Package perception3d is ai's perception for agents in a 3D world: sight cones around a forward vector, hearing and per-stimulus memory on math3d.Vec3, with line of sight through physics3d raycasts or a game's own check.
Package perception3d is ai's perception for agents in a 3D world: sight cones around a forward vector, hearing and per-stimulus memory on math3d.Vec3, with line of sight through physics3d raycasts or a game's own check.
Package anim3d provides 3D skeletal animation playback for glTF 2.0 models, state machines, 1D/2D blend spaces with foot-phase synchronization, layered bone-masked and additive blending, timed animation events, inverse kinematics solvers, and root motion extraction for NSGo 3D games.
Package anim3d provides 3D skeletal animation playback for glTF 2.0 models, state machines, 1D/2D blend spaces with foot-phase synchronization, layered bone-masked and additive blending, timed animation events, inverse kinematics solvers, and root motion extraction for NSGo 3D games.
Package animclip plays animation clips, the resource files of type animation that key any registered property of scene objects on a timeline, as Godot's AnimationPlayer does.
Package animclip plays animation clips, the resource files of type animation that key any registered property of scene objects on a timeline, as Godot's AnimationPlayer does.
Package assets loads a game's atlases, sounds, images and custom data asynchronously without blocking display frames, organizes them into named per-scene groups with reactive progress, releases them when a scene ends, and provides a loading screen component.
Package assets loads a game's atlases, sounds, images and custom data asynchronously without blocking display frames, organizes them into named per-scene groups with reactive progress, releases them when a scene ends, and provides a loading screen component.
Package bullets spawns, moves and draws the bullet patterns of shooters: rings, spirals and aimed bursts defined in versioned YAML.
Package bullets spawns, moves and draws the bullet patterns of shooters: rings, spirals and aimed bursts defined in versioned YAML.
Package cards drags cards between the slots of a board in the game view and lays them out as fanned hands, decks, piles and grids, animating every move with game/tween on game.Loop's fixed steps.
Package cards drags cards between the slots of a board in the game view and lays them out as fanned hands, decks, piles and grids, animating every move with game/tween on game.Loop's fixed steps.
Package cutscene plays video and in-engine timeline cutscenes in a game: in a scene or between scenes, skippable by a press, a key or back, and calling the game back when one ends or is skipped.
Package cutscene plays video and in-engine timeline cutscenes in a game: in a scene or between scenes, skippable by a press, a key or back, and calling the game back when one ends or is skipped.
Package datatable loads typed game data tables (enemies, items, levels, quests) from CSV, JSON, and YAML with rich per-cell error reporting and live hot reload.
Package datatable loads typed game data tables (enemies, items, levels, quests) from CSV, JSON, and YAML with rich per-cell error reporting and live hot reload.
datatablewatch
Package datatablewatch adds hot reload to datatable.Table through a tooling/hotreload.Watcher.
Package datatablewatch adds hot reload to datatable.Table through a tooling/hotreload.Watcher.
Package dialogue runs branching conversations written as Yarn Spinner (.yarn) scripts: ParseYarn reads a Script of titled nodes, and a Runner steps through it line by line and choice by choice, evaluates its variables and conditions, and hands each <<command>> to Options.OnCommand or publishes it as an Event on a flow.Bus.
Package dialogue runs branching conversations written as Yarn Spinner (.yarn) scripts: ParseYarn reads a Script of titled nodes, and a Runner steps through it line by line and choice by choice, evaluates its variables and conditions, and hands each <<command>> to Options.OnCommand or publishes it as an Event on a flow.Bus.
Package editor implements the NSGo Scene Editor over pkg/sceneformat.
Package editor implements the NSGo Scene Editor over pkg/sceneformat.
editorcmd
Package editorcmd is the scene editor's command line, which `go tool game editor` runs and which a game's own editor command runs with the game's component types and editor plugins built in.
Package editorcmd is the scene editor's command line, which `go tool game editor` runs and which a game's own editor command runs with the game's component types and editor plugins built in.
editormcp
Package editormcp is the NSGo Game Editor's MCP server: an agent reads and edits the project open in the editor through it, with the same editor commands the inspector, scene tree and viewport use, so every edit is an undo step the person sees and can take back.
Package editormcp is the NSGo Game Editor's MCP server: an agent reads and edits the project open in the editor through it, with the same editor commands the inspector, scene tree and viewport use, so every edit is an undo step the person sees and can take back.
internal/profiler
Package profiler is the editor's live profiler: the MCP clients that read a running game's game_perf_* tools, the recorded frame timeline and zone table, Chrome/Perfetto trace export, and the Play-mode strip and docked Profiler panel views.
Package profiler is the editor's live profiler: the MCP clients that read a running game's game_perf_* tools, the recorded frame timeline and zone table, Chrome/Perfetto trace export, and the Play-mode strip and docked Profiler panel views.
internal/qrcode
Package qrcode implements a deterministic, self-contained pure-Go ISO/IEC 18004 QR Code Model 2 encoder (versions 1–10, byte mode, error correction levels L/M/Q/H).
Package qrcode implements a deterministic, self-contained pure-Go ISO/IEC 18004 QR Code Model 2 encoder (versions 1–10, byte mode, error correction levels L/M/Q/H).
keychain
Package keychain stores secrets in the host OS keychain: macOS Keychain, the Freedesktop Secret Service on Linux, and Windows Credential Manager, with an in-memory Store for tests.
Package keychain stores secrets in the host OS keychain: macOS Keychain, the Freedesktop Secret Service on Linux, and Windows Credential Manager, with an in-memory Store for tests.
theme
Package theme holds the NSGo editor's design tokens from design/editor/Spec.dc.html: the embedded YAML theme, the dark and light palettes, type, spacing, shape and motion constants, and the WCAG 2.2 contrast table every palette is measured against.
Package theme holds the NSGo editor's design tokens from design/editor/Spec.dc.html: the embedded YAML theme, the dark and light palettes, type, spacing, shape and motion constants, and the WCAG 2.2 contrast table every palette is measured against.
Package entities provides a small, zero-reflection entity-component-system (ECS) for NSGo games: generational entities, typed sparse-set components, allocation-free queries, topologically ordered systems, prefabs and JSON world snapshots integrated with game/save.
Package entities provides a small, zero-reflection entity-component-system (ECS) for NSGo games: generational entities, typed sparse-set components, allocation-free queries, topologically ordered systems, prefabs and JSON world snapshots integrated with game/save.
Package fighting buffers per-step fighting-game input and recognizes motion inputs (quarter circles, dragon punches, charges, double taps), button presses and combos from YAML move sets.
Package fighting buffers per-step fighting-game input and recognizes motion inputs (quarter circles, dragon punches, charges, double taps), button presses and combos from YAML move sets.
Package flow holds gameplay flow primitives driven by a game.Loop's fixed steps: game-clock timers, finite and hierarchical state machines, step sequences and a typed event bus.
Package flow holds gameplay flow primitives driven by a game.Loop's fixed steps: game-clock timers, finite and hierarchical state machines, step sequences and a typed event bus.
Package fog tracks fog of war for strategy games: which cells of an orthogonal, isometric, staggered or hexagonal tile grid each team has explored and which it can see right now.
Package fog tracks fog of war for strategy games: which cells of an orthogonal, isometric, staggered or hexagonal tile grid each team has explored and which it can see right now.
Package framedata gives fighting games per-frame hitboxes, hurtboxes and hit properties for their moves, authored as versioned YAML and resolved deterministically once per fixed step.
Package framedata gives fighting games per-frame hitboxes, hurtboxes and hit properties for their moves, authored as versioned YAML and resolved deterministically once per fixed step.
Package plugin defines the runtime plugin contract and deterministic installer for Go plugins.
Package plugin defines the runtime plugin contract and deterministic installer for Go plugins.
devplugin
Package devplugin installs development-time plugin contributions (MCP bridge prefabs and playtest bots) separately from github.com/nsgo-dev/game/pkg/gameplugin.
Package devplugin installs development-time plugin contributions (MCP bridge prefabs and playtest bots) separately from github.com/nsgo-dev/game/pkg/gameplugin.
manifest
Package manifest parses, validates and canonically encodes plugin.yaml manifests for Go plugins.
Package manifest parses, validates and canonically encodes plugin.yaml manifests for Go plugins.
Package gametest provides deterministic software rendering of nsgo Canvas draw operations, golden PNG comparison, and visual diff generation for tests.
Package gametest provides deterministic software rendering of nsgo Canvas draw operations, golden PNG comparison, and visual diff generation for tests.
Package gameui provides stylized in-canvas menus, spatial focus navigation, virtual-resolution scaling, and world-anchored native NSGo overlays.
Package gameui provides stylized in-canvas menus, spatial focus navigation, virtual-resolution scaling, and world-anchored native NSGo overlays.
Package gltf implements a pure-Go glTF 2.0 (.gltf) and binary GLB (.glb) asset loader using only the Go standard library and pkg/math3d.
Package gltf implements a pure-Go glTF 2.0 (.gltf) and binary GLB (.glb) asset loader using only the Go standard library and pkg/math3d.
internal/draco
Package draco decodes Draco-compressed triangle meshes (bitstream version 2.2, the version KHR_draco_mesh_compression normatively references) in pure Go.
Package draco decodes Draco-compressed triangle meshes (bitstream version 2.2, the version KHR_draco_mesh_compression normatively references) in pure Go.
internal/meshopt
Package meshopt decodes the meshoptimizer bitstreams used by the EXT_meshopt_compression and KHR_meshopt_compression glTF extensions in pure Go: the attribute codec (versions 0 and 1), the triangle and index sequence codecs, and the octahedral, quaternion, exponential and color filters.
Package meshopt decodes the meshoptimizer bitstreams used by the EXT_meshopt_compression and KHR_meshopt_compression glTF extensions in pure Go: the attribute codec (versions 0 and 1), the triangle and index sequence codecs, and the octahedral, quaternion, exponential and color filters.
Package idle provides the arithmetic idle and incremental games need: a Number that holds values far beyond float64's range, progress earned while the game was closed, and formatting of very large numbers in short (1.23K, 4.5万), letter, scientific (1.23e45), engineering and full forms.
Package idle provides the arithmetic idle and incremental games need: a Number that holds values far beyond float64's range, progress earned while the game was closed, and formatting of very large numbers in short (1.23K, 4.5万), letter, scientific (1.23e45), engineering and full forms.
Package importsettings reads and writes import settings sidecars: a small YAML file beside an image, a sound, a font or a model, named after it with ".import.yaml" appended (Path), that says how game assets imports it, as Godot's .import files do.
Package importsettings reads and writes import settings sidecars: a small YAML file beside an image, a sound, a font or a model, named after it with ".import.yaml" appended (Path), that says how game assets imports it, as Godot's .import files do.
Package input turns touch regions, mouse buttons, relative mouse motion under a pointer lock, keyboard keys, game controller buttons and sticks, and device motion sensors into named actions and axes sampled once per game.Loop step, saves bindings in core.Storage across launches, and plays haptic and rumble feedback.
Package input turns touch regions, mouse buttons, relative mouse motion under a pointer lock, keyboard keys, game controller buttons and sticks, and device motion sensors into named actions and axes sampled once per game.Loop step, saves bindings in core.Storage across launches, and plays haptic and rumble feedback.
Package inventory holds gameplay items: item definitions read from versioned YAML, slot-based containers of item stacks, typed equipment slots, and snapshots that round-trip through a game/save Store.
Package inventory holds gameplay items: item definitions read from versioned YAML, slot-based containers of item stacks, typed equipment slots, and snapshots that round-trip through a game/save Store.
Package jsonschema builds JSON Schemas (draft-07) from Go types and checks decoded YAML or JSON values against them, so editors and AI tools can complete and validate the YAML files a game's author writes.
Package jsonschema builds JSON Schemas (draft-07) from Go types and checks decoded YAML or JSON values against them, so editors and AI tools can complete and validate the YAML files a game's author writes.
Package ktx2 provides a pure-Go KTX2 v2.0 texture container encoder, decoder, supercompression decoder (BasisLZ, Zstandard, ZLIB), mipmap chain generator, Basis Universal ETC1S and UASTC 4x4 codecs, and block texture transcoder (BC1, BC3, BC7, ETC2 RGB8/RGBA8, ASTC 4x4, RGBA8).
Package ktx2 provides a pure-Go KTX2 v2.0 texture container encoder, decoder, supercompression decoder (BasisLZ, Zstandard, ZLIB), mipmap chain generator, Basis Universal ETC1S and UASTC 4x4 codecs, and block texture transcoder (BC1, BC3, BC7, ETC2 RGB8/RGBA8, ASTC 4x4, RGBA8).
Package l10n provides localization for NSGo games: versioned YAML and JSON string tables with BCP-47 locale fallback, interpolation, and CLDR pluralization; per-language asset resolution, fs.FS discovery, versioned YAML asset manifests, runtime locale switching, and missing-variant auditing; Unicode script detection and per-script/per-locale font selection; and right-to-left text reordering and HUD layout mirroring.
Package l10n provides localization for NSGo games: versioned YAML and JSON string tables with BCP-47 locale fallback, interpolation, and CLDR pluralization; per-language asset resolution, fs.FS discovery, versioned YAML asset manifests, runtime locale switching, and missing-variant auditing; Unicode script detection and per-script/per-locale font selection; and right-to-left text reordering and HUD layout mirroring.
Package lights2d implements 2D lighting for NSGo games: point and spot lights composited over ambient darkness, exact 2D visibility-polygon shadows from occluders, and tangent-space normal-mapped sprite shading.
Package lights2d implements 2D lighting for NSGo games: point and spot lights composited over ambient darkness, exact 2D visibility-polygon shadows from occluders, and tangent-space normal-mapped sprite shading.
Package loaderr is the error that every loader and validator in this module returns for a file it cannot use: which file, which line and column, which field, what was wrong, what was expected and how to fix it, so a person or an agent reading the message can act on it without opening the loader's source.
Package loaderr is the error that every loader and validator in this module returns for a file it cannot use: which file, which line and column, which field, what was wrong, what was expected and how to fix it, so a person or an agent reading the message can act on it without opening the loader's source.
Package loot rolls nested weighted drop tables with guaranteed drops and pity counters on the deterministic streams of package random.
Package loot rolls nested weighted drop tables with guaranteed drops and pity counters on the deterministic streams of package random.
Package math2d provides small, zero-allocation 2D value types shared by game packages: vectors (Vec2), axis-aligned rectangles (Rect), circles (Circle), and 3×2 affine transforms (Affine).
Package math2d provides small, zero-allocation 2D value types shared by game packages: vectors (Vec2), axis-aligned rectangles (Rect), circles (Circle), and 3×2 affine transforms (Affine).
Package math3d provides 3D linear algebra, rotations, transforms, and spatial primitives for NSGo 3D games using pure Go float32 types with zero external dependencies.
Package math3d provides 3D linear algebra, rotations, transforms, and spatial primitives for NSGo 3D games using pure Go float32 types with zero external dependencies.
Package mcp exposes a running NSGo game's state to coding agents over MCP through github.com/nsgo-dev/nsgo/automation.
Package mcp exposes a running NSGo game's state to coding agents over MCP through github.com/nsgo-dev/nsgo/automation.
Package mempool provides deterministic, allocation-free object pools for hot game loops: Pool, Arena with its [Handle]s, and SlicePool.
Package mempool provides deterministic, allocation-free object pools for hot game loops: Pool, Arena with its [Handle]s, and SlicePool.
Package modding loads and runs sandboxed TSX/JS game mods on top of NSGo's tsx runtime.
Package modding loads and runs sandboxed TSX/JS game mods on top of NSGo's tsx runtime.
online
accounts
Package accounts is a self-hostable player account service: guest accounts that upgrade to email sign-in or to a linked OAuth or platform identity (Game Center, Play Games, Steam), and short-lived tokens a game server verifies offline.
Package accounts is a self-hostable player account service: guest accounts that upgrade to email sign-in or to a linked OAuth or platform identity (Game Center, Play Games, Steam), and short-lived tokens a game server verifies offline.
accounts/authtoken
Package authtoken issues and verifies the short-lived player tokens of the accounts service.
Package authtoken issues and verifies the short-lived player tokens of the accounts service.
accounts/pgstore
Package pgstore opens an accounts.Store in a Postgres database with the github.com/jackc/pgx/v5 driver.
Package pgstore opens an accounts.Store in a Postgres database with the github.com/jackc/pgx/v5 driver.
accounts/sqlitestore
Package sqlitestore opens an accounts.Store in a SQLite database file, with the pure-Go modernc.org/sqlite driver (no cgo).
Package sqlitestore opens an accounts.Store in a SQLite database file, with the pure-Go modernc.org/sqlite driver (no cgo).
accounts/sqlstore
Package sqlstore is an accounts.Store over database/sql, shared by the SQLite (package sqlitestore) and Postgres (package pgstore) stores.
Package sqlstore is an accounts.Store over database/sql, shared by the SQLite (package sqlitestore) and Postgres (package pgstore) stores.
accounts/storetest
Package storetest checks an accounts.Store implementation against the Store contract.
Package storetest checks an accounts.Store implementation against the Store contract.
achievements
Package achievements declares a game's achievements once, in a versioned YAML file, tracks each player's progress toward them, and reports that progress through NSGo's platform game services: Game Center on macOS, iOS and tvOS, and Google Play Games Services on Android.
Package achievements declares a game's achievements once, in a versioned YAML file, tracks each player's progress toward them, and reports that progress through NSGo's platform game services: Game Center on macOS, iOS and tvOS, and Google Play Games Services on Android.
audit
Package audit writes an append-only JSON Lines log of a server's administrative and security-relevant events — kicks, replaced sessions, operator commands and destructive calls — with the actor and the subject of each, so support questions, anti-cheat review and accountability for admin power have a trail that survives restarts.
Package audit writes an append-only JSON Lines log of a server's administrative and security-relevant events — kicks, replaced sessions, operator commands and destructive calls — with the actor and the subject of each, so support questions, anti-cheat review and accountability for admin power have a trail that survives restarts.
cloudsave
Package cloudsave is a self-hostable cloud save service: per-account save slots over HTTPS, kept in versions so that concurrent writes from two devices are refused rather than silently overwritten, slots over a size limit are rejected, and the last few versions of each slot can be listed and restored.
Package cloudsave is a self-hostable cloud save service: per-account save slots over HTTPS, kept in versions so that concurrent writes from two devices are refused rather than silently overwritten, slots over a size limit are rejected, and the last few versions of each slot can be listed and restored.
cloudsave/pgstore
Package pgstore opens a cloudsave.Store in a Postgres database with the github.com/jackc/pgx/v5 driver.
Package pgstore opens a cloudsave.Store in a Postgres database with the github.com/jackc/pgx/v5 driver.
cloudsave/sqlitestore
Package sqlitestore opens a cloudsave.Store in a SQLite database file, with the pure-Go modernc.org/sqlite driver (no cgo).
Package sqlitestore opens a cloudsave.Store in a SQLite database file, with the pure-Go modernc.org/sqlite driver (no cgo).
cloudsave/sqlstore
Package sqlstore is a cloudsave.Store over database/sql, written once for SQLite and Postgres and opened through a driver package: sqlitestore (with the pure-Go modernc.org/sqlite driver) or pgstore (with github.com/jackc/pgx/v5).
Package sqlstore is a cloudsave.Store over database/sql, written once for SQLite and Postgres and opened through a driver package: sqlitestore (with the pure-Go modernc.org/sqlite driver) or pgstore (with github.com/jackc/pgx/v5).
cloudsave/storetest
Package storetest checks a cloudsave.Store against the contract the service relies on.
Package storetest checks a cloudsave.Store against the contract the service relies on.
gameserver
Package gameserver runs one or more matches of a game at fixed tick rates in a plain Go process, without an NSGo app, window or core.Scope.
Package gameserver runs one or more matches of a game at fixed tick rates in a plain Go process, without an NSGo app, window or core.Scope.
internal/cors
Package cors validates web origins and wraps an HTTP handler with Cross-Origin Resource Sharing headers for the self-hosted online services.
Package cors validates web origins and wraps an HTTP handler with Cross-Origin Resource Sharing headers for the self-hosted online services.
internal/wsproto
Package wsproto implements the RFC 6455 WebSocket wire format shared by the netplay transports and pkg/online/wsclient: frame reading and writing with slow-loris-safe allocation, the opening handshake's accept key, and the native client upgrade.
Package wsproto implements the RFC 6455 WebSocket wire format shared by the netplay transports and pkg/online/wsclient: frame reading and writing with slow-loris-safe allocation, the opening handshake's accept key, and the native client upgrade.
leaderboard
Package leaderboard submits scores to and shows the platform's leaderboards, Game Center on Apple platforms and Play Games Services on Android, through NSGo's gameservices package.
Package leaderboard submits scores to and shows the platform's leaderboards, Game Center on Apple platforms and Play Games Services on Android, through NSGo's gameservices package.
leaderboard/selfhost
Package selfhost is a self-hostable leaderboard service, for cross-platform games and games on platforms without a game service: one board ranks the scores a player's devices submit from every platform, keyed by the account the accounts package signs in.
Package selfhost is a self-hostable leaderboard service, for cross-platform games and games on platforms without a game service: one board ranks the scores a player's devices submit from every platform, keyed by the account the accounts package signs in.
liveops
Package liveops holds provider-agnostic live operations primitives for NSGo games: crash reports, consent-gated analytics, a cloud-save sync interface, in-app purchases credited into the save, local re-engagement reminders, store review prompt policies, and share cards and payload-carrying invites.
Package liveops holds provider-agnostic live operations primitives for NSGo games: crash reports, consent-gated analytics, a cloud-save sync interface, in-app purchases credited into the save, local re-engagement reminders, store review prompt policies, and share cards and payload-carrying invites.
liveops/crashreport
Package crashreport holds the JSON schema of a crash report, shared by the client-side liveops.CrashReporter and the server-side gameserver.Panic report.
Package crashreport holds the JSON schema of a crash report, shared by the client-side liveops.CrashReporter and the server-side gameserver.Panic report.
netplay
Package netplay provides cross-target multiplayer primitives for NSGo games:
Package netplay provides cross-target multiplayer primitives for NSGo games:
netplay/wire
Package wire defines the YAML wire message schema format for pkg/online/netplay and game protocols, integer-only quantization helpers, bit-packing primitives, and deterministic zero-allocation Go and TypeScript codec generators.
Package wire defines the YAML wire message schema format for pkg/online/netplay and game protocols, integer-only quantization helpers, bit-packing primitives, and deterministic zero-allocation Go and TypeScript codec generators.
presence
Package presence reports what the player is doing (level, game mode, party size, timestamps, artwork, and custom localization tokens) to Steam and Discord friend lists through a single provider-neutral API.
Package presence reports what the player is doing (level, game mode, party size, timestamps, artwork, and custom localization tokens) to Steam and Discord friend lists through a single provider-neutral API.
wsclient
Package wsclient provides a plain RFC 6455 WebSocket client for talking to servers that are not a netplay WebSocketServer: third-party game backends such as Nakama or Colyseus, chat integrations, hosted realtime services, or a custom JSON protocol shared with a web dashboard.
Package wsclient provides a plain RFC 6455 WebSocket client for talking to servers that are not a netplay WebSocketServer: third-party game backends such as Nakama or Colyseus, chat integrations, hosted realtime services, or a custom JSON protocol shared with a web dashboard.
Package particles provides a deterministic 2D particle emitter stepped by game.Loop and drawn through sprite.Batch.
Package particles provides a deterministic 2D particle emitter stepped by game.Loop and drawn through sprite.Batch.
Package pathfind provides deterministic 2D pathfinding: grid A* (with line-of-sight smoothing, bounded expansion budgets, partial paths, incremental searches, and budgeted request queues), HPA* hierarchical pathfinding with incremental cluster updates, Jump Point Search (JPS) for uniform-cost grids, generic graph A*/Dijkstra/range search with hex tilemap adapters and 2D/3D waypoint graphs, square, hexagonal and staggered grid topologies read from tilemaps, and 2D navigation meshes (single or tiled, with dynamic obstacles) with funnel smoothing, polygon areas/filters, off-mesh links, reusable zero-allocation queries, and path-corridor navigation agents.
Package pathfind provides deterministic 2D pathfinding: grid A* (with line-of-sight smoothing, bounded expansion budgets, partial paths, incremental searches, and budgeted request queues), HPA* hierarchical pathfinding with incremental cluster updates, Jump Point Search (JPS) for uniform-cost grids, generic graph A*/Dijkstra/range search with hex tilemap adapters and 2D/3D waypoint graphs, square, hexagonal and staggered grid topologies read from tilemaps, and 2D navigation meshes (single or tiled, with dynamic obstacles) with funnel smoothing, polygon areas/filters, off-mesh links, reusable zero-allocation queries, and path-corridor navigation agents.
navbake
Package navbake bakes 2D navigation meshes for game/pathfind from level geometry: an outline with concave obstacles and holes, or a tilemap's solid cells, shrunk by an agent's radius and divided into the convex polygons pathfind.NavMesh searches.
Package navbake bakes 2D navigation meshes for game/pathfind from level geometry: an outline with concave obstacles and holes, or a tilemap's solid cells, shrunk by an agent's radius and divided into the convex polygons pathfind.NavMesh searches.
Package pathfind3d provides deterministic 3D navigation for NSGo 3D games: navigation meshes of walkable 3D polygons with slope filtering, polygon areas/flags/filters, off-mesh links, a BVH spatial index, reusable zero-allocation queries (NavMeshQuery) and incremental searches, path-corridor navigation agents and agent groups, and tiled navigation meshes with dynamic obstacles that stream in and out with world3d's chunks (NavTileStreamer).
Package pathfind3d provides deterministic 3D navigation for NSGo 3D games: navigation meshes of walkable 3D polygons with slope filtering, polygon areas/flags/filters, off-mesh links, a BVH spatial index, reusable zero-allocation queries (NavMeshQuery) and incremental searches, path-corridor navigation agents and agent groups, and tiled navigation meshes with dynamic obstacles that stream in and out with world3d's chunks (NavTileStreamer).
navbake3d
Package navbake3d bakes 3D navigation meshes from level geometry, as Recast, Godot's NavigationRegion3D and Unity's NavMeshSurface do, so a 3D game no longer authors pathfind3d.NavMesh polygons by hand.
Package navbake3d bakes 3D navigation meshes from level geometry, as Recast, Godot's NavigationRegion3D and Unity's NavMeshSurface do, so a 3D game no longer authors pathfind3d.NavMesh polygons by hand.
Package physics3d provides compact, deterministic 3D collision detection, raycasting, rigid-body dynamics, and a kinematic character controller in pure Go.
Package physics3d provides compact, deterministic 3D collision detection, raycasting, rigid-body dynamics, and a kinematic character controller in pure Go.
Package pixelfx is a Go port of pixelfx (https://github.com/patch-gg/pixelfx), a library of pixel art effects and animations, each a small procedural program: fire, explosions, magic, weather, UI, pickups, transitions, critters, and character moves acted out with wind-up, hit-stop and recovery.
Package pixelfx is a Go port of pixelfx (https://github.com/patch-gg/pixelfx), a library of pixel art effects and animations, each a small procedural program: fire, explosions, magic, weather, UI, pickups, transitions, critters, and character moves acted out with wind-up, hit-stop and recovery.
arcane
Package arcane is pixelfx's arcane category: arcane beam, arcane missiles, arcane orb, blink in, blink out, magic circle cast, mana burst, portal, rune circle, spell charge, star fall and time stop, each a pixelfx.Effect registered as "arcane/<name>" when the package is imported.
Package arcane is pixelfx's arcane category: arcane beam, arcane missiles, arcane orb, blink in, blink out, magic circle cast, mana burst, portal, rune circle, spell charge, star fall and time stop, each a pixelfx.Effect registered as "arcane/<name>" when the package is imported.
critters
Package critters is pixelfx's critters category: bat, bird, butterfly, eyeball, fish school, flying skull, frog, ghost, jellyfish, slime, snake and wisp, each a pixelfx.Effect registered as "critters/<name>" when the package is imported.
Package critters is pixelfx's critters category: bat, bird, butterfly, eyeball, fish school, flying skull, frog, ghost, jellyfish, slime, snake and wisp, each a pixelfx.Effect registered as "critters/<name>" when the package is imported.
explosions
Package explosions is pixelfx's explosions category: barrel explosion, big explosion, cartoon POW, dirt explosion, firework burst, firework rocket, grenade, implosion, nuke, plasma explosion, small explosion and smoke bomb, each a pixelfx.Effect registered as "explosions/<name>" when the package is imported.
Package explosions is pixelfx's explosions category: barrel explosion, big explosion, cartoon POW, dirt explosion, firework burst, firework rocket, grenade, implosion, nuke, plasma explosion, small explosion and smoke bomb, each a pixelfx.Effect registered as "explosions/<name>" when the package is imported.
fire
Package fire is pixelfx's fire category: brazier, campfire, candle, fire breath, fire ring, fire tornado, fireball, flame pillar, flamethrower, meteor, spirit flame and torch, each a pixelfx.Effect registered as "fire/<name>" when the package is imported.
Package fire is pixelfx's fire category: brazier, campfire, candle, fire breath, fire ring, fire tornado, fireball, flame pillar, flamethrower, meteor, spirit flame and torch, each a pixelfx.Effect registered as "fire/<name>" when the package is imported.
holy
Package holy is pixelfx's holy category: blessings, divine shields, feather bursts, halos, heals and healing rings, holy pillars, resurrections, smites and sunbursts, each a pixelfx.Effect registered as "holy/<name>" when the package is imported.
Package holy is pixelfx's holy category: blessings, divine shields, feather bursts, halos, heals and healing rings, holy pillars, resurrections, smites and sunbursts, each a pixelfx.Effect registered as "holy/<name>" when the package is imported.
ice
Package ice is pixelfx's ice category: blizzard vortex, freeze, frost breath, frost nova, ice crystal, ice lance, ice shatter, ice spikes, icicle fall and snowflake burst, each a pixelfx.Effect registered as "ice/<name>" when the package is imported.
Package ice is pixelfx's ice category: blizzard vortex, freeze, frost breath, frost nova, ice crystal, ice lance, ice shatter, ice spikes, icicle fall and snowflake burst, each a pixelfx.Effect registered as "ice/<name>" when the package is imported.
impacts
Package impacts is pixelfx's impacts category: blunt hits, bullet impacts, critical hits, ground slams, heavy landings, hit flashes, hit sparks, anime impact frames, parries, ricochets and shield blocks, each a pixelfx.Effect registered as "impacts/<name>" when the package is imported.
Package impacts is pixelfx's impacts category: blunt hits, bullet impacts, critical hits, ground slams, heavy landings, hit flashes, hit sparks, anime impact frames, parries, ricochets and shield blocks, each a pixelfx.Effect registered as "impacts/<name>" when the package is imported.
internal/pixelfxtest
Package pixelfxtest checks the Go port of pixelfx against pixelfx itself: it renders an effect the way tools/pixelfxref renders it with pixelfx at the pinned commit, and compares the frames with the reference PNGs that tool wrote.
Package pixelfxtest checks the Go port of pixelfx against pixelfx itself: it renders an effect the way tools/pixelfxref renders it with pixelfx at the pinned commit, and compares the frames with the reference PNGs that tool wrote.
lightning
Package lightning is pixelfx's lightning category: ball lightning, chain lightning, charge up, electrified, lightning strike, plasma ball, spark arc, storm cloud, tesla coil, thunderclap and zap hit, each a pixelfx.Effect registered as "lightning/<name>" when the package is imported.
Package lightning is pixelfx's lightning category: ball lightning, chain lightning, charge up, electrified, lightning strike, plasma ball, spark arc, storm cloud, tesla coil, thunderclap and zap hit, each a pixelfx.Effect registered as "lightning/<name>" when the package is imported.
melee
Package melee is pixelfx's melee category: claw swipe, dagger flurry, double slash, hammer smash, heavy cleave, scythe reap, spear sweep, spin slash, sword slash, thrust, uppercut and whip crack, each a pixelfx.Effect a character acts out (pixelfx.Perform), registered as "melee/<name>" when the package is imported.
Package melee is pixelfx's melee category: claw swipe, dagger flurry, double slash, hammer smash, heavy cleave, scythe reap, spear sweep, spin slash, sword slash, thrust, uppercut and whip crack, each a pixelfx.Effect a character acts out (pixelfx.Perform), registered as "melee/<name>" when the package is imported.
moves
Package moves is pixelfx's moves category: whole attacks, wind-up to recovery, chained from the effects of the other categories and acted out by a character (pixelfx.Perform), each a pixelfx.Effect registered as "moves/<name>" when the package is imported.
Package moves is pixelfx's moves category: whole attacks, wind-up to recovery, chained from the effects of the other categories and acted out by a character (pixelfx.Perform), each a pixelfx.Effect registered as "moves/<name>" when the package is imported.
nature
Package nature is pixelfx's nature category: acid splashes, boulders, earth spikes, healing blooms, leaf storms, poison clouds, quakes, root snares, spore bursts, thorns, tornadoes, toxic puddles and vine whips, each a pixelfx.Effect registered as "nature/<name>" when the package is imported.
Package nature is pixelfx's nature category: acid splashes, boulders, earth spikes, healing blooms, leaf storms, poison clouds, quakes, root snares, spore bursts, thorns, tornadoes, toxic puddles and vine whips, each a pixelfx.Effect registered as "nature/<name>" when the package is imported.
pickups
Package pickups is pixelfx's pickups category: coins, gems, crystals, hearts, keys, potions, power stars, XP orbs, loot beams, collect bursts and treasure chests, each a pixelfx.Effect registered as "pickups/<name>" when the package is imported.
Package pickups is pixelfx's pickups category: coins, gems, crystals, hearts, keys, potions, power stars, XP orbs, loot beams, collect bursts and treasure chests, each a pixelfx.Effect registered as "pickups/<name>" when the package is imported.
projectiles
Package projectiles is pixelfx's projectiles category: arrows, tracers, cannon shots, energy discs, signal flares, homing missiles, laser bolts, magic missiles, muzzle flashes, plasma shots and rockets, each a pixelfx.Effect registered as "projectiles/<name>" when the package is imported.
Package projectiles is pixelfx's projectiles category: arrows, tracers, cannon shots, energy discs, signal flares, homing missiles, laser bolts, magic missiles, muzzle flashes, plasma shots and rockets, each a pixelfx.Effect registered as "projectiles/<name>" when the package is imported.
scifi
Package scifi is pixelfx's sci-fi category: EMP blasts, energy cores, force fields, glitches, holograms, jetpacks, laser grids, scanners, teleporter pads, tractor beams and warp beams, each a pixelfx.Effect registered as "scifi/<name>" when the package is imported.
Package scifi is pixelfx's sci-fi category: EMP blasts, energy cores, force fields, glitches, holograms, jetpacks, laser grids, scanners, teleporter pads, tractor beams and warp beams, each a pixelfx.Effect registered as "scifi/<name>" when the package is imported.
shadow
Package shadow is pixelfx's shadow category: black holes, curses, dark explosions, eclipses, grasping hands, hex sigils, life steal, necro skulls, shadow flames, shadow tendrils, soul drain and void orbs, each a pixelfx.Effect registered as "shadow/<name>" when the package is imported.
Package shadow is pixelfx's shadow category: black holes, curses, dark explosions, eclipses, grasping hands, hex sigils, life steal, necro skulls, shadow flames, shadow tendrils, soul drain and void orbs, each a pixelfx.Effect registered as "shadow/<name>" when the package is imported.
spawn
Package spawn is pixelfx's spawn and death category: coin drops, disintegration, dissolve burn, egg hatching, cartoon poofs, respawn beams, ice shatter deaths, rising souls, spawn portals and summoning rises, each a pixelfx.Effect registered as "spawn/<name>" when the package is imported.
Package spawn is pixelfx's spawn and death category: coin drops, disintegration, dissolve burn, egg hatching, cartoon poofs, respawn beams, ice shatter deaths, rising souls, spawn portals and summoning rises, each a pixelfx.Effect registered as "spawn/<name>" when the package is imported.
status
Package status is pixelfx's status category: bleeding, burning, charmed, confused, cursed, frozen, haste, petrified, poisoned, rage, sleep, slowed and stunned, each a pixelfx.Effect registered as "status/<name>" when the package is imported.
Package status is pixelfx's status category: bleeding, burning, charmed, confused, cursed, frozen, haste, petrified, poisoned, rage, sleep, slowed and stunned, each a pixelfx.Effect registered as "status/<name>" when the package is imported.
transitions
Package transitions is pixelfx's transitions category: full-screen 320 x 180 wipes, irises, dissolves, blinds, CRT switch, glitch, burn and glass shatter effects, each a pixelfx.Effect registered as "transitions/<name>" when the package is imported.
Package transitions is pixelfx's transitions category: full-screen 320 x 180 wipes, irises, dissolves, blinds, CRT switch, glitch, burn and glass shatter effects, each a pixelfx.Effect registered as "transitions/<name>" when the package is imported.
ui
Package ui is pixelfx's UI category: damage and crit numbers, combo counters, countdowns, coin counters, health bars, hearts, alerts, achievements, level-up banners and confetti, each a pixelfx.Effect registered as "ui/<name>" when the package is imported.
Package ui is pixelfx's UI category: damage and crit numbers, combo counters, countdowns, coin counters, health bars, hearts, alerts, achievements, level-up banners and confetti, each a pixelfx.Effect registered as "ui/<name>" when the package is imported.
water
Package water is pixelfx's water category: bubbles, drips, fountains, geysers, rain splashes, ripples, splashes, water jets, water orbs, waterfalls, crashing waves and whirlpools, each a pixelfx.Effect registered as "water/<name>" when the package is imported.
Package water is pixelfx's water category: bubbles, drips, fountains, geysers, rain splashes, ripples, splashes, water jets, water orbs, waterfalls, crashing waves and whirlpools, each a pixelfx.Effect registered as "water/<name>" when the package is imported.
weather
Package weather is pixelfx's weather category: aurora, blizzard, cherry blossoms, clouds, falling leaves, fireflies, fog, god rays, rain, shooting stars, snow and storm, each a pixelfx.Effect registered as "weather/<name>" when the package is imported.
Package weather is pixelfx's weather category: aurora, blizzard, cherry blossoms, clouds, falling leaves, fireflies, fog, god rays, rain, shooting stars, snow and storm, each a pixelfx.Effect registered as "weather/<name>" when the package is imported.
Package placeholder is a small asset pack for prototypes, tutorials and the examples, dedicated to the public domain under CC0 1.0 (License): sprite sheets, a tileset with a Tiled tileset and a sample level, a pixel font, sound effects and a music loop, and three glTF models.
Package placeholder is a small asset pack for prototypes, tutorials and the examples, dedicated to the public domain under CC0 1.0 (License): sprite sheets, a tileset with a Tiled tileset and a sample level, a pixel font, sound effects and a music loop, and three glTF models.
internal/gen
Package gen draws every file of the placeholder asset pack in code: sprite strips, a tileset with a Tiled tileset and map, a bitmap font, sounds and models, with the import settings sidecar of each image and sound.
Package gen draws every file of the placeholder asset pack in code: sprite strips, a tileset with a Tiled tileset and map, a bitmap font, sounds and models, with the import settings sidecar of each image and sound.
internal/samplegltf
Package samplegltf generates and validates the deterministic glTF 2.0 sample models of the placeholder asset pack (package placeholder's models folder), which the 3D Blender pipeline documentation describes.
Package samplegltf generates and validates the deterministic glTF 2.0 sample models of the placeholder asset pack (package placeholder's models folder), which the 3D Blender pipeline documentation describes.
Package platformer provides a platformer character controller on top of physics.CharacterBody: coyote time, jump buffering, variable jump height, wall slides and wall jumps, each with its own tunable timing.
Package platformer provides a platformer character controller on top of physics.CharacterBody: coyote time, jump buffering, variable jump height, wall slides and wall jumps, each with its own tunable timing.
Package postfx draws a game's frame through a chain of shader passes, in order, with uniforms animated on the platform's frame clock.
Package postfx draws a game's frame through a chain of shader passes, in order, with uniforms animated on the platform's frame clock.
Package procgen generates seeded, deterministic 2D levels on a tile grid: BSP rooms joined by corridors, cellular-automata caves, wave function collapse over a YAML rule set, and hand-made room templates placed on a dungeon layout graph.
Package procgen generates seeded, deterministic 2D levels on a tile grid: BSP rooms joined by corridors, cellular-automata caves, wave function collapse over a YAML rule set, and hand-made room templates placed on a dungeon layout graph.
Package project reads, validates, writes and applies game.yaml, the one project file at the root of a game that holds its settings.
Package project reads, validates, writes and applies game.yaml, the one project file at the root of a game that holds its settings.
Package quality picks a game's low, medium or high quality preset (resolution scale, particle budget, effects and shadows) from the device it runs on and the frame times it measures, and lets the player override the choice in settings.
Package quality picks a game's low, medium or high quality preset (resolution scale, particle budget, effects and shadows) from the device it runs on and the frame times it measures, and lets the player override the choice in settings.
Package quest runs quests with objectives (collect, reach, defeat, talk), quest states and rewards, defined in a versioned YAML Book and advanced by game events.
Package quest runs quests with objectives (collect, reach, defeat, talk), quest states and rewards, defined in a versioned YAML Book and advanced by game events.
Package random provides deterministic, cross-platform pseudo-random streams, procedural noise generators, and helpers for verifying simulation determinism.
Package random provides deterministic, cross-platform pseudo-random streams, procedural noise generators, and helpers for verifying simulation determinism.
Package render3d provides the GPU-agnostic pure-Go 3D render-queue pipeline and developer tools for NSGo 3D games.
Package render3d provides the GPU-agnostic pure-Go 3D render-queue pipeline and developer tools for NSGo 3D games.
Package replay records per-step game input to versioned YAML text files and plays it back deterministically for debugging and automated tests.
Package replay records per-step game input to versioned YAML text files and plays it back deterministically for debugging and automated tests.
Package resource reads, validates and writes shared resource files: reusable data that scenes and code reference by path instead of repeating it, as Godot's .tres files are.
Package resource reads, validates and writes shared resource files: reusable data that scenes and code reference by path instead of repeating it, as Godot's .tres files are.
Package rhythm keeps a rhythm game in time with its music: a beat map read from YAML, a music clock that reads the track's position and beat at any engine time, and a calibration of each device's audio and video latency.
Package rhythm keeps a rhythm game in time with its music: a beat map read from YAML, a music clock that reads the track's position and beat at any engine time, and a calibration of each device's audio and video latency.
Package rooms splits a 2D world into rooms with their own camera bounds and moves a tilemap.Camera between them with a cut, slide or fade transition, as metroidvania platformers do.
Package rooms splits a 2D world into rooms with their own camera bounds and moves a tilemap.Camera between them with a cut, slide or fade transition, as metroidvania platformers do.
Package rts provides the unit-control layer of a real-time strategy game: whole-grid and HPA* sector-limited flow fields that steer many units toward a goal over a pathfind.Grid, a Crowd that moves those units with push-apart separation or ORCA local avoidance and wall sliding, formations defined in versioned YAML, box and click selection, and numbered control groups.
Package rts provides the unit-control layer of a real-time strategy game: whole-grid and HPA* sector-limited flow fields that steer many units toward a goal over a pathfind.Grid, a Crowd that moves those units with push-apart separation or ORCA local avoidance and wall sliding, formations defined in versioned YAML, box and click selection, and numbered control groups.
Package save stores a game's save slots as versioned JSON in either the app's key-value storage (core.Storage) or files in a directory such as cx.DataDir.
Package save stores a game's save slots as versioned JSON in either the app's key-value storage (core.Storage) or files in a directory such as cx.DataDir.
Package scene organizes a game into ordered world- and screen-space layers, hit-tests sprites and custom shapes in view coordinates, and manages scene lifecycles, stacks, and transitions.
Package scene organizes a game into ordered world- and screen-space layers, hit-tests sprites and custom shapes in view coordinates, and manages scene lifecycles, stacks, and transitions.
Package scene3d provides a 3D scene graph, named socket attachments, a dynamic AABB Bounding Volume Hierarchy (BVH), BVH-accelerated spatial queries, perspective and orthographic cameras, camera controllers (orbit, first-person, third-person follow), screen-space picking, and box-projected 3D decals (Decal, DecalPool, GPUDecalRenderer) built on math3d.
Package scene3d provides a 3D scene graph, named socket attachments, a dynamic AABB Bounding Volume Hierarchy (BVH), BVH-accelerated spatial queries, perspective and orthographic cameras, camera controllers (orbit, first-person, third-person follow), screen-space picking, and box-projected 3D decals (Decal, DecalPool, GPUDecalRenderer) built on math3d.
Package sceneformat reads, validates, encodes and builds versioned YAML scene documents for NSGo games.
Package sceneformat reads, validates, encodes and builds versioned YAML scene documents for NSGo games.
Package scenemodel gives the objects of a scene file their 3D look: the built-in primitive an object names in mesh, or the glTF 2.0 model it names in model, optionally narrowed to one node (modelNode) or one mesh (modelMesh), with the material file it names in material replacing the model's materials (sceneformat.ObjectDoc).
Package scenemodel gives the objects of a scene file their 3D look: the built-in primitive an object names in mesh, or the glTF 2.0 model it names in model, optionally narrowed to one node (modelNode) or one mesh (modelMesh), with the material file it names in material replacing the model's materials (sceneformat.ObjectDoc).
Package screen maps a game's virtual canvas onto any window size, converts pointer input between view and virtual coordinates, keeps HUD layers inside the platform's safe area, and applies a player's video settings (full screen, display and frame cap) with Video.
Package screen maps a game's virtual canvas onto any window size, converts pointer input between view and virtual coordinates, keeps HUD layers inside the platform's safe area, and applies a player's video settings (full screen, display and frame cap) with Video.
Package skeletal loads, saves and animates 2D skeletal rigs drawn through sprite.Batch.
Package skeletal loads, saves and animates 2D skeletal rigs drawn through sprite.Batch.
Package spatial finds the 2D objects near an area or inside a view without testing every one, built on NSGo's public core types and the game sprite package:
Package spatial finds the 2D objects near an area or inside a view without testing every one, built on NSGo's public core types and the game sprite package:
Package statedump runs a game headless for a fixed number of steps and writes its entities, components and scene state as deterministic YAML, so an agent or a test can diff one run against another.
Package statedump runs a game headless for a fixed number of steps and writes its entities, components and scene state as deterministic YAML, so an agent or a test can diff one run against another.
Package stats holds gameplay stats: named base values changed by additive, multiplicative and override modifiers that come from sources such as equipment and buffs, with timed modifiers counted in fixed steps.
Package stats holds gameplay stats: named base values changed by additive, multiplicative and override modifiers that come from sources such as equipment and buffs, with timed modifiers counted in fixed steps.
Package text draws bitmap fonts (AngelCode BMFont) through sprite batches, signed-distance-field fonts that stay sharp at any size on the screen or in 3D world space (SDFFont, WorldText), and platform-rendered text through core.Drawing.
Package text draws bitmap fonts (AngelCode BMFont) through sprite batches, signed-distance-field fonts that stay sharp at any size on the screen or in 3D world space (SDFFont, WorldText), and platform-rendered text through core.Drawing.
Package tilemap draws tiled worlds, queries tile flags and rays against them, loads Tiled maps, and moves a 2D camera over the world.
Package tilemap draws tiled worlds, queries tile flags and rays against them, loads Tiled maps, and moves a 2D camera over the world.
tileshape
Package tileshape derives collision and lighting geometry from a tilemap: a View that physics.MoveAndSlide, physics.CharacterBody, the platformer controller and physics.World take as their physics.TileGrid, the physics.Slope segments of slanted and partial tiles, the merged outline of solid cells and tile shapes, static boxes, and lights2d occluders.
Package tileshape derives collision and lighting geometry from a tilemap: a View that physics.MoveAndSlide, physics.CharacterBody, the platformer controller and physics.World take as their physics.TileGrid, the physics.Slope segments of slanted and partial tiles, the merged outline of solid cells and tile shapes, static boxes, and lights2d occluders.
tooling
assetbuild
Package assetbuild builds a game's assets from the assets section of its game.yaml, which package project defines: it packs sprite atlases, encodes KTX2 textures, converts audio, bakes TrueType and OpenType fonts into AngelCode BMFonts, packs glTF models into single GLB files and generates the Go asset manifest, applying the import settings sidecar beside each image, sound, font or model that package importsettings reads, and keeps a text cache of what each output was built from so a later run rebuilds only the targets whose inputs, sidecars or settings changed.
Package assetbuild builds a game's assets from the assets section of its game.yaml, which package project defines: it packs sprite atlases, encodes KTX2 textures, converts audio, bakes TrueType and OpenType fonts into AngelCode BMFonts, packs glTF models into single GLB files and generates the Go asset manifest, applying the import settings sidecar beside each image, sound, font or model that package importsettings reads, and keeps a text cache of what each output was built from so a later run rebuilds only the targets whose inputs, sidecars or settings changed.
assetcheck
Package assetcheck checks a game's scene files, Tiled and LDtk maps and sprite atlases, and the references between them, and reports each problem with the file and line that holds it.
Package assetcheck checks a game's scene files, Tiled and LDtk maps and sprite atlases, and the references between them, and reports each problem with the file and line that holds it.
atlaspack
Package atlaspack packs a folder of PNG images into sprite atlas pages and TexturePacker JSON-hash metadata that sprite.LoadAtlas reads directly.
Package atlaspack packs a folder of PNG images into sprite atlas pages and TexturePacker JSON-hash metadata that sprite.LoadAtlas reads directly.
audioconv
Package audioconv decodes, processes, and encodes game audio assets in pure Go, with optional AAC and MP3 conversion via ffmpeg or macOS afconvert when present on PATH.
Package audioconv decodes, processes, and encodes game audio assets in pure Go, with optional AAC and MP3 conversion via ffmpeg or macOS afconvert when present on PATH.
bench
Package bench keeps Go benchmark baselines in a versioned YAML text file, reads the results `go test -bench` and `nsgo test -bench` print, and reports the benchmarks that regressed past the baseline's limits.
Package bench keeps Go benchmark baselines in a versioned YAML text file, reads the results `go test -bench` and `nsgo test -bench` print, and reports the benchmarks that regressed past the baseline's limits.
credits
Package credits lists who made each of a game's assets and under what license, from the credit section of the import settings sidecar beside each one (package importsettings), and writes the list as the credits file a release ships with.
Package credits lists who made each of a game's assets and under what license, from the credit section of the import settings sidecar beside each one (package importsettings), and writes the list as the credits file a release ships with.
devstate
Package devstate saves and restores the running game scene, fixed-step loop clock, and serialized state across Go rebuilds during development.
Package devstate saves and restores the running game scene, fixed-step loop clock, and serialized state across Go rebuilds during development.
gamedebug
Package gamedebug holds development-only tooling and overlays for NSGo games: a frame-time graph, collision and sprite-bounds wireframes, a live scene inspector, a behavior tree and state machine inspector with steering guides, an interactive dev console with typed tunables, named timing scopes with Chrome/Perfetto trace export, an asset memory tracker with budgets, and a GC/allocation monitor.
Package gamedebug holds development-only tooling and overlays for NSGo games: a frame-time graph, collision and sprite-bounds wireframes, a live scene inspector, a behavior tree and state machine inspector with steering guides, an interactive dev console with typed tunables, named timing scopes with Chrome/Perfetto trace export, an asset memory tracker with budgets, and a GC/allocation monitor.
hotreload
Package hotreload watches game assets on disk during development and delivers reloads on the NSGo engine goroutine without restarting the app.
Package hotreload watches game assets on disk during development and delivers reloads on the NSGo engine goroutine without restarting the app.
library
Package library finds shared asset packs, editor plugin packs and templates in a library and installs them into a game project.
Package library finds shared asset packs, editor plugin packs and templates in a library and installs them into a game project.
manifest
Package manifest walks an assets directory and generates a typed Go source file referencing every asset, so missing or removed assets fail the build at compile time.
Package manifest walks an assets directory and generates a typed Go source file referencing every asset, so missing or removed assets fail the build at compile time.
playtest
Package playtest defines playtest.yaml (bots, seeded headless runs, metrics and goals), a metrics collection API for games, a deterministic headless playtest runner with replay recordings and YAML reports, and built-in bot profiles (platformer-runner, topdown-explorer, shooter, puzzle-solver, and card-ai).
Package playtest defines playtest.yaml (bots, seeded headless runs, metrics and goals), a metrics collection API for games, a deterministic headless playtest runner with replay recordings and YAML reports, and built-in bot profiles (platformer-runner, topdown-explorer, shooter, puzzle-solver, and card-ai).
refs
Package refs keeps the references between a game project's files working when files are renamed or moved: it finds every reference, rewrites the ones a move breaks, and finds a file again after it was moved without the tools.
Package refs keeps the references between a game project's files working when files are renamed or moved: it finds every reference, rewrites the ones a move breaks, and finds a file again after it was moved without the tools.
sizecheck
Package sizecheck measures a built package (a WebAssembly binary, an Android AAB or APK, or an iOS IPA) and checks it against a size budget, the checks behind `game size`.
Package sizecheck measures a built package (a WebAssembly binary, an Android AAB or APK, or an iOS IPA) and checks it against a size budget, the checks behind `game size`.
Package tween animates values, timelines, and tilemap cameras deterministically on fixed game.Loop steps using NSGo easing curves.
Package tween animates values, timelines, and tilemap cameras deterministically on fixed game.Loop steps using NSGo easing curves.
Package undo records the reversible moves of puzzle and turn-based games, with linear undo and redo.
Package undo records the reversible moves of puzzle and turn-based games, with linear undo and redo.
Package vehicle3d simulates raycast cars on a physics3d.World: wheel colliders cast from the chassis, spring-damper suspension, longitudinal and lateral tire friction inside a friction circle, and engine, brake, steering and handbrake input.
Package vehicle3d simulates raycast cars on a physics3d.World: wheel colliders cast from the chassis, spring-damper suspension, longitudinal and lateral tire friction inside a friction circle, and engine, brake, steering and handbrake input.
Package vn presents dialogue scripts as a visual novel: character portraits with expressions standing in stage slots, a text box with name plates and a typewriter, choices, a backlog, auto and skip modes, and voice lines.
Package vn presents dialogue scripts as a visual novel: character portraits with expressions standing in stage slots, a text box with name plates and a typewriter, choices, a backlog, auto and skip modes, and voice lines.
Package voxel provides chunked 3D voxel worlds with greedy meshing, cross-chunk face culling, incremental per-voxel sky and block light propagation, incremental dirty-chunk remeshing, DDA voxel raycasting, and deterministic versioned YAML persistence.
Package voxel provides chunked 3D voxel worlds with greedy meshing, cross-chunk face culling, incremental per-voxel sky and block light propagation, incremental dirty-chunk remeshing, DDA voxel raycasting, and deterministic versioned YAML persistence.
Package world3d provides 3D world-building primitives for NSGo 3D games: heightmap terrain, 3D GridMaps of modular mesh tiles, procedural foliage/scattered instance fields, and large-world chunk streaming with floating-origin rebasing.
Package world3d provides 3D world-building primitives for NSGo 3D games: heightmap terrain, 3D GridMaps of modular mesh tiles, procedural foliage/scattered instance fields, and large-world chunk streaming with floating-origin rebasing.
Package worldmap keeps track of which rooms of a game world the player has discovered and draws them as a minimap of the current area and a world map, with markers.
Package worldmap keeps track of which rooms of a game world the player has discovered and draws them as a minimap of the current area and a world map, with markers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL