your-first-game

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Command your-first-game is the companion program to the getting started tutorial: a tank that drives with the keyboard and aims its turret at the mouse, from a camera that follows it. The gun fires on a cooldown; Panzers spawn just out of sight, chase the tank, and come faster as the score climbs. Shooting 100 wins; being touched loses. Music and the shot sound effect play through the audio API, the reload countdown renders as text, and the score sits in a screen-space overlay.

Run from the repository root:

go run ./examples/your-first-game

Jump to

Keyboard shortcuts

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