2019-06-24 00:52:48 +00:00
|
|
|
package branding
|
|
|
|
|
2022-01-17 02:33:27 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"runtime"
|
|
|
|
)
|
|
|
|
|
2019-06-24 00:52:48 +00:00
|
|
|
// Constants for branding and version information.
|
|
|
|
const (
|
2021-03-31 06:33:25 +00:00
|
|
|
AppName = "Sketchy Maze"
|
2020-06-05 04:55:54 +00:00
|
|
|
Summary = "A drawing-based maze game"
|
2022-02-21 01:46:16 +00:00
|
|
|
Version = "0.11.0"
|
2021-03-31 06:33:25 +00:00
|
|
|
Website = "https://www.sketchymaze.com"
|
2022-01-17 02:33:27 +00:00
|
|
|
Copyright = "2022 Noah Petherbridge"
|
2021-07-12 04:54:28 +00:00
|
|
|
Byline = "a game by Noah Petherbridge."
|
2020-01-02 01:50:15 +00:00
|
|
|
|
|
|
|
// Update check URL
|
|
|
|
UpdateCheckJSON = "https://download.sketchymaze.com/version.json"
|
2021-10-07 05:22:34 +00:00
|
|
|
GuidebookURL = "https://www.sketchymaze.com/guidebook/"
|
2019-06-24 00:52:48 +00:00
|
|
|
)
|
2022-01-17 02:33:27 +00:00
|
|
|
|
|
|
|
// 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,
|
|
|
|
)
|
|
|
|
}
|