Noah Petherbridge
a10a09a818
* Added a Cheats Menu UI accessible from the Settings window's "Experimental" tab and from there you can enable the Cheats Menu from the "Help" screen of the gameplay mode. * Commonly used cheats all have corresponding buttons to click on, especially helpful for touchscreen devices like the Pinephone where keyboard input doesn't always work reliably. * The buttons in the Cheats Menu just automate entry of the cheat commands. * `boolProp` command has a new `flip` option to toggle their value (e.g. `boolProp show-hidden-doodads flip`)
35 lines
900 B
Go
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.13.2"
|
|
Website = "https://www.sketchymaze.com"
|
|
Copyright = "2022 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,
|
|
)
|
|
}
|