GitHubGet started

Example games

The examples run on desktop, mobile and the web, with their source in the repository.

01 / 06Platformer

Cave Run

A side-scrolling platformer: an explorer crosses three cave chambers, collects gems, hops over slimes and lava and reaches the exit portal. It draws into one Canvas; its title, pause and end screens are native views.

Packages used
  • game
  • pkg/input
  • pkg/physics
  • pkg/project
  • pkg/random
  • pkg/save
  • pkg/scene
  • pkg/screen
  • pkg/sound
  • pkg/sprite
  • pkg/text
  • pkg/tilemap
  • pkg/particles
  • pkg/gameui
  • pkg/l10n
  • pkg/quality
Run it$ cd examples/caverun && go tool nsgo dev -target web
02 / 06Dungeon adventure

CryptQuest

A top-down tile dungeon adventure across all six targets.

Packages used
  • game
  • pkg/input
  • pkg/physics
  • pkg/project
  • pkg/save
  • pkg/screen
  • pkg/sprite
  • pkg/text
  • pkg/tilemap
  • pkg/ai
  • pkg/flow
  • pkg/navbake
Run it$ cd examples/cryptquest && go tool nsgo dev -target web
03 / 06Arena shooter

Starburst

A top-down twin-stick arena shooter with particles, physics and input.

Packages used
  • game
  • pkg/input
  • pkg/physics
  • pkg/project
  • pkg/random
  • pkg/save
  • pkg/screen
  • pkg/sprite
  • pkg/tilemap
  • pkg/particles
  • pkg/quality
  • pkg/leaderboard
Run it$ cd examples/starburst && go tool nsgo dev -target web
04 / 06Particle stress test

Fountain

A particle stress scene: four fountains keep 5000 live particles.

Packages used
  • game
  • pkg/sprite
  • pkg/particles
Run it$ cd examples/fountain && go tool nsgo dev -target web
SlideGem
05 / 06Match-3 puzzle

SlideGem

A touch-first 6×6 sliding match-3 with zero external asset files.

Packages used
  • game
  • pkg/input
  • pkg/project
  • pkg/random
  • pkg/save
  • pkg/screen
  • pkg/sound
  • pkg/sprite
  • pkg/particles
  • pkg/tween
  • pkg/achievements
Run it$ cd examples/slidegem && go tool nsgo dev -target web
Lantern 3DShown: the 2D courtyard map. Play it to see the 3D shrine.
06 / 062D ↔ 3D scenes

Lantern 3D

Fades between a 3D lantern shrine and a 2D courtyard map: a glTF diorama, PBR lighting and a native HUD, with both scenes sharing one set of input and sound.

Packages used
  • game
  • pkg/input
  • pkg/math2d
  • pkg/project
  • pkg/scene
  • pkg/sceneformat
  • pkg/screen
  • pkg/sound
  • pkg/sprite
  • pkg/tilemap
  • pkg/gltf
  • pkg/math3d
  • pkg/render3d
  • pkg/scene3d
  • pkg/scenemodel
Run it$ cd examples/lantern3d && go tool nsgo dev -target web

Showcase

Games, built-in examples, and starter projects built on NSGo Game across desktop, mobile, and the web.

Showcase