template

module
v0.0.0-...-4645e85 Latest Latest
Warning

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

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

README

NSGo game template module

The github.com/nsgo-dev/game/template module ships the starter project, the default template, in its template/ directory. Every other template is a module of its own in template/<name>/, github.com/nsgo-dev/game/template/<name>, with its project in template/<name>/template/. Templates lists them and describes how to add one. Use the getting-started guide to create a game with game new, which embeds a copy of each template, or with nsgo init -template. After changing a template, copy it to internal/gamecli/_templates/projects/<name>, whose tests fail while the two differ.

The repository workspace links every template to the local game library. From the repository root, run its tests and open it on the desktop with:

go tool nsgo test ./template/template
go tool nsgo dev ./template/template

Another template runs the same way from ./template/<name>/template.

Directories

Path Synopsis
action3d module
cards2d module
fighting2d module
fps3d module
idle module
platformer2d module
racing3d module
rhythm module
rpg2d module
rts2d module
shmup2d module
Command mygame is a starter 2D game built with NSGo and game.
Command mygame is a starter 2D game built with NSGo and game.

Jump to

Keyboard shortcuts

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