command
module
Version:
v0.0.0-...-ae49c5b
Opens a new window with list of versions in this module.
Published: Jul 22, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Pi Game Template
This is a template for creating new games powered by Pi.
What's in the box? 
- A sprite sheet with a 32-color palette from Picotron.
- The sprite sheet includes one 8×8 sprite.
- A Go module importing all necessary dependencies.
- A
main.go
file containing code to run the game.
- Two variants of code: development (with dev tools) and release (without dev tools).
How to use it
-
Go 1.24+ is required.
-
Use any Go editor, such as Visual Studio Code
or GoLand.
-
On Linux or macOS, install additional dependencies:
-
Run the game with:
go run .
Do not run main.go
directly, because Go will not compile the other main_*
files.
How-to guides
How to rename the module
- The template module is named
github.com/elgopher/pi-template
.
- Edit
go.mod
and replace the module name with your own, e.g. module github.com/you/name
.
- Update the import path in
main.go
accordingly.
How to edit PNG files
- Use a pixel art editor that supports indexed color mode, such as Aseprite or LibreSprite.
- The palette for the game is stored inside
sprite-sheet.png
.
go build -tags release .
Attributions
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.