doodle/pkg/branding/branding.go
Noah Petherbridge 6be2f86b58 RLE Encoding Code Cleanup [PTO]
* For the doodad tool: skip the assets embed folder, the doodad binary doesn't
  need to include all the game's doodads/levelpacks/etc. and can save on file
  size.
* In `doodad resave`, .doodad files with Vacuum() and upgrade their chunker from
  the MapAccessor to the RLEAccessor.
* Fix a rare concurrent map read/write error in OptimizeChunkerAccessors.
2024-05-24 15:03:32 -07:00

35 lines
900 B
Go

package branding
import (
"fmt"
"runtime"
)
// Constants for branding and version information.
const (
AppName = "Sketchy Maze"
Summary = "A drawing-based maze game"
Version = "0.14.1"
Website = "https://www.sketchymaze.com"
Copyright = "2023 Noah Petherbridge"
Byline = "a game by Noah Petherbridge."
// Update check URL
UpdateCheckJSON = "https://download.sketchymaze.com/version.json"
GuidebookURL = "https://www.sketchymaze.com/guidebook/"
)
// UserAgent controls the HTTP User-Agent header when the game checks
// for updates on startup, to collect basic statistics of which game
// versions are out in the wild. Only static data (the --version string)
// about version, architecture, build number is included but no user
// specific data.
func UserAgent() string {
return fmt.Sprintf("%s v%s on %s/%s",
AppName,
Version,
runtime.GOOS,
runtime.GOARCH,
)
}