cloud-game/config/config.go
Nguyen Huu Thanh 3bfc15b096 WIP
2019-04-28 21:45:30 +07:00

12 lines
471 B
Go

package config
import "flag"
const defaultoverlord = "ws://localhost:9000/wso"
var IsDebug = flag.Bool("debug", false, "Is game running in debug mode?")
var OverlordHost = flag.String("overlordhost", defaultoverlord, "Specify the path for overlord. If the flag is `overlord`, the server will be run as overlord")
var Port = flag.String("port", "8000", "Port of the game")
var IsMonitor = flag.Bool("monitor", false, "Turn on monitor")
var Width = 256
var Height = 240