gamecli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 84 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main runs the game CLI with os.Args[1:] and exits with its exit code.

func Run

func Run(args []string) int

Run runs the game CLI with args (the arguments after the command name) using the standard OS streams and returns the exit code: 0 on success or help, 1 when a command fails, 2 on usage errors.

Types

This section is empty.

Directories

Path Synopsis
_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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.

Jump to

Keyboard shortcuts

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