Documentation
¶
Overview ¶
Package game is a game layer for NSGo apps: a fixed-step loop, input actions, sprites, tilemaps, scenes and sound, built on NSGo's public API only, so an app that does not import it links none of it.
This package holds Loop, which the others share. Each domain has a package of its own: math2d for 2D vectors, rectangles, circles and affine transforms, sprite for atlases, sprites, animations and batches, and sound for the mixer, its effects and music; input, tilemap (with the camera) and scene follow, and examples holds sample games.
Index ¶
- type LeaveMode
- type Loop
- func (l *Loop) EffectiveTimeScale() float64
- func (l *Loop) Elapsed() time.Duration
- func (l *Loop) ElapsedSeconds() float64
- func (l *Loop) HandleLeave(background bool)
- func (l *Loop) MarkDirty()
- func (l *Loop) Run(cx *core.Scope) (stop func())
- func (l *Loop) SetPaused(paused bool)
- func (l *Loop) SetTimeScale(scale float64)
- func (l *Loop) Step(n int)
- func (l *Loop) StepDuration() time.Duration
- func (l *Loop) StepNow(n int) int
- func (l *Loop) StepOnce()
- func (l *Loop) StepRate() int
- func (l *Loop) Steps() uint64
- func (l *Loop) Stop()
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loop ¶
type Loop struct {
// Rate is how many updates run a second, 60 when 0.
Rate int
// MaxSteps is the most updates one frame runs, Rate/10 (a tenth of a second's updates) and at least 1 when 0. A frame that would run more drops the whole steps past it, so an Update slower than its step, or a long hitch, slows the game rather than making each frame run more updates than the last.
MaxSteps int
// Paused stops Update from advancing with display time while Draw keeps running. Unpausing resumes from the current frame without a catch-up backlog.
Paused bool
// PauseOnLeave pauses the loop when its scope leaves the foreground. The pause is sticky, so returning to the foreground never resumes gameplay without an explicit SetPaused(false).
PauseOnLeave LeaveMode
// PausedAwake is how long the loop keeps the display awake (core.Scope.KeepAwake) after it is Paused or while an OnDemand loop is idle (Idle returns true with no MarkDirty or updates). Zero or negative releases the display hold at once.
PausedAwake time.Duration
// TimeScale scales simulated time, 1 when 0 or less (or not finite). Update still receives the fixed 1/Rate step, so 0.5 runs half as many updates a second and 2 runs twice as many.
TimeScale float64
// DrawRate caps Draw to at most DrawRate calls a second, uncapped when 0 or less. Update still runs at Rate.
DrawRate int
// MatchDisplayToRate asks the display to run at Rate when DrawRate is uncapped. It is useful when the game wants to avoid display wakeups above its simulation rate.
MatchDisplayToRate bool
// OnDemand skips Draw on frames where no Update ran, unless MarkDirty has been called since the last Draw. When Idle is also set and returns true, OnDemand skips Update steps too until Idle returns false or MarkDirty wakes the loop.
OnDemand bool
// Idle, when set with OnDemand, reports whether the game currently has no ongoing work (such as animations, timers or typewriter reveals) that needs fixed-step updates. While OnDemand is true, Paused is false and Idle returns true, display frames skip both Update and Draw without accumulating time, and the display keep-awake hold is released after PausedAwake. Calling MarkDirty wakes an idle loop to run one fixed Update step and Draw on the next frame; if that Update makes Idle return false, fixed-step updates resume until Idle returns true again.
Idle func() bool
// Immersive hides a phone's system bars (mobile.Immersive) while the game plays, that is while the loop runs and is not Paused, and brings them back while it is Paused, as under a pause menu, and once it stops or its scope is disposed. The loop hides them as it starts or resumes in the foreground and applies a change to Immersive or Paused on its next frame, and leaves the bars as they are while the app is in the background. Desktop and web targets ignore it.
Immersive bool
// Update moves the game on by dt, which is always 1/Rate seconds.
Update func(dt time.Duration)
// PausedUpdate, when set, runs at Rate on display time while Paused, ignoring TimeScale. Steps executed by PausedUpdate do not increment Steps or Elapsed.
PausedUpdate func(dt time.Duration)
// RealUpdate, when set, runs at Rate on display time whether or not the loop is paused or scaled. Steps executed by RealUpdate do not increment Steps or Elapsed.
RealUpdate func(dt time.Duration)
// Draw draws the frame; alpha, from 0 up to but not including 1, is how far the frame falls between the last update and the next.
Draw func(alpha float64)
// FrameTime, when set, receives each frame's length, the time it adds (0 for a frame stamped before the run started or resumed), ahead of the frame's updates. It is what frame-time statistics such as quality.Selector's read; a frame that ends a pause in the background measures from the time the window showed again, not the time away. It fires while Paused is set too, so a caller measuring only frames that simulate skips those itself.
FrameTime func(dt time.Duration)
// OnPause, when set, runs whenever Paused changes, so subsystems such as sound.Mixer (sound.Mixer.SetPaused) pause and resume with the loop. SetPaused calls it at once when the state changes; changing Paused directly calls it on the next frame, or in the same frame when Update changes it. If Paused is already true when Run starts, Run calls OnPause(true). With PauseOnLeave set to LeaveNone (the default), backgrounding does not call OnPause; both Loop and sound.Mixer follow core.Env.Lifecycle directly. With LeaveBackground or LeaveInactive, leaving calls SetPaused(true), which calls OnPause(true) once.
OnPause func(paused bool)
// OnLeave runs once when the scope leaves the foreground, with background true for core.LifecycleBackground, and on quit for a run that has not stopped or already handled backgrounding. It runs before PauseOnLeave pauses the loop, untracked, so the signals it reads do not subscribe the loop's lifecycle effect.
OnLeave func(background bool)
// contains filtered or unexported fields
}
Loop runs a game's updates at a fixed rate on a scope's display frames, and draws once a frame in between.
Each frame adds the time since the last one and runs Update once for each whole step of 1/Rate seconds it holds, zero or more times, then Draw once with how far the time left over reaches into the next step. A game moves its state in Update by the fixed dt, so it plays alike at any display rate, and Draw places what moves between the last two states by alpha, so it moves smoothly at any display rate.
Run reads the fields on each frame, so a game may change them while the loop runs.
Example ¶
Loop runs fixed updates on display frames. Here a root scope with a manual clock stands in for the app, and each RunFrame is one display frame 1/60 s after the last. The first frame starts the loop's clock, so the 59 frame intervals that follow give 29 updates at 30 Hz while every frame draws.
package main
import (
"fmt"
"time"
"github.com/nsgo-dev/game"
"github.com/nsgo-dev/nsgo/core"
)
func main() {
clock := core.NewManualClock(time.Unix(0, 0))
frameWanted := false
root := core.NewRoot(core.RootOptions{Clock: clock, RequestFrame: func() { frameWanted = true }})
defer root.Dispose()
updates, draws := 0, 0
loop := &game.Loop{
Rate: 30,
Update: func(dt time.Duration) { updates++ },
Draw: func(alpha float64) { draws++ },
}
stop := loop.Run(root)
defer stop()
for range 60 {
clock.Advance(time.Second / 60)
if frameWanted {
frameWanted = false
root.RunFrame()
}
}
fmt.Println("updates:", updates, "draws:", draws)
}
Output: updates: 29 draws: 60
Example (ProcessModes) ¶
PausedUpdate runs on display time while Paused and RealUpdate runs on display time regardless of pause or TimeScale, without changing Loop.Steps.
package main
import (
"fmt"
"time"
"github.com/nsgo-dev/game"
"github.com/nsgo-dev/nsgo/core"
)
func main() {
clock := core.NewManualClock(time.Unix(0, 0))
frameWanted := false
root := core.NewRoot(core.RootOptions{Clock: clock, RequestFrame: func() { frameWanted = true }})
defer root.Dispose()
var gameSteps, pausedSteps, realSteps int
loop := &game.Loop{
Rate: 60,
TimeScale: 0.5,
Update: func(time.Duration) { gameSteps++ },
PausedUpdate: func(time.Duration) { pausedSteps++ },
RealUpdate: func(time.Duration) { realSteps++ },
}
defer loop.Run(root)()
advance := func(frames int) {
for range frames {
clock.Advance(time.Second / 60)
if frameWanted {
frameWanted = false
root.RunFrame()
}
}
}
// 20 frames at 0.5x give 10 game steps and 20 real steps.
advance(20)
fmt.Println("scaled:", gameSteps, pausedSteps, realSteps, "loop.Steps:", loop.Steps())
loop.SetPaused(true)
advance(10)
fmt.Println("paused:", gameSteps, pausedSteps, realSteps, "loop.Steps:", loop.Steps())
}
Output: scaled: 10 0 20 loop.Steps: 10 paused: 10 10 30 loop.Steps: 10
func (*Loop) EffectiveTimeScale ¶
EffectiveTimeScale returns the simulation time scale actually applied by Run (TimeScale when finite and > 0, else 1).
func (*Loop) Elapsed ¶
Elapsed returns the simulated game time advanced by fixed Update steps, rounded to the nearest nanosecond from ElapsedSeconds (so 60 steps at 60 Hz is exactly time.Second).
func (*Loop) ElapsedSeconds ¶
ElapsedSeconds returns the simulated game time advanced by fixed Update steps in seconds. Each contiguous run at a fixed rate contributes steps/rate seconds without integer-nanosecond drift, so 60 steps at 60 Hz is exactly 1.0.
func (*Loop) HandleLeave ¶
HandleLeave applies leave policy and invokes OnLeave once for a transition away from active.
func (*Loop) MarkDirty ¶
func (l *Loop) MarkDirty()
MarkDirty requests a Draw on the next frame when OnDemand is true. When an unpaused OnDemand loop is idle (Idle returns true), MarkDirty also queues one fixed Update step on the next frame so Update can sample newly arrived input and advance state.
func (*Loop) Run ¶
Run starts the loop on cx's display frames until cx is disposed or stop is called.
The loop pauses while cx's window is in the background (core.Env.Lifecycle), that is hidden, minimized or covered on a desktop and the app in the background on a phone, and resumes from the time it shows again, so the time away runs no updates. While running in the foreground and active (not Paused and not idle under OnDemand and Idle) it keeps the display awake (core.Scope.KeepAwake). It releases the display hold immediately on background, stop or scope disposal, and once the loop has been Paused or OnDemand-idle (with no MarkDirty or updates) for PausedAwake (at once when PausedAwake <= 0), taking it again on unpause, when Idle returns false, and while pending Step updates or an OnDemand MarkDirty wake/draw run.
A frame adds the time between its display time and the last frame's, as core.Scope.RequestAnimationFrame gives it: the display's own frame time where the platform stamps one, so the frame length is the display's rather than when the engine got to the frame, and the graph clock's otherwise. The first frame after the loop starts or resumes adds the time from then to its display time, which may lie a frame ahead where the display stamps a frame with when it will show, so the loop's time is the shown frame's. A frame stamped before the time the loop started or resumed adds nothing, and the next frame adds the time from then.
With Immersive set, the run hides the system bars while the game plays and shows them again when it is paused, stopped or disposed. Runs in the same window share the bars: they stay hidden while any of them plays with Immersive set, and come back once the last of those pauses or ends, so a scene that starts its own loop before the last scene's loop is disposed keeps them hidden.
func (*Loop) SetPaused ¶
SetPaused pauses or resumes the loop's updates without accumulating a catch-up backlog, calling OnPause if the paused state changed.
func (*Loop) SetTimeScale ¶
SetTimeScale sets the simulation time scale; values at or below 0 run at 1.
func (*Loop) Step ¶
Step queues n fixed updates to run on the next display frame while Paused is true, redrawing afterward. Values at or below 0 do nothing.
Example ¶
SetPaused stops updates while frames keep drawing, and Step queues single updates while paused, as a debugger's frame advance does.
package main
import (
"fmt"
"time"
"github.com/nsgo-dev/game"
"github.com/nsgo-dev/nsgo/core"
)
func main() {
clock := core.NewManualClock(time.Unix(0, 0))
frameWanted := false
root := core.NewRoot(core.RootOptions{Clock: clock, RequestFrame: func() { frameWanted = true }})
defer root.Dispose()
updates := 0
loop := &game.Loop{Update: func(time.Duration) { updates++ }, Draw: func(float64) {}}
defer loop.Run(root)()
frame := func() {
clock.Advance(time.Second / 60)
if frameWanted {
frameWanted = false
root.RunFrame()
}
}
loop.SetPaused(true)
for range 10 {
frame()
}
fmt.Println("paused:", updates)
loop.Step(3)
frame()
fmt.Println("after Step(3):", updates)
}
Output: paused: 0 after Step(3): 3
func (*Loop) StepDuration ¶
StepDuration returns the fixed duration passed to Update (time.Second / StepRate()).
func (*Loop) StepNow ¶
StepNow synchronously executes n fixed Update steps right away (whether Paused is true or false), followed by a Draw when Draw is set, and returns how many steps ran. Values at or below 0 do nothing and return 0. If Update stops an active Run, StepNow stops immediately without calling Draw.
func (*Loop) StepOnce ¶
func (l *Loop) StepOnce()
StepOnce queues one fixed update to run on the next display frame while Paused is true.
func (*Loop) StepRate ¶
StepRate returns the effective fixed update rate in Hz (Rate when > 0, else 60).
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
accountsd
command
Command accountsd is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/.
|
Command accountsd is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/. |
|
analyticsd
command
Command analyticsd is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/.
|
Command analyticsd is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/. |
|
cloudsaved
command
Command cloudsaved is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/.
|
Command cloudsaved is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/. |
|
economyd
command
Command economyd is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/.
|
Command economyd is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/. |
|
editor
command
Command editor is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/.
|
Command editor is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/. |
|
game
command
Command game is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/.
|
Command game is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/. |
|
leaderboardd
command
Command leaderboardd is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/.
|
Command leaderboardd is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/. |
|
nsgo-game
command
Command nsgo-game is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/.
|
Command nsgo-game is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/. |
|
internal
|
|
|
apiref
Package apiref reads the exported API of a Go module's packages from their source and doc comments, as go doc shows it, into a Reference: the JSON the website renders as its API pages and publishes for agents.
|
Package apiref reads the exported API of a Go module's packages from their source and doc comments, as go doc shows it, into a Reference: the JSON the website renders as its API pages and publishes for agents. |
|
ciscope
command
Command ciscope classifies what a pull request changed so CI can skip the heavy steps a documentation-only change cannot affect.
|
Command ciscope classifies what a pull request changed so CI can skip the heavy steps a documentation-only change cannot affect. |
|
csgpoly
Package csgpoly holds the rules the outline of a CSG polygon must meet.
|
Package csgpoly holds the rules the outline of a CSG polygon must meet. |
|
detmath
Package detmath provides FMA-free deterministic math helpers and canonical state hashing shared by physics, physics3d, and vehicle3d.
|
Package detmath provides FMA-free deterministic math helpers and canonical state hashing shared by physics, physics3d, and vehicle3d. |
|
devimage
Package devimage builds the image sources that asset hot reload hands a running game: an image's bytes read from disk in place of where it was loaded from.
|
Package devimage builds the image sources that asset hot reload hands a running game: an image's bytes read from disk in place of where it was loaded from. |
|
flashcolor
Package flashcolor implements WCAG 2.3.1 / XAG 118 saturated-red flash desaturation shared by full-screen flashes, sprite flashes, and particle emitters.
|
Package flashcolor implements WCAG 2.3.1 / XAG 118 saturated-red flash desaturation shared by full-screen flashes, sprite flashes, and particle emitters. |
|
formattest
Package formattest checks, in a format package's tests, that a YAML format this repository defines follows the rules in AGENTS.md: it refuses unknown fields and versions it does not support, writes the same bytes every time it saves the same value, and loads and saves each of its testdata files without changing a byte.
|
Package formattest checks, in a format package's tests, that a YAML format this repository defines follows the rules in AGENTS.md: it refuses unknown fields and versions it does not support, writes the same bytes every time it saves the same value, and loads and saves each of its testdata files without changing a byte. |
|
fuzztest
Package fuzztest provides shared helpers for loader fuzz targets: seed loading from testdata globs, heap allocation bounds against allocation-bomb inputs, and canonical YAML parse/encode round-trip checks.
|
Package fuzztest provides shared helpers for loader fuzz targets: seed loading from testdata globs, heap allocation bounds against allocation-bomb inputs, and canonical YAML parse/encode round-trip checks. |
|
gamecli
Package gamecli implements the game layer's command-line tool, shared by cmd/game (for `go tool game`, `go run`, and `nsgo game` inside a module) and cmd/nsgo-game (the `nsgo-game` extension binary on PATH for `nsgo game` outside a module).
|
Package gamecli implements the game layer's command-line tool, shared by cmd/game (for `go tool game`, `go run`, and `nsgo game` inside a module) and cmd/nsgo-game (the `nsgo-game` extension binary on PATH for `nsgo game` outside a module). |
|
gamecli/_templates/projects/action3d
command
Command mygame is a third-person 3D action adventure built with NSGo and game.
|
Command mygame is a third-person 3D action adventure built with NSGo and game. |
|
gamecli/_templates/projects/cards2d
command
Command suitladders is a single-player card game built with NSGo and game: climb four suit ladders from 1 to 9 with a hand of five cards, a draw pile and a discard pile that can be dealt again twice.
|
Command suitladders is a single-player card game built with NSGo and game: climb four suit ladders from 1 to 9 with a hand of five cards, a draw pile and a discard pile that can be dealt again twice. |
|
gamecli/_templates/projects/coop2d
command
Command mygame is a 2D co-op game built with NSGo and game.
|
Command mygame is a 2D co-op game built with NSGo and game. |
|
gamecli/_templates/projects/fighting2d
command
Command fighting2d is a one-on-one 2D fighting game built with NSGo and game.
|
Command fighting2d is a one-on-one 2D fighting game built with NSGo and game. |
|
gamecli/_templates/projects/fps3d
command
Command relayyard is a first-person shooter arena built with NSGo and game: clear three waves of drones and wardens with a hitscan rifle and a projectile launcher.
|
Command relayyard is a first-person shooter arena built with NSGo and game: clear three waves of drones and wardens with a hitscan rifle and a projectile launcher. |
|
gamecli/_templates/projects/idle
command
Command hearthkeeper is an idle game built with NSGo and game: keep a fire fed, buy generators and upgrades with the embers it makes, earn while away, scatter the ashes for a lasting bonus and light the Everflame.
|
Command hearthkeeper is an idle game built with NSGo and game: keep a fire fed, buy generators and upgrades with the embers it makes, earn while away, scatter the ashes for a lasting bonus and light the Everflame. |
|
gamecli/_templates/projects/match3
command
Command gemgarden is a match-3 puzzle game built with NSGo and game: swap neighboring gems to make lines of three or more, clear jelly, crates and ice, and collect colors across two packs of levels on a level map.
|
Command gemgarden is a match-3 puzzle game built with NSGo and game: swap neighboring gems to make lines of three or more, clear jelly, crates and ice, and collect colors across two packs of levels on a level map. |
|
gamecli/_templates/projects/platformer2d
command
Command mygame is a 2D side-scrolling platformer built with NSGo and game.
|
Command mygame is a 2D side-scrolling platformer built with NSGo and game. |
|
gamecli/_templates/projects/puzzle2d
command
Command sparkslide is a 2D grid puzzle built with NSGo and game: slide a spark across the board to light every lamp in as few moves as you can.
|
Command sparkslide is a 2D grid puzzle built with NSGo and game: slide a spark across the board to light every lamp in as few moves as you can. |
|
gamecli/_templates/projects/racing3d
command
Command mygame is a 3D racing game built with NSGo and game.
|
Command mygame is a 3D racing game built with NSGo and game. |
|
gamecli/_templates/projects/rhythm
command
Command pulselanes is a four-lane rhythm game built with NSGo and game: notes fall to the beat of a song, and the player hits them as they reach the line.
|
Command pulselanes is a four-lane rhythm game built with NSGo and game: notes fall to the beat of a song, and the player hits them as they reach the line. |
|
gamecli/_templates/projects/roguelike2d
command
Command mygame is a turn-based 2D roguelike built with NSGo and game.
|
Command mygame is a turn-based 2D roguelike built with NSGo and game. |
|
gamecli/_templates/projects/rpg2d
command
Command hollowbrook is a small top-down RPG built with NSGo and game: a town and a meadow to walk, people to talk to, a pack of items and equipment, one quest, turn-based battles and three save slots.
|
Command hollowbrook is a small top-down RPG built with NSGo and game: a town and a meadow to walk, people to talk to, a pack of items and equipment, one quest, turn-based battles and three save slots. |
|
gamecli/_templates/projects/rts2d
command
Command mygame is a 2D real-time strategy skirmish built with NSGo and game: gather crystals, build barracks, train an army and destroy the opponent's headquarters before it destroys yours.
|
Command mygame is a 2D real-time strategy skirmish built with NSGo and game: gather crystals, build barracks, train an army and destroy the opponent's headquarters before it destroys yours. |
|
gamecli/_templates/projects/shmup2d
command
Command mygame is a vertical scrolling shooter built with NSGo and game: enemy waves, bullet patterns, power-ups, a boss with phases, lives and a score.
|
Command mygame is a vertical scrolling shooter built with NSGo and game: enemy waves, bullet patterns, power-ups, a boss with phases, lives and a score. |
|
gamecli/_templates/projects/starter
command
Command mygame is a starter 2D game built with NSGo and game.
|
Command mygame is a starter 2D game built with NSGo and game. |
|
gamecli/_templates/projects/tap2d
command
Command mygame is a starter 2D game built with NSGo and game.
|
Command mygame is a starter 2D game built with NSGo and game. |
|
gamecli/_templates/projects/towerdefense2d
command
Command bramblegate is a 2D tower defense game built with NSGo and game: build and upgrade towers beside a road to stop the waves of enemies walking it before they reach the gate.
|
Command bramblegate is a 2D tower defense game built with NSGo and game: build and upgrade towers beside a road to stop the waves of enemies walking it before they reach the gate. |
|
gamecli/_templates/projects/visualnovel
command
Command mygame is a short branching visual novel built with NSGo and game: two characters, backgrounds, choices that change the ending, a backlog, auto and skip modes, save slots and two languages.
|
Command mygame is a short branching visual novel built with NSGo and game: two characters, backgrounds, choices that change the ending, a backlog, auto and skip modes, save slots and two languages. |
|
gamecli/internal/datatablexlsx
Package datatablexlsx reads .xlsx worksheets as raw cell grids for the `game datatable import` CLI subcommand.
|
Package datatablexlsx reads .xlsx worksheets as raw cell grids for the `game datatable import` CLI subcommand. |
|
gotoolchain
Package gotoolchain locates the Go toolchain executable and enriches child process environments when the editor or CLI is launched from a GUI desktop launcher (Finder, Dock, Spotlight, Windows shortcut, or Linux desktop launcher) that inherits only a minimal system PATH.
|
Package gotoolchain locates the Go toolchain executable and enriches child process environments when the editor or CLI is launched from a GUI desktop launcher (Finder, Dock, Spotlight, Windows shortcut, or Linux desktop launcher) that inherits only a minimal system PATH. |
|
jsonedit
Package jsonedit strictly decodes JSON edits onto live Go values without touching the edited value until the edit has succeeded.
|
Package jsonedit strictly decodes JSON edits onto live Go values without touching the edited value until the edit has succeeded. |
|
l10nkeys
Package l10nkeys extracts localization message key usages from Go source (Localizer.T, Localizer.Plural, Localizer.Format, Catalog.T, Catalog.Plural, Catalog.Format), scenes (*.scene.yaml), screens (*.screen.yaml), cutscenes (*.cutscene.yaml), and data tables (registered or Go struct-tagged `table:"...,textkey"`), and compares them against a project's YAML string tables to report used, missing, and unused keys.
|
Package l10nkeys extracts localization message key usages from Go source (Localizer.T, Localizer.Plural, Localizer.Format, Catalog.T, Catalog.Plural, Catalog.Format), scenes (*.scene.yaml), screens (*.screen.yaml), cutscenes (*.cutscene.yaml), and data tables (registered or Go struct-tagged `table:"...,textkey"`), and compares them against a project's YAML string tables to report used, missing, and unused keys. |
|
loaderrtest
Package loaderrtest checks, in a loader's tests, that its errors are *loaderr.Error values an agent can act on: they name the file, the line and a fix.
|
Package loaderrtest checks, in a loader's tests, that its errors are *loaderr.Error values an agent can act on: they name the file, the line and a fix. |
|
modelclient
Package modelclient implements the shared HTTP wire client for Anthropic Messages and OpenAI-compatible Chat Completions endpoints used by both the editor's built-in agent and the agent evaluation harness.
|
Package modelclient implements the shared HTTP wire client for Anthropic Messages and OpenAI-compatible Chat Completions endpoints used by both the editor's built-in agent and the agent evaluation harness. |
|
pkgscan
command
pkgscan unpacks the editor release packages safely and scans their contents with the repository's privacy rules (internal/repocheck), so a build step that picked up a local credential cannot reach a published package.
|
pkgscan unpacks the editor release packages safely and scans their contents with the repository's privacy rules (internal/repocheck), so a build step that picked up a local credential cannot reach a published package. |
|
releaseplan
Package releaseplan plans and formats `nsgo build` release invocations and credits checks shared by `cmd/game release` and the scene editor's Export panel.
|
Package releaseplan plans and formats `nsgo build` release invocations and credits checks shared by `cmd/game release` and the scene editor's Export panel. |
|
repocheck
Package repocheck holds the repository-wide consistency tests (formats page, stability table, package catalogs and names, documentation Go samples, agent skill, format conformance coverage, example platform targets); it has no API.
|
Package repocheck holds the repository-wide consistency tests (formats page, stability table, package catalogs and names, documentation Go samples, agent skill, format conformance coverage, example platform targets); it has no API. |
|
resourcelib
Package resourcelib connects pkg/assets to pkg/resource.Library without widening resource.Library's public API.
|
Package resourcelib connects pkg/assets to pkg/resource.Library without widening resource.Library's public API. |
|
savefile
Package savefile provides core-free atomic file staging, backup rotation, directory syncing, stale temporary-file cleanup, and portable filename validation shared by pkg/save and pkg/online/gameserver.
|
Package savefile provides core-free atomic file staging, backup rotation, directory syncing, stale temporary-file cleanup, and portable filename validation shared by pkg/save and pkg/online/gameserver. |
|
scenemerge
Package scenemerge inspects and configures the NSGo Git merge and diff drivers (nsgo-scene, nsgo-index, and nsgo-yaml) shared by the game CLI and the scene editor.
|
Package scenemerge inspects and configures the NSGo Git merge and diff drivers (nsgo-scene, nsgo-index, and nsgo-yaml) shared by the game CLI and the scene editor. |
|
screenbind
Package screenbind generates deterministic, typed Go bindings from *.screen.yaml files.
|
Package screenbind generates deterministic, typed Go bindings from *.screen.yaml files. |
|
semver
Package semver parses and compares Semantic Versioning 2.0.0 versions and evaluates version constraints shared by mods, library packs and plugins.
|
Package semver parses and compares Semantic Versioning 2.0.0 versions and evaluates version constraints shared by mods, library packs and plugins. |
|
sizeprobe
command
Command sizeprobe is a minimal entry point referencing the game packages (game, sprite, sound, tilemap) so the package size budget checks can build it and measure their combined WebAssembly, Android and iOS footprint.
|
Command sizeprobe is a minimal entry point referencing the game packages (game, sprite, sound, tilemap) so the package size budget checks can build it and measure their combined WebAssembly, Android and iOS footprint. |
|
startuptime
Package startuptime shares startup milestones between the game loop, asset groups, and development tools.
|
Package startuptime shares startup milestones between the game loop, asset groups, and development tools. |
|
tagmatch
Package tagmatch provides shared, allocation-free validation and hierarchical parent matching for dotted gameplay tag names.
|
Package tagmatch provides shared, allocation-free validation and hierarchical parent matching for dotted gameplay tag names. |
|
templateresidue
Package templateresidue compares a project whose game.yaml records an origin of kind template against a bundled template and returns advisory warnings for files and metadata that are still unchanged.
|
Package templateresidue compares a project whose game.yaml records an origin of kind template against a bundled template and returns advisory warnings for files and metadata that are still unchanged. |
|
yamlmerge
Package yamlmerge provides a generic keyed three-way merge engine for canonical YAML formats (prefabs, screens, state machines, cutscenes, materials, tilesets, data tables, string tables, project files, and other keyed YAML documents).
|
Package yamlmerge provides a generic keyed three-way merge engine for canonical YAML formats (prefabs, screens, state machines, cutscenes, materials, tilesets, data tables, string tables, project files, and other keyed YAML documents). |
|
yamlmerge/allformats
Package allformats registers all built-in NSGo canonical YAML format descriptors with internal/yamlmerge.
|
Package allformats registers all built-in NSGo canonical YAML format descriptors with internal/yamlmerge. |
|
yamlzero
Package yamlzero normalizes IEEE 754 negative zero (-0.0) floats to positive zero (0.0) in Go values decoded from or encoded to YAML.
|
Package yamlzero normalizes IEEE 754 negative zero (-0.0) floats to positive zero (0.0) in Go values decoded from or encoded to YAML. |
|
packages
|
|
|
game
module
|
|
|
pkg
|
|
|
a11y
Package a11y is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package a11y is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
ability
Package ability is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package ability is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
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, perception with sight, hearing and memory, and smart objects with claimable interaction slots.
|
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, perception with sight, hearing and memory, and smart objects with claimable interaction slots. |
|
ai/cover3d
Package cover3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package cover3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
ai/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. |
|
ai/perception3d
Package perception3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package perception3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
ai/smart3d
Package smart3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package smart3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
anim3d
Package anim3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package anim3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
animclip
Package animclip is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package animclip is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
assets
Package assets is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package assets is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
assets/remote
Package remote is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package remote is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
battle
Package battle is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package battle is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
bullets
Package bullets is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package bullets is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
camera
Package camera is experimental: its API and documented behavior may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package camera is experimental: its API and documented behavior may change in a minor release; see https://nsgo.games/docs/stability/. |
|
cards
Package cards is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package cards is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
cards/deck
Package deck is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package deck is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
cues
Package cues is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package cues is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
cues/cuefx
Package cuefx is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package cuefx is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
cutscene
Package cutscene is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package cutscene is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
datatable
Package datatable is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package datatable is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
datatable/datatablewatch
Package datatablewatch is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package datatablewatch is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
dialogue
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. |
|
editor
Package editor is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package editor is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
editor/agentdir
Package agentdir is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package agentdir is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
editor/diaglog
Package diaglog is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package diaglog is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
editor/editorcmd
Package editorcmd is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package editorcmd is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
editor/editormcp
Package editormcp is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package editormcp is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
editor/internal/acp
Package acp implements the JSON-RPC-over-stdio core of the Agent Client Protocol.
|
Package acp implements the JSON-RPC-over-stdio core of the Agent Client Protocol. |
|
editor/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. |
|
editor/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). |
|
editor/keychain
Package keychain is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package keychain is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
editor/theme
Package theme is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package theme is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
entities
Package entities is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package entities is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
expr
Package expr parses and evaluates a small, deterministic expression language with named variables and game functions, for data-driven conditions, formulas, cheat codes and console commands.
|
Package expr parses and evaluates a small, deterministic expression language with named variables and game functions, for data-driven conditions, formulas, cheat codes and console commands. |
|
farming
Package farming is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package farming is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
fighting
Package fighting is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package fighting is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
flow
Package flow holds gameplay flow primitives driven by a game.Loop's fixed steps: game-clock timers, finite and hierarchical state machines, step sequences, strict YAML map events 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, strict YAML map events and a typed event bus. |
|
fog
Package fog is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package fog is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
framedata
Package framedata is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package framedata is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
gameplugin
Package gameplugin is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package gameplugin is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
gameplugin/devplugin
Package devplugin is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package devplugin is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
gameplugin/manifest
Package manifest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package manifest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
gametest
Package gametest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package gametest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
gametime
Package gametime is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package gametime is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
gameui
Package gameui is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package gameui is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
gltf
Package gltf is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package gltf is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
gltf/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. |
|
gltf/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. |
|
hostbridge
Package hostbridge is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package hostbridge is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
idle
Package idle is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package idle is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
importsettings
Package importsettings is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package importsettings is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
input
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. |
|
inventory
Package inventory is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package inventory is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
jsonschema
Package jsonschema is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package jsonschema is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
jsonschema/sourcedocs
Package sourcedocs is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sourcedocs is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
ktx2
Package ktx2 is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package ktx2 is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
l10n
Package l10n is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package l10n is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
lfs
Package lfs is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package lfs is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
lights2d
Package lights2d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package lights2d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
loaderr
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. |
|
loot
Package loot is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package loot is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
match3
Package match3 is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package match3 is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
math2d
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). |
|
math3d
Package math3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package math3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
mcp
Package mcp is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package mcp is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
mcp/mcp3d
Package mcp3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package mcp3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
mcp/mcpui
Package mcpui is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package mcpui is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
mempool
Package mempool is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package mempool is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
mergegame
Package mergegame is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package mergegame is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
modding
Package modding is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package modding is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
modding/modtest
Package modtest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package modtest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
motion
Package motion is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package motion is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/accounts
Package accounts is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package accounts is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/accounts/authtoken
Package authtoken is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package authtoken is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/accounts/identity
Package identity is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package identity is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/accounts/pgstore
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/accounts/sqlitestore
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/accounts/sqlstore
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/accounts/storetest
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/achievements
Package achievements is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package achievements is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/admin
Package admin is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package admin is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/admin/console
Package console is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package console is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/admin/console/internal/consolebuild
command
Command consolebuild builds the operator console, the NSGo web app in pkg/online/admin/console/internal/web, and writes the files the console package embeds to pkg/online/admin/console/dist: the site nsgo build -target web writes, with its WebAssembly module kept only gzipped.
|
Command consolebuild builds the operator console, the NSGo web app in pkg/online/admin/console/internal/web, and writes the files the console package embeds to pkg/online/admin/console/dist: the site nsgo build -target web writes, with its WebAssembly module kept only gzipped. |
|
online/admin/console/internal/web
command
Command web is the operator console of the self-hosted services, an NSGo web app that the admin listener of each service serves at /admin/; package console embeds its build, which go generate ./pkg/online/admin/console writes.
|
Command web is the operator console of the self-hosted services, an NSGo web app that the admin listener of each service serves at /admin/; package console embeds its build, which go generate ./pkg/online/admin/console writes. |
|
online/admin/console/internal/web/locales
Package locales says the operator console's messages in the language it shows.
|
Package locales says the operator console's messages in the language it shows. |
|
online/antiaddiction
Package antiaddiction is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package antiaddiction is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/antiaddiction/nppa
Package nppa is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package nppa is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/audit
Package audit is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package audit is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/backend
Package backend is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package backend is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/cloudsave
Package cloudsave is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package cloudsave is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/cloudsave/pgstore
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/cloudsave/sqlitestore
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/cloudsave/sqlstore
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/cloudsave/storetest
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/economy
Package economy is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package economy is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/economy/pgstore
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/economy/sqlitestore
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/economy/sqlstore
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/economy/storetest
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/eos
Package eos is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package eos is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/gameserver
Package gameserver is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package gameserver is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/gameserver/loadtest
Package loadtest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package loadtest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/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. |
|
online/internal/ngio
Package ngio implements a pure-Go client for the Newgrounds.io v3 JSON gateway used by achievements (medals) and leaderboard (scoreboards).
|
Package ngio implements a pure-Go client for the Newgrounds.io v3 JSON gateway used by achievements (medals) and leaderboard (scoreboards). |
|
online/internal/passhash
Package passhash hashes and verifies argon2id passwords in the PHC string format "$argon2id$v=19$m=...,t=...,p=...$salt$hash", shared by the account service's player passwords and the admin package's operator passwords.
|
Package passhash hashes and verifies argon2id passwords in the PHC string format "$argon2id$v=19$m=...,t=...,p=...$salt$hash", shared by the account service's player passwords and the admin package's operator passwords. |
|
online/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. |
|
online/lan
Package lan is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package lan is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/leaderboard
Package leaderboard is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package leaderboard is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/leaderboard/selfhost
Package selfhost is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package selfhost is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/leaderboard/selfhost/client
Package client is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package client is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/leaderboard/selfhost/pgstore
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/leaderboard/selfhost/sqlitestore
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/leaderboard/selfhost/sqlstore
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/leaderboard/selfhost/storetest
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/liveops
Package liveops is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package liveops is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/liveops/analytics
Package analytics is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package analytics is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/liveops/analytics/pgstore
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/liveops/consent
Package consent is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package consent is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/liveops/crashreport
Package crashreport is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package crashreport is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/liveops/inbox
Package inbox is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package inbox is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/liveops/inbox/storetest
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/liveops/remoteconfig
Package remoteconfig is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package remoteconfig is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/liveops/schedule
Package schedule is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package schedule is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/netplay
Package netplay is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package netplay is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/netplay/roomstate
Package roomstate is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package roomstate is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/netplay/wire
Package wire is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package wire is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/netplay/worldsync
Package worldsync is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package worldsync is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/portmap
Package portmap is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package portmap is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/presence
Package presence is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package presence is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/realtime
Package realtime is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package realtime is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/realtime/client
Package client is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package client is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/realtime/pgstore
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/realtime/sqlitestore
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/realtime/sqlstore
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/realtime/storetest
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/records
Package records is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package records is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/servicehealth
Package servicehealth is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package servicehealth is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/social
Package social is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package social is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/social/pgstore
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package pgstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/social/sqlitestore
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlitestore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/social/sqlstore
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sqlstore is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/social/storetest
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package storetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/steam
Package steam is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package steam is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/steamworks
Package steamworks is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package steamworks is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/storeverify
Package storeverify is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package storeverify is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/storeverify/wechatpay
Package wechatpay is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package wechatpay is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
online/wsclient
Package wsclient is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package wsclient is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
particles
Package particles is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package particles is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pathfind
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. |
|
pathfind/navbake
Package navbake is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package navbake is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pathfind3d
Package pathfind3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package pathfind3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pathfind3d/navbake3d
Package navbake3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package navbake3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
physics
Package physics provides 2D collision shapes, exact overlap contacts, collision layers, trigger areas, tile and kinematic character movement, spatial queries, and deterministic 2D rigid bodies and joints for games.
|
Package physics provides 2D collision shapes, exact overlap contacts, collision layers, trigger areas, tile and kinematic character movement, spatial queries, and deterministic 2D rigid bodies and joints for games. |
|
physics3d
Package physics3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package physics3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx
Package pixelfx is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package pixelfx is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/arcane
Package arcane is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package arcane is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/critters
Package critters is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package critters is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/explosions
Package explosions is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package explosions is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/fire
Package fire is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package fire is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/holy
Package holy is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package holy is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/ice
Package ice is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package ice is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/impacts
Package impacts is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package impacts is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/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. |
|
pixelfx/lightning
Package lightning is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package lightning is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/melee
Package melee is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package melee is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/moves
Package moves is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package moves is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/nature
Package nature is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package nature is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/pickups
Package pickups is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package pickups is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/projectiles
Package projectiles is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package projectiles is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/scifi
Package scifi is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package scifi is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/shadow
Package shadow is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package shadow is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/spawn
Package spawn is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package spawn is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/status
Package status is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package status is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/transitions
Package transitions is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package transitions is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/ui
Package ui is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package ui is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/water
Package water is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package water is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
pixelfx/weather
Package weather is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package weather is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
placeholder
Package placeholder is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package placeholder is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
placeholder/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. |
|
placeholder/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. |
|
placement
Package placement is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package placement is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
platformer
Package platformer is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package platformer is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
postfx
Package postfx is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package postfx is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
postfx/internal/postfxgen
command
Command postfxgen pre-parses pkg/postfx's built-in Kage effect sources at go generate time into pkg/postfx/effects_gen.go so runtime builds never link go/parser, go/ast, go/scanner, or go/token to fuse built-in effects.
|
Command postfxgen pre-parses pkg/postfx's built-in Kage effect sources at go generate time into pkg/postfx/effects_gen.go so runtime builds never link go/parser, go/ast, go/scanner, or go/token to fuse built-in effects. |
|
procgen
Package procgen is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package procgen is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
progression
Package progression is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package progression is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
project
Package project is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package project is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
quality
Package quality is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package quality is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
quest
Package quest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package quest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
random
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. |
|
render3d
Package render3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package render3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
render3d/lightbake
Package lightbake is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package lightbake is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
replay
Package replay is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package replay is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
resource
Package resource is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package resource is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
rhythm
Package rhythm is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package rhythm is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
rooms
Package rooms is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package rooms is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
rpgdata
Package rpgdata is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package rpgdata is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
rts
Package rts is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package rts is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
save
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. |
|
save/savetest
Package savetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package savetest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
scene
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. |
|
scene3d
Package scene3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package scene3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
sceneformat
Package sceneformat is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sceneformat is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
scenemodel
Package scenemodel is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package scenemodel is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
screen
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. |
|
sessionstats
Package sessionstats is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sessionstats is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
skeletal
Package skeletal is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package skeletal is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
sound
Package sound provides game audio mixing, sound effects and music, deterministic sound cues, 2D and 3D positional playback, PCM and WAV processing, and configurable DSP effect chains.
|
Package sound provides game audio mixing, sound effects and music, deterministic sound cues, 2D and 3D positional playback, PCM and WAV processing, and configurable DSP effect chains. |
|
spatial
Package spatial is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package spatial is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
spatial/index
Package index is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package index is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
spawn
Package spawn is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package spawn is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
sprite
Package sprite provides atlas loading, 2D sprite animation and transformation, Z-ordered batching, nine-slice drawing, masks, per-sprite visual effects, and textured 2D polylines and polygons.
|
Package sprite provides atlas loading, 2D sprite animation and transformation, Z-ordered batching, nine-slice drawing, masks, per-sprite visual effects, and textured 2D polylines and polygons. |
|
statedump
Package statedump is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package statedump is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
stats
Package stats is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package stats is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tags
Package tags is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package tags is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
text
Package text is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package text is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tilemap
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. |
|
tilemap/tileshape
Package tileshape is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package tileshape is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/assetbuild
Package assetbuild is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package assetbuild is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/assetcheck
Package assetcheck is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package assetcheck is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/assets
Package assets is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package assets is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/atlaspack
Package atlaspack is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package atlaspack is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/audioconv
Package audioconv is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package audioconv is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/bench
Package bench is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package bench is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/credits
Package credits is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package credits is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/devstate
Package devstate is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package devstate is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/dlc
Package dlc is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package dlc is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/gamedebug
Package gamedebug is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package gamedebug is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/gamedebug/categories
Package categories is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package categories is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/genjob
Package genjob is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package genjob is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/genparams
Package genparams is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package genparams is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/godebug
Package godebug is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package godebug is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/hotreload
Package hotreload is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package hotreload is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/library
Package library is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package library is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/manifest
Package manifest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package manifest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/playtest
Package playtest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package playtest is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/refs
Package refs is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package refs is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/sizecheck
Package sizecheck is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package sizecheck is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/spriteframes
Package spriteframes is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package spriteframes is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/storecapture
Package storecapture is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package storecapture is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/templatemeta
Package templatemeta is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package templatemeta is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tooling/texseam
Package texseam is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package texseam is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
tween
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. |
|
undo
Package undo is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package undo is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
vehicle3d
Package vehicle3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package vehicle3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
vn
Package vn is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package vn is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
voxel
Package voxel is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package voxel is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
world3d
Package world3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package world3d is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
world3d/csg
Package csg is experimental: its API may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package csg is experimental: its API may change in a minor release; see https://nsgo.games/docs/stability/. |
|
worldmap
Package worldmap is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package worldmap is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
Package skills is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/.
|
Package skills is experimental: its API and documented formats may change in a minor release; see https://nsgo.games/docs/stability/. |
|
template
module
|
|
|
action3d
module
|
|
|
cards2d
module
|
|
|
fighting2d
module
|
|
|
fps3d
module
|
|
|
idle
module
|
|
|
platformer2d
module
|
|
|
racing3d
module
|
|
|
rhythm
module
|
|
|
rpg2d
module
|
|
|
rts2d
module
|
|
|
shmup2d
module
|
|
|
towerdefense2d
module
|