Clicker_Game

command module
v0.0.0-...-359ce16 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Unlicense Imports: 16 Imported by: ? 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.

README

Clicker Game

Clicker Game is a standalone Windows desktop game built with Go and GIU.

Requirements

Install these tools before building:

  • MSYS2
  • Go and GCC from the MSYS2 MINGW64 environment
  • go-winres for embedding the Windows icon and version metadata

Open MSYS2 MINGW64 and install the required packages:

pacman -S --needed git mingw-w64-x86_64-go mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2

Install go-winres:

export GOROOT=/mingw64/lib/go
export GOPATH=/mingw64

go install github.com/tc-hib/go-winres@latest

Run From Source

From MSYS2 MINGW64, open the repository folder and run:

export GOROOT=/mingw64/lib/go
export GOPATH=/mingw64

CGO_ENABLED=1 go run -tags static .

Build The Windows EXE

From MSYS2 MINGW64, open the repository folder and run:

export GOROOT=/mingw64/lib/go
export GOPATH=/mingw64

go-winres make

CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -v -tags static \
  -ldflags "-s -w -H=windowsgui -extldflags=-static" \
  -o "ClickerGame.exe" .

The built application will be created as:

ClickerGame.exe

Version Updates

Before creating a release, update both places:

  • appVersion in main.go
  • FileVersion and ProductVersion in winres/winres.json

Then rebuild ClickerGame.exe and upload it manually to your GitHub Releases page.

Scores

Scores are stored in the current Windows user's config directory:

%AppData%\Clicker Game\scores.json

Set CLICKER_DATA_DIR to store scores.json somewhere else.

Windows Resources

Windows icon and metadata files live in:

winres/

Run go-winres make again after changing winres/winres.json or replacing the icon.

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