pi-template

command module
v0.0.0-...-ae49c5b Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 4 Imported by: 0

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

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.
How to create a release build (without dev tools)
go build -tags release .

Attributions

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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